bundlewrap/bundles/sudo/items.py
2022-03-26 11:59:10 +01:00

16 lines
354 B
Python

directories = {
'/etc/sudoers.d': {
'purge': True,
},
}
for user, commands in node.metadata.get('sudoers').items():
files[f'/etc/sudoers.d/{user}'] = {
'content_type': 'mako',
'source': 'sudoer',
'context': {
'user': user,
'commands': commands,
},
'mode': '500',
}