add Rundeck to examples

This commit is contained in:
FilipS 2022-10-05 16:11:20 +02:00
parent e0ad926ce9
commit 4d6d6f7204
2 changed files with 31 additions and 0 deletions

View File

@ -504,3 +504,34 @@ apprise -vv -t "Test Message Title" -b "Test Message Body" \
ntfy://ntfy.example.com/mytopic
```
## Rundeck
Rundeck by default sends only HTML which is not processed by ntfy SMTP server.
Append following configurations to [rundeck-config.properties](https://docs.rundeck.com/docs/administration/configuration/config-file-reference.html) :
```
# Template
rundeck.mail.template.file=/path/to/template.html
rundeck.mail.template.log.formatted=false
```
Example `template.html`:
```html
<div>Execution ${execution.id} was <b>${execution.status}</b></div>
<ul>
<li><a href="${execution.href}">Execution result</a></li>
<li><a href="${job.href}">Job</a></li>
<li><a href="${execution.projectHref}">Project: ${execution.project}</a></li>
<li><a href="${rundeck.href}">Rundeck</a></li>
</ul>
<p>
</p>
```
Add notification on Rundeck:
![Rundeck](static/img/rundeck.png)
Attachment type must be: `Attached as file to email`

BIN
docs/static/img/rundeck.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB