arnoudj / puppet-sudo

Puppet module to manage sudoers.
8 stars 23 forks source link

Add support for setting Defaults #11

Closed thias closed 11 years ago

thias commented 11 years ago

This is a simple change to support setting different Defaults for the users we manage sudoers rules for. I've used it like this on RHEL6 :

sudo::sudoers { 'wheel':
  comment  => 'Full root privileges for wheel group members (with password)',
  users    => [ '%wheel' ],
  runas    => [ 'root' ],
  defaults => [ 'env_keep += "SSH_AUTH_SOCK"' ],
}

That way, even after sudo su, the members of the wheel group can use git+ssh.