Created
February 11, 2011 18:39
-
-
Save jbz/822799 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######################################################################## | |
### NOTICE: this file managed by chef; changes made here will be lost. | |
######################################################################## | |
# ubuntu defaults, left here for compatibility | |
root ALL=(ALL) ALL | |
%admin ALL=(ALL) NOPASSWD:ALL | |
# Amazon EC2 ubuntu user - DO NOT REMOVE FROM EC2 NODES | |
# ubuntu user is default user in ec2-images. | |
# It needs passwordless sudo functionality. | |
ubuntu ALL=(ALL) NOPASSWD:ALL | |
<% if node.sudo.user_commands %> | |
# specific users/commands | |
<% node.sudo.user_commands.each do |recipe, acct| %> | |
<% acct.each do |user, cmd| %> | |
<%= user %> ALL=(root) <%= cmd %> | |
<% end %> | |
<% end %> | |
<% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment