Puppet HipChat is a report processor that notifies a HipChat room of a failed Puppet run with the name of the host that failed and the date. It requires the hipchat gem to be installed on your Puppet master:
$ sudo gem install hipchat
You can then install puppet-hipcat as a module in your Puppet master’s modulepath.
Create a HipChat API key with a type of Admin. Record the
API key that is generated. Next, update the
variables in the
hipchat.yaml file with your HipChat connection details and
the room you wish to notify. Then copy the file to
/etc/puppet/. An option
to notify users in the room
hipchat_notify defaults to
false. An example
file is included.
Now enable pluginsync and reports on your master and clients
puppet.conf including specifying the hipchat report processor.
[master] report = true reports = hipchat pluginsync = true [agent] report = true pluginsync = true
Finally, run the Puppet client and sync the report as a plugin and your failed Puppet runs will be now be sent to the requested HipChat room.
twiliolibgem on your Puppet master
$ sudo gem install twiliolib
Install puppet-twilio as a module in your Puppet master’s module path.
to(the number you want to send to),
from(one of your Twilio numbers) variables in the file
twilio.yamland copy the file to
Enable pluginsync and reports on your master and clients in
[master] report = true reports = twilio pluginsync = true [agent] report = true pluginsync = true
Run the Puppet client and sync the report as a plugin