by IgorPartola · 13y ago · 0 comments
An interesting side effect of PuppetDB is that it can be exploited within the manifests themselves, via what's known as "exported resources" [2], allowing nodes to gather information from each other. For example, a web server module can declare that it exports a URL endpoint that needs to be monitored. Then the Nagios module can declare that it wants to know about all URLs to be monitored. The syntax is a bit weird, but it's a rather elegant system.
[1] http://docs.puppetlabs.com/puppetdb/1/
[2] http://docs.puppetlabs.com/puppet/2.7/reference/lang_exporte...
Screencasts: http://docs.puppetlabs.com/mcollective/screencasts.html