bundlewrap/bundles/wol-waker/metadata.py
2022-11-26 12:24:27 +01:00

23 lines
468 B
Python

defaults = {
'apt': {
'packages': {
'wakeonlan': {},
},
},
}
@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 and node.has_bundle('ssh')
},
},
},
}