[CODE] ddns: add option to silence all output

This commit is contained in:
Jannik Beyerstedt 2019-12-31 21:32:44 +01:00
parent 4784804b96
commit f82bd4edf2
2 changed files with 4 additions and 1 deletions

View File

@ -49,6 +49,9 @@ Mandatory variables:
- `ddns_passphrase`: Passphrase for updating dynDNS entries
- `ddns_domain`: Domain where the host's entries are created as `$hostname.$ddns_domain`
Optional variable:
- `ddns_silence`: Set to true to silence stderr too
### Telegraf
Mandatory variables:
- `telegraf_server_url`: URL of the influxDB server, e.g. `https://example.com:8086`

View File

@ -21,4 +21,4 @@
name: "{{ ddns_domain }} dynDNS"
minute: "*/5"
hour: "*"
job: "/usr/local/bin/ddns-hosts.sh > /dev/null"
job: "/usr/local/bin/ddns-hosts.sh > /dev/null{% if ddns_silence is defined and ddns_silence is sameas true %} 2>&1{% endif %}"