aboutsummaryrefslogtreecommitdiff
path: root/roles/icinga2
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2022-04-04 13:42:33 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2022-04-04 13:42:33 +0200
commit03984cc21f9b2fbc6925a0c29d078fd140240a91 (patch)
treef5ec86d65fde12b7333f8ee5b00ac50ef8ba0fb8 /roles/icinga2
parentb5d9740f73093193ff6bc891af44d577b8bf3e34 (diff)
downloadansible_collection-03984cc21f9b2fbc6925a0c29d078fd140240a91.tar.gz
icinga2: add extra conf dirs
Diffstat (limited to 'roles/icinga2')
-rw-r--r--roles/icinga2/defaults/main.yml1
-rw-r--r--roles/icinga2/templates/icinga2.conf.j24
2 files changed, 5 insertions, 0 deletions
diff --git a/roles/icinga2/defaults/main.yml b/roles/icinga2/defaults/main.yml
index d4fe89f..6a15a37 100644
--- a/roles/icinga2/defaults/main.yml
+++ b/roles/icinga2/defaults/main.yml
@@ -14,6 +14,7 @@ icinga:
crt: '/etc/ssl/cert/ssl-cert-snakeoil.pem'
key: '/etc/ssl/private/ssl-cert-snakeoil.key'
ca: '/etc/ssl/certs/ca-certificates.crt'
+ extra_conf_dirs: []
config:
manage: false
git_url: ''
diff --git a/roles/icinga2/templates/icinga2.conf.j2 b/roles/icinga2/templates/icinga2.conf.j2
index 921c2d6..0c17c24 100644
--- a/roles/icinga2/templates/icinga2.conf.j2
+++ b/roles/icinga2/templates/icinga2.conf.j2
@@ -20,6 +20,10 @@ include "ido-mysql.conf"
include "api_users.conf"
include "influx.conf"
+{% for dir in icinga.extra_conf_dirs %}
+include_recursive "{{ dir }}"
+{% endfor %}
+
{% if icinga.config.manage is true %}
include_recursive "conf.git.d"
{% else %}