From 07e6a2d07ecf49f7e0bb60dad007d01f1fd6ccb3 Mon Sep 17 00:00:00 2001 From: mwiegand Date: Fri, 29 Oct 2021 21:17:54 +0200 Subject: [PATCH] raspberry bedina ssh workaround --- bundles/ssh/items.py | 12 +++++++----- bundles/stromzaehler/items.py | 1 + nodes/home.stromzaehler.py | 4 ++-- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/bundles/ssh/items.py b/bundles/ssh/items.py index 4771d5a..89790e0 100644 --- a/bundles/ssh/items.py +++ b/bundles/ssh/items.py @@ -1,8 +1,10 @@ -files['/etc/ssh/sshd_config'] = { - 'triggers': [ - 'svc_systemd:ssh:restart' - ], -} +if not node.in_group('raspberry-pi'): + # FIXME + files['/etc/ssh/sshd_config'] = { + 'triggers': [ + 'svc_systemd:ssh:restart' + ], + } svc_systemd['ssh'] = { 'needs': [ diff --git a/bundles/stromzaehler/items.py b/bundles/stromzaehler/items.py index 1cc12f5..37a2e11 100644 --- a/bundles/stromzaehler/items.py +++ b/bundles/stromzaehler/items.py @@ -22,6 +22,7 @@ svc_systemd = { # 'enabled': False, # 'running': False, 'needs': [ + 'pkg_apt:gpiod', 'file:/opt/stromzaehler', ], } diff --git a/nodes/home.stromzaehler.py b/nodes/home.stromzaehler.py index 7f355a7..740648b 100644 --- a/nodes/home.stromzaehler.py +++ b/nodes/home.stromzaehler.py @@ -6,8 +6,8 @@ 'monitored', ], 'bundles': [ - 'stromzaehler', - 'wpa-supplicant', + 'stromzaehler', + 'wpa-supplicant', ], 'metadata': { 'id': 'dd521b8a-dc03-43f5-b29f-068f948ba3b8',