bundlewrap/bundles/sudo/files/bwusers

10 lines
261 B
Text
Raw Permalink Normal View History

2020-11-09 19:39:35 +00:00
% for user, config in sorted(node.metadata['users'].items()):
% if config.get('is_admin', False):
${user} ALL=(ALL) NOPASSWD:ALL
% else:
2020-11-09 19:39:35 +00:00
% for p in sorted(config.get('sudo_commands', [])):
${user} ALL=(ALL) NOPASSWD:${p}
% endfor
% endif
2020-11-09 19:39:35 +00:00
% endfor