Skip to content

Commit

Permalink
feat(icingadb): add the ability to configure IcingaDB settings (#39)
Browse files Browse the repository at this point in the history
* feat(icingadb): add the ability to configure IcingaDB settings

* fix(icingadb): correct icingadb settings variable name

Co-authored-by: Marcel W <[email protected]>

---------

Co-authored-by: Marcel W <[email protected]>
  • Loading branch information
gianklug and fadnincx authored Dec 19, 2024
1 parent 30e0891 commit 9117707
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 6 additions & 1 deletion templates/etc/icingaweb2/modules/icingadb/config.ini.j2
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 9117707

Please sign in to comment.