From d08e9f12abba19d69003aac7ab05ec51fd9ebfab Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Fri, 12 Jul 2024 18:13:43 +0200 Subject: [PATCH] add icinga_options.also_affected_by to systems running in vm on home.nas --- nodes/home.hass.toml | 3 +++ nodes/home.winkeeinhorn-vm.toml | 3 +++ nodes/home/downloadhelper.py | 5 +++++ nodes/home/paperless.py | 5 +++++ 4 files changed, 16 insertions(+) diff --git a/nodes/home.hass.toml b/nodes/home.hass.toml index 8922404..b29dd0e 100644 --- a/nodes/home.hass.toml +++ b/nodes/home.hass.toml @@ -6,6 +6,9 @@ bundles = [ ] groups = ["debian-bookworm"] +[metadata.icinga_options] +also_affected_by = ['home.nas'] + [metadata.interfaces.enp1s0] ips = [ "172.19.138.25/24", diff --git a/nodes/home.winkeeinhorn-vm.toml b/nodes/home.winkeeinhorn-vm.toml index c51893d..c28c39b 100644 --- a/nodes/home.winkeeinhorn-vm.toml +++ b/nodes/home.winkeeinhorn-vm.toml @@ -1,5 +1,8 @@ dummy = true +[metadata.icinga_options] +also_affected_by = ['home.nas'] + [metadata.interfaces.default] ips = ["172.19.138.10"] dhcp = true diff --git a/nodes/home/downloadhelper.py b/nodes/home/downloadhelper.py index 0d97ba1..4874561 100644 --- a/nodes/home/downloadhelper.py +++ b/nodes/home/downloadhelper.py @@ -8,6 +8,11 @@ nodes['home.downloadhelper'] = { 'debian-bullseye', }, 'metadata': { + 'icinga_options': { + 'also_affected_by': { + 'home.nas', + }, + }, 'interfaces': { 'enp1s0.3001': { 'dhcp': True, diff --git a/nodes/home/paperless.py b/nodes/home/paperless.py index f6820f6..286741c 100644 --- a/nodes/home/paperless.py +++ b/nodes/home/paperless.py @@ -12,6 +12,11 @@ nodes['home.paperless'] = { 'webserver', }, 'metadata': { + 'icinga_options': { + 'also_affected_by': { + 'home.nas', + }, + }, 'interfaces': { 'enp1s0': { 'ips': {