bundles/simple-icinga-dashboard: add replacements
This commit is contained in:
parent
9587bae4fe
commit
b33ddaadb5
2 changed files with 11 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue