--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/db9fabde-a539-4e8a-97b7-b160387df942%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
# /etc/sudoers #
# This file MUST be edited with the 'visudo' command as root.
#
# Of course, if you do, Puppet will completely rewrite it 30 minutes later.
#
Defaults env_reset
<% unless @cmd_aliases.empty? -%>
# Cmnd alias specification
<%- @cmd_aliases.each_pair do |key, val| -%>
Cmnd_Alias <%= key %> = <%= val %>
<%- end -%>
<% end -%>
<% unless @host_aliases.empty? -%>
# Host alias specification
<%- @host_aliases.each_pair do |key, val| -%>
Host_Alias <%= key %> = <%= val %>
<%- end -%>
<% end -%>
<%- if @sudoers -%>
# User alias specification
<%- @sudoers.each_pair do |key, val| -%>
User_Alias <%= key %> = <%= val %>
<%- end -%>
<% end -%>
<%- if @user_priv -%>
# User Privilege Specifications
<%- @user_priv.each_pair do |key, val| -%>
<%= key %> <%= val %>
<%- end -%>
<% end -%>
sudo::user_aliases:
NOPWD:
- user1
sudo::user_priv:
NOPWD:
- "ALL = NOPASSWD: ALL"
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/a45ccc0a-eed8-41ea-b2d9-6789e64edc51%40googlegroups.com.
Thanks. That is probably definitely easier than what I planned to try to hack into place.
You received this message because you are subscribed to a topic in the Google Groups "Puppet Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/puppet-users/zP9zSqbF84M/unsubscribe.
To unsubscribe from this group and all its topics, send an email to puppet-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAC76iT__BRv5K6bupusZ7DS5KGMZ0g-JpL_7xjqhb3zOxU7HpQ%40mail.gmail.com.
Since all of our Puppet code is in a source code repo and requires a change control to push to PROD, I don;t want to have to manually create a per host entry, either via the case statement or a node.yaml file as that requires a full regression test and verification before it moves to PROD.Via Foreman I can add puppet classes for userX and userQ to a specific server. As long as sudo::sudoers::userX and sudo::sudoers::userQ are defined in the Puppet code, then no change to modify code or custom hiera yaml files is required. This takes the sudo setups from having to be done per node in code to a point and click for the team that handles the tickets for the host definitions in Foreman.