- Issue Type: Feature
- Rundeck version: (2.11.5-1)
- JDK Version: (your JDK version, sun/openjdk)
Issue:
We are using the version Rundeck 2.11.5-1 with different
projects inside. We would like that each project's job send its own
custom HTML file template, (every project is in different language,
has different topologies, etc). E.G. the idea is to send an
templated email at the start of the job, if there's a failure and
if it succeds. The content has to be hardcoded in the html file (we
only want to send this content).
As the documentation says in [1] it's
possible to specify a template file, we follow the below example
adding this line to the rundeck-config.properties -> [2]
project and job specific
rundeck.mail.[project].[jobname].template.subject=[custom
subject line]
rundeck.mail.[project].[jobname].template.file=[path to template
file]
rundeck.mail.[project].[jobname].template.log.formatted=true/false
(if true, prefix log lines with context information)
However the html file in /etc/rundeck/templates/start.html
overwrites it in the notification.
We would like to know if we are doing something wrong (if it is
the expected behavior) if there's a way to archive this in Rundeck,
or if there's an alternative to send templated notifications in
this current scenario.
Thank you.
Roger Sanchez.
[1]
https://docs.rundeck.com/2.11.5/administration/email-settings.html#...
[2]
rundeck.mail.[My-project1].[my-job-1].start.template.file=/etc/rundeck/templates/[My-project-1]/START.html