From 9850a27ee22c16cbae8a1c5c715103e57e4d1eef Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Mon, 30 Nov 2020 06:54:50 +0100 Subject: [PATCH] icinga2: disable sms for some hosts --- groups/locations.py | 3 +++ nodes/htz-cloud/luther.py | 3 +++ nodes/htz-cloud/sewfile.py | 6 +++--- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/groups/locations.py b/groups/locations.py index c4fb7a7..7b9a24e 100644 --- a/groups/locations.py +++ b/groups/locations.py @@ -57,6 +57,9 @@ groups['home'] = { # 'nameservers': { # '172.19.138.1', # }, + 'icinga_options': { + 'vars.notification.sms': False, + }, 'postfix': { # It's fine to do this without authentificating to the relayhost. # These Systems are not supposed to send mail anywhere else diff --git a/nodes/htz-cloud/luther.py b/nodes/htz-cloud/luther.py index 7c94798..a1d0b5b 100644 --- a/nodes/htz-cloud/luther.py +++ b/nodes/htz-cloud/luther.py @@ -28,6 +28,9 @@ nodes['htz-cloud.luther'] = { 'cron': { 'luther-ps': vault.decrypt('encrypt$gAAAAABfnUqTXXpUYCA2DxllTKgbKg6YguCBbguJ0rerFGi9UNxEuTO6eqReqraS9FzNmLl81S_20bYwXM5W8pNwV5I5i6BVz1M37TxdsMCAxMG-9G0ZHFXeE4K5a4MWxuyYkrVPtK_hNFOciwxDDwPYT8tH_Jahdqmr8fZcCcsICzsSOxycn89VEm2ODnfH24Azrj6mVq5cPMc_xkdWnn-dSMCvPXpjjg==').format_into('*/10 * * * * www-data /usr/bin/curl -s {}'), }, + 'icinga_options': { + 'vars.notification.sms': False, + }, 'nginx': { 'vhosts': { 'luther-ps': { diff --git a/nodes/htz-cloud/sewfile.py b/nodes/htz-cloud/sewfile.py index e9f1ee6..7437824 100644 --- a/nodes/htz-cloud/sewfile.py +++ b/nodes/htz-cloud/sewfile.py @@ -10,9 +10,6 @@ nodes['htz-cloud.sewfile'] = { 'webserver', }, 'metadata': { - 'icinga_options': { - 'vars.notification.sms': False, - }, 'interfaces': { 'eth0': { 'ips': { @@ -28,6 +25,9 @@ nodes['htz-cloud.sewfile'] = { '/mnt/seafile-data', }, }, + 'icinga_options': { + 'vars.notification.sms': False, + }, 'nginx': { 'vhosts': { 'sewfile.franzi.business': {