wol waker
This commit is contained in:
parent
f4a4f22d69
commit
78b324903d
3 changed files with 16 additions and 0 deletions
0
bundles/wol-waker/items.py
Normal file
0
bundles/wol-waker/items.py
Normal file
15
bundles/wol-waker/metadata.py
Normal file
15
bundles/wol-waker/metadata.py
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
@metadata_reactor.provides(
|
||||||
|
'users/wol',
|
||||||
|
)
|
||||||
|
def user(metadata):
|
||||||
|
return {
|
||||||
|
'users': {
|
||||||
|
'wol': {
|
||||||
|
'authorized_users': {
|
||||||
|
f'root@{node.name}'
|
||||||
|
for node in repo.nodes
|
||||||
|
if node.dummy == False
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
|
@ -19,6 +19,7 @@
|
||||||
'interface': 'enp1s0',
|
'interface': 'enp1s0',
|
||||||
'ipv4': '10.0.0.5/24',
|
'ipv4': '10.0.0.5/24',
|
||||||
'gateway4': '10.0.0.1',
|
'gateway4': '10.0.0.1',
|
||||||
|
'mac': 'd8:cb:8a:e7:be:c6',
|
||||||
'wol': True,
|
'wol': True,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue