If you’re a Puppet user you are supported in both facts and classes filters.
There are a number of community plugins related to Puppet:
There are also several blog posts related to Puppet and MCollective:
There is a community plugin to enable Facter as a fact source.
So you can use the facts provided by Facter in filters, reports etc.
This includes facts pushed out with Plugin Sync.
A less resource intensive approach has can be found here, it converts the Puppet scope into a YAML file that the YAML fact source then loads. This is both less resource intensive and much faster.
Puppet provides a list of classes applied to a node by default in /var/puppet/state/classes.txt or /var/lib/puppet/state/classes.txt (depending on which Puppet version you are using. The latter is true for 0.25.5 onwards) , we’ll use this data with –with-class filters.
You should configure MCollective to use this file by putting the following in your server.cfg
or if using Puppet 0.23.0 and onwards
You can now use your classes lists in filters: