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
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.This PR adds /bin and /sbin to the PATH var.