LarkIT / puppetmodule-aixldap

Install and Setup LDAP client authentication for AIX
0 stars 2 forks source link

AIX users fact - fix `uname` not found on EL 6 systems #4

Closed rogerlz closed 5 years ago

rogerlz commented 6 years ago

On EL 6 systems (CentOS/RedHat), the uname binary lives in the /bin directory, but the aix_local_nonsystem_users.sh fact has a fixed PATH to /usr/bin and /usr/sbin and it makes puppet agent fail.

puppet-agent[22481]: (Facter) external fact file "/opt/puppetlabs/puppet/cache/facts.d/aix_local_nonsystem_users.sh" had output on stderr: /opt/puppetlabs/puppet/cache/facts.d/aix_local_nonsystem_users.sh: line 6: uname: command not found
puppet-agent[22481]: (Facter) /opt/puppetlabs/puppet/cache/facts.d/aix_local_nonsystem_users.sh: line 6: [: ==: unary operator expected

This PR adds /bin and /sbin to the PATH var.