Update cookbooks and add wordpress cookbook
This commit is contained in:
@@ -5,8 +5,16 @@
|
||||
Cmnd_Alias <%= a[:name].upcase %> = <%= a[:command_list].join(', ') %>
|
||||
<% end -%>
|
||||
|
||||
<% @env_keep_add.each do |env_keep| -%>
|
||||
Defaults env_keep += "<%= env_keep %>"
|
||||
<% end -%>
|
||||
|
||||
<% @env_keep_subtract.each do |env_keep| -%>
|
||||
Defaults env_keep -= "<%= env_keep %>"
|
||||
<% end -%>
|
||||
|
||||
<% @commands.each do |command| -%>
|
||||
<%= @sudoer %> <%= @host %>=(<%= @runas %>) <%= 'NOPASSWD:' if @nopasswd %><%= command %>
|
||||
<%= @sudoer %> <%= @host %>=(<%= @runas %>) <%= 'NOPASSWD:' if @nopasswd %><%= 'SETENV:' if @setenv %><%= command %>
|
||||
<% end -%>
|
||||
|
||||
<% unless @defaults.empty? %>
|
||||
|
||||
@@ -16,12 +16,13 @@ Cmnd_Alias <%= a[:name].upcase %> = <%= a[:command_list].join(', ') %>
|
||||
<% end -%>
|
||||
|
||||
<% @sudoers_users.each do |user| -%>
|
||||
<%= user %> ALL=(ALL) <%= "NOPASSWD:" if @passwordless %>ALL
|
||||
<%= user %> ALL=(ALL) <%= "NOPASSWD:" if @passwordless %><%= "SETENV:" if @setenv %>ALL
|
||||
<% end -%>
|
||||
|
||||
<% @sudoers_groups.each do |group| -%>
|
||||
# Members of the group '<%= group %>' may gain root privileges
|
||||
%<%= group %> ALL=(ALL) <%= "NOPASSWD:" if @passwordless %>ALL
|
||||
%<%= group %> ALL=(ALL) <%= "NOPASSWD:" if @passwordless %><%= "SETENV:" if @setenv %>ALL
|
||||
<% end -%>
|
||||
|
||||
# This is not a comment; see sudoers(5) for more information on "#include" directives
|
||||
<%= "#includedir #{node['authorization']['sudo']['prefix']}/sudoers.d" if @include_sudoers_d %>
|
||||
|
||||
Reference in New Issue
Block a user