Skip to content

Commit

Permalink
handle aix group on requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
feltra committed Jan 16, 2019
1 parent d5bad35 commit 74e5af6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions manifests/requirements.pp
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,14 @@

include ::python

if $virtualenv == 'system' and ($owner != 'root' or !($group in [ 'system', 'root' ])) {
fail('python::pip: root user must be used when virtualenv is system')
if $facts['os']['family'] == 'AIX' {
if $virtualenv == 'system' and ($owner != 'root' or $group != 'system') {
fail('python::pip: root user must be used when virtualenv is system')
}
else {
if $virtualenv == 'system' and ($owner != 'root' or $group != 'root') {
fail('python::pip: root user must be used when virtualenv is system')
}
}

if $fix_requirements_owner {
Expand Down

0 comments on commit 74e5af6

Please sign in to comment.