FilipS 3 лет назад
Родитель
Сommit
4d6d6f7204
2 измененных файлов с 31 добавлено и 0 удалено
  1. 31 0
      docs/examples.md
  2. BIN
      docs/static/img/rundeck.png

+ 31 - 0
docs/examples.md

@@ -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