1bc29f5ff5
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' }
9 lines
305 B
Puppet
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",
|
|
}
|
|
}
|