module-sudo/manifests/user-alias.pp
Antoine Beaupré 1bc29f5ff5 use the builtin name variable instead of creating a new one
this allows us to simplify the manifests by using:

extra-access { 'user': }

.. instead of having to explicitely set it.

if we need to have multiple users, we can do:

extra-access { 'user_foo': name => 'user' }
2013-04-24 14:42:06 -04:00

9 lines
305 B
Puppet

define sudo::user-alias ($ensure = 'present', $members) {
file { "/etc/sudoers.d/00-user_alias-$title":
ensure => $ensure,
owner => root,
group => root,
mode => 440,
content => "# THIS FILE IS MANAGED BY PUPPET !\n\nUser_Alias $name = $members\n",
}
}