This commit is contained in:
mwiegand 2022-02-12 17:15:15 +01:00
parent ae929e4773
commit d12b446f34
5 changed files with 13 additions and 6 deletions

View file

@ -0,0 +1,3 @@
waker_node = repo.get_node(node.metadata.get('wol-sleeper/waker'))
if not waker_node.has_bundle('wol-waker'):
raise Exception(f'waker node {waker_node.name} does not have bundle wol-waker')

View file

@ -29,8 +29,8 @@ def systemd(metadata):
'Type': 'oneshot',
'RemainAfterExit': 'yes',
'ExecStart': set(
f"ethtool -s {conf['interface']} wol g"
for itnerface in interfaces
f"ethtool -s {interface} wol g"
for interface in interfaces
),
},
'Install': {

View file

@ -1,6 +1,5 @@
{
'bundles': {
'hardware',
'wol-sleeper',
},
}

View file

@ -8,6 +8,7 @@
],
'bundles': [
'smartctl',
'wol-sleeper',
'zfs',
'zfs-mirror',
],
@ -35,6 +36,9 @@
'apm': 1,
},
},
'wol-sleeper': {
'waker': 'home.server',
},
'zfs-mirror': {
'server': 'wb.offsite-backups',
},

View file

@ -13,6 +13,7 @@
'bundles': [
'apcupsd',
'build-agent',
'crystal',
'gitea',
'gollum',
'grafana',
@ -22,11 +23,11 @@
'postgresql',
'redis',
'smartctl',
'wireguard',
'zfs',
'crystal',
'raspberrymatic-cert',
'tasmota-charge',
'wireguard',
'wol-waker',
'zfs',
],
'metadata': {
'id': 'af96709e-b13f-4965-a588-ef2cd476437a',