[CODE] ddns: add option to silence all output
This commit is contained in:
parent
4784804b96
commit
f82bd4edf2
|
@ -49,6 +49,9 @@ Mandatory variables:
|
||||||
- `ddns_passphrase`: Passphrase for updating dynDNS entries
|
- `ddns_passphrase`: Passphrase for updating dynDNS entries
|
||||||
- `ddns_domain`: Domain where the host's entries are created as `$hostname.$ddns_domain`
|
- `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
|
### Telegraf
|
||||||
Mandatory variables:
|
Mandatory variables:
|
||||||
- `telegraf_server_url`: URL of the influxDB server, e.g. `https://example.com:8086`
|
- `telegraf_server_url`: URL of the influxDB server, e.g. `https://example.com:8086`
|
||||||
|
|
|
@ -21,4 +21,4 @@
|
||||||
name: "{{ ddns_domain }} dynDNS"
|
name: "{{ ddns_domain }} dynDNS"
|
||||||
minute: "*/5"
|
minute: "*/5"
|
||||||
hour: "*"
|
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 %}"
|
||||||
|
|
Loading…
Reference in a new issue