Seems like this may be a 
regression: https://tickets.puppetlabs.com/browse/PUP-2705

PUP-2705 was closed and marked as fixed in PUP 3.6.2 
<https://tickets.puppetlabs.com/browse/PUP/fixforversion/11726>. However 
this same issue is occurring in PE 3.8.1.

On Monday, October 5, 2015 at 11:47:08 AM UTC-4, Roan O'Sullivan wrote:
>
> 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/6f35823d-d57f-46e0-86cf-cc2897b39400%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to