diff --git a/defaults/main.yml b/defaults/main.yml index 67f76aa..0974949 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -243,6 +243,12 @@ icinga2_web_reporting: [] icinga2_web_icingadb: [] +# IcingaDB settings + +# icinga2_web_icingadb_settings: +# hostdowntime_all_services: true +icinga2_web_icingadb_settings: {} + # Grafana configuration # icinga2_web_grafana: # enabled: false diff --git a/templates/etc/icingaweb2/modules/icingadb/config.ini.j2 b/templates/etc/icingaweb2/modules/icingadb/config.ini.j2 index a91aa3e..47b8542 100644 --- a/templates/etc/icingaweb2/modules/icingadb/config.ini.j2 +++ b/templates/etc/icingaweb2/modules/icingadb/config.ini.j2 @@ -1,7 +1,12 @@ [icingadb] {% for resourceconf in icinga2_web_icingadb %} resource = "{{ resourceconf.name }}" -{% endfor %} +{% endfor %} + +[settings] +{% for key, value in icinga2_web_icingadb_settings.items() %} +{{ key }} = {{ value | to_json }} +{% endfor %} [redis] tls = "0"