bundles/simple-icinga-dashboard: add replacements

This commit is contained in:
Franzi 2021-04-10 15:43:37 +02:00
parent 9587bae4fe
commit b33ddaadb5
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 11 additions and 1 deletions

View file

@ -7,5 +7,10 @@ password = ${api_password}
hosts = ${host_filter}
services = ${service_filter}
[prettify]
% for search, replace in sorted(replacements.items()):
${search.lower()} = ${replace}
% endfor
[output]
filename = /opt/simple-icinga-dashboard/out/index.html

View file

@ -110,7 +110,12 @@ nodes['ovh.icinga2'] = {
'api_user': 'dashboard',
'api_password': vault.password_for('ovh.icinga2 icinga2 api_user dashboard'),
'host_filter': '"checks_with_sms" in host.groups',
'service_filter': '"checks_with_sms" in service.groups'
'service_filter': '"checks_with_sms" in service.groups',
'replacements': {
'CONTENT': '',
'NGINX': 'WEBSERVER',
'PROCESS': 'SERVICE',
},
},
'wireguard': {
'my_ip': '172.19.136.3/22',