Alerting on Failed Puppet Status
How can I setup Puppet to email failed reports to an address?
puppet.conf like this
[master] server = puppet.site.net [main] #dns_alt_names = puppet.site.net report = true #pluginsync = true # The Puppet log directory. # The default value is '$vardir/log'. logdir = /var/log/puppet # Where Puppet PID files are kept. # The default value is '$vardir/run'. rundir = /var/run/puppet # Where SSL certificates are kept. # The default value is '$confdir/ssl'. ssldir = $vardir/ssl [agent] # The file in which puppetd stores a list of the classes # associated with the retrieved configuratiion. Can be loaded in # the separate ``puppet`` executable using the ``--loadclasses`` # option. # The default value is '$confdir/classes.txt'. classfile = $vardir/classes.txt # Where puppetd caches the local configuration. An # extension indicating the cache format is added automatically. # The default value is '$confdir/localconfig'. localconfig = $vardir/localconfig
I’ve seen a post. But it’s for everything.
I need only failures. Both on master & clients.
Can someone help me with a working conf & setup?