Monkeys Typing
2014-Oct-02  19:13 UTC
[Puppet Users] site.pp location for 3.7.1 under environment configs.
I am attempting to get the final pieces of the Puppet Pulse splunk app to 
work, and the issue I am having is that the splunk application expects the 
puppet nodes to have an extra notify that calls out the version of puppet 
on the box.  The readme for the app indicates:
#### Version Reporting ####
To gather version information, add the following to your manifests (I have 
it
towards the top of my site.pp, outside of any node definitions):
    info("node=${::hostname} puppetversion=${::puppetversion}")
AFAICT, the proper directory for this file is still 
/etc/puppet/manifests/site.pp.  At least that is what "puppet 
agent--environment production --configprint manifest" tells me.
However, I have not been able to get this info to trigger on any of my 
nodes or puppet masters.  Full disclosure, i have a puppetmaster manifest 
that creates a symlink of this file to the real location of /<puppet 
code>/environments/site.pp  (had also tried putting site.pp at 
environments/production/site.pp
Just wondering what I am doing wrong, and if there is a better place to put 
the info line.  I have a class "minimal" that EVERY node gets, and I
could
move my info declaration there.
It isn't clear to me exactly what site.pp is used for (or if it IS used) 
under environment configs.
Thanks,
Jim Goddard
-- 
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/64260c57-74c2-4a32-b452-99a9c36bed6d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.