I think it's a permissions issue, but not sure how to best resolve. 

On CentOS6 the plugin sync sets file mode for external fact script 
(/var/opt/lib/pe-puppet/facts.d/myfacts.sh) to 0644, and then agent (or 
standalone puppet) reports that the file "parsed but returned an empty data 
set":

[root@foo ~]# puppet apply -e 'notice($mypkg_installed)' --environment 
development
Fact file /var/opt/lib/pe-puppet/facts.d/myfacts.sh was parsed but returned 
an empty data set
Notice: Scope(Class[main]):
Notice: Compiled catalog for foo.local in environment development in 0.01 
seconds
Notice: Finished catalog run in 0.13 seconds
[root@foo ~]#

If I "chmod a+x" the script then the fact parses successfully:

[root@foo ~]# chmod a+x /var/opt/lib/pe-puppet/facts.d/myfacts.sh
[root@foo ~]# puppet apply -e 'notice($mypkg_installed)' --environment 
development
Notice: Scope(Class[main]): true
Notice: Compiled catalog for foo.local in environment development in 0.01 
seconds
Notice: Finished catalog run in 0.14 seconds
[root@foo ~]#

But the agent will always reset the file mode back to 0644. 

If anyone has suggestions on either preventing Puppet agent from reverting 
the fact script's permissions to 0644, OR getting the parser to resolve the 
facts without making the script executable, would be much appreciated. 
Thanks.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/7451f77a-b47e-43fc-aed5-1c378944a0a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to