aboutsummaryrefslogtreecommitdiff
path: root/roles/icinga2
diff options
context:
space:
mode:
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 %}