Hi,I am trying to run shell script through non root user in puppet facts.Here is my code.$cat cis_rhel6_check.rb
require 'facter'
Facter.add("cis_rhel6_check") do
setcode do
%x[ sh /tmp/cis_rhel6_check.sh ]
end
endthe shell script is indrwxrwxrwt. 178 root root tmpls -ls /tmp/cis_rhel6_check.sh
44 -rwxrwxrwx 1 root pe-puppet 43916 May 19 15:28 /tmp/cis_rhel6_check.sh
The issue was:sh: /tmp/cis_rhel6_check.sh: No such file or directory
--To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/b18bf7db-ccae-4687-9244-7d695ad5501e%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.