From 7553a873b5c3080b6797d80938e313b8c099d8d3 Mon Sep 17 00:00:00 2001 From: Sheppy Date: Thu, 16 Mar 2023 10:03:19 +0100 Subject: [PATCH] change: comment out mail notifications by default --- templates/async-icinga-services-dynamic.conf.j2 | 7 ++++--- templates/icinga_host.conf.j2 | 9 +++++---- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/templates/async-icinga-services-dynamic.conf.j2 b/templates/async-icinga-services-dynamic.conf.j2 index 42c960b..c659e69 100644 --- a/templates/async-icinga-services-dynamic.conf.j2 +++ b/templates/async-icinga-services-dynamic.conf.j2 @@ -15,9 +15,10 @@ object Host "async_icinga" { max_check_attempts = 5 retry_interval = 1m - vars.notification["mail"] = { - groups = ["icingaadmins"] - } + # TODO: conditional template in pyansible + # vars.notification["mail"] = { + # groups = ["icingaadmins"] + # } } diff --git a/templates/icinga_host.conf.j2 b/templates/icinga_host.conf.j2 index 16a1e38..8b86d25 100644 --- a/templates/icinga_host.conf.j2 +++ b/templates/icinga_host.conf.j2 @@ -9,10 +9,11 @@ object Host "{{ hostname }}" { max_check_attempts = 7 retry_interval = 1m - - vars.notification["mail"] = { - groups = ["icingaadmins"] - } + + # TODO condition template? + # vars.notification["mail"] = { + # groups = ["icingaadmins"] + # } {% for website_name, url in websites %} vars.http_vhosts["{{ website_name }}"] = {