Today I built a GUI and workflow around Ansible using Rundeck. Tonight I started diving into sending HipChat notifications and after a bit of research, I managed to create a custom notification template for each Rundeck project.
Modify your project's configuration file, on Ubuntu it was in /var/rundeck/projects/pname/etc/project.properties, and add the following line to the bottom:
framework.plugin.Notification.HipChatNotification.messageTemplateLocation=/var/rundeck/projects/pname/etc/custom-hipchat-template.ftlNote: replace pname with your project name.
I ended up producing a single line chat notification template. I uploaded it here to act as an example:
Custom Rundeck HipChat Notification Template
The template syntax and renderer is called FreeMarker. Rundeck and the HipChat plugin pass many different context Map hash objects to FreeMarker for use in the templates. In this case I display "VPC name" selected by the user when starting the job.
References:
Rundeck HipChat Notification Plugin (User Guide and Default Template)