bundles/sudo: use sudoers.d
All checks were successful
bundlewrap/pipeline/head This commit looks good
All checks were successful
bundlewrap/pipeline/head This commit looks good
This commit is contained in:
parent
c7362df6c4
commit
6ca0d863b1
4 changed files with 17 additions and 16 deletions
|
@ -1,11 +0,0 @@
|
|||
@metadata_reactor
|
||||
def sudo_users(metadata):
|
||||
sudoers = {}
|
||||
|
||||
for username, config in metadata.get('users', {}).items():
|
||||
if 'sudo_commands' in config:
|
||||
sudoers[username] = config['sudo_commands']
|
||||
|
||||
return {
|
||||
'sudo': sudoers,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue