diff --git a/groups/locations.py b/groups/locations.py index 3421376..6324c7c 100644 --- a/groups/locations.py +++ b/groups/locations.py @@ -70,6 +70,9 @@ groups['home'] = { 'metadata': { 'location': 'home', 'icinga_options': { + 'also_affected_by': { + 'home.router', + }, 'vars.notification.sms': False, }, 'postfix': { diff --git a/nodes/home/nas.py b/nodes/home/nas.py index 689354b..f3314ac 100644 --- a/nodes/home/nas.py +++ b/nodes/home/nas.py @@ -85,6 +85,10 @@ nodes['home.nas'] = { }, }, }, + 'icinga_options': { + # override group default + 'also_affected_by': atomic(set()), + }, 'mosquitto': { 'bridges': { 'c3voc': { diff --git a/nodes/home/router.py b/nodes/home/router.py index e0b7a2d..928c342 100644 --- a/nodes/home/router.py +++ b/nodes/home/router.py @@ -85,14 +85,14 @@ nodes['home.router'] = { }, }, 'icinga_options': { - 'also_affected_by': { + # override group default + 'also_affected_by': atomic({ 'home.nas', 'ovh.wireguard', - }, + }), # disabled on group level 'vars.notification.sms': True }, - 'nftables': { 'rules': { 'forward': {