bundles/sudo: change metadata key to 'sudo_commands'
This commit is contained in:
parent
04c632953d
commit
577c3c7c49
3 changed files with 13 additions and 7 deletions
|
@ -6,6 +6,8 @@ Defaults secure_path=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bi
|
|||
|
||||
root ALL=(ALL) ALL
|
||||
|
||||
% for user in sorted(node.metadata['sudo']):
|
||||
${user} ALL=(ALL) NOPASSWD:ALL
|
||||
% for user, permissions in sorted(node.metadata['sudo'].items()):
|
||||
% for p in sorted(permissions):
|
||||
${user} ALL=(ALL) NOPASSWD:${p}
|
||||
% endfor
|
||||
% endfor
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue