From 8f1f646b3b3154987a272ff1e64ce2cd503204e8 Mon Sep 17 00:00:00 2001 From: cronekorkn Date: Tue, 11 Jun 2024 18:13:12 +0200 Subject: [PATCH] wip --- bundles/zfs/items.py | 1 + nodes/home.homeassistant.py | 15 ++++----------- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/bundles/zfs/items.py b/bundles/zfs/items.py index 4a6fffc..7084396 100644 --- a/bundles/zfs/items.py +++ b/bundles/zfs/items.py @@ -6,6 +6,7 @@ files = { '/etc/cron.weekly/zfs-auto-snapshot': {'delete': True, 'needs': {'pkg_apt:zfs-auto-snapshot'}}, '/etc/cron.monthly/zfs-auto-snapshot': {'delete': True, 'needs': {'pkg_apt:zfs-auto-snapshot'}}, '/etc/modprobe.d/zfs.conf': { + 'content_type': 'text', 'content': '\n'.join( f'options zfs {k}={v}' for k, v in node.metadata.get('zfs/kernel_params').items() diff --git a/nodes/home.homeassistant.py b/nodes/home.homeassistant.py index c140bef..266c9e0 100644 --- a/nodes/home.homeassistant.py +++ b/nodes/home.homeassistant.py @@ -2,6 +2,10 @@ 'hostname': '10.0.0.16', 'groups': [ 'webserver', + 'backup', + 'monitored', + 'raspberry-pi', + 'autologin', ], 'bundles': [ 'apt', @@ -14,9 +18,7 @@ 'sudo', 'locale', 'zsh', - 'monitored', 'zfs', - 'backup', 'systemd', 'systemd-timers', 'systemd-journald', @@ -65,12 +67,6 @@ }, }, }, - 'telegraf': { - 'influxdb_node': 'home.server', - }, - 'monitoring': { - 'icinga2_node': 'home.server', - }, 'hosts': { '10.0.11.3': [ 'resolver.name', @@ -108,9 +104,6 @@ }, }, 'os_codename': 'bookworm', - 'system': { - 'architecture': 'arm64', - }, }, 'os': 'debian', 'os_version': (12,),