Sha256: 2affcda8b43494b7fcf6c971fe37bdafc1fb9e7ca43932006bd09b6b1a10be10

Contents?: true

Size: 586 Bytes

Versions: 8

Compression:

Stored size: 586 Bytes

Contents

#
# /etc/sudoers
#
# Generated by Chef for <%= @node[:fqdn] %>
#

Defaults        !lecture,tty_tickets,!fqdn

# User privilege specification
root    			ALL=(ALL) ALL

<% @sudoers_users.each do |user| -%>
  <% if user[:can_sudo_without_password] %>
<%= user[:name] %> ALL=(ALL) NOPASSWD: ALL
  <% else %>
<%= user[:name] %> ALL=(ALL) ALL
  <% end %>
<% end -%>

# Members of the sysadmin group may gain root privileges
%sysadmin 		ALL=(ALL) ALL

<% @sudoers_groups.each do |group| -%>
# Members of the group '<%= group %>' may gain root privileges
%<%= group %> ALL=(ALL) ALL
<% end -%>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
solokit-0.1.17 cookbooks/site/sudo/templates/default/sudoers.erb
solokit-0.1.16 cookbooks/site/sudo/templates/default/sudoers.erb
solokit-0.1.15 cookbooks/site/sudo/templates/default/sudoers.erb
solokit-0.1.14 cookbooks/site/sudo/templates/default/sudoers.erb
solokit-0.1.13 cookbooks/site/sudo/templates/default/sudoers.erb
solokit-0.1.12 cookbooks/site/sudo/templates/default/sudoers.erb
solokit-0.1.11 cookbooks/site/sudo/templates/default/sudoers.erb
solokit-0.1.10 cookbooks/site/sudo/templates/default/sudoers.erb