bundlewrap/bundles/wol-waker/metadata.py

23 lines
441 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
},
},
},
}