module-sudo/manifests/user-alias.pp

11 lines
386 B
ObjectPascal
Raw Normal View History

define sudo::user-alias ($ensure = 'present', $members) {
2013-04-24 22:04:12 +02:00
# this is 00-prefixed so that it's defined before the other definitions
2013-04-24 22:04:45 +02:00
file { "/etc/sudoers.d/00-user_alias-${title}":
2013-04-24 20:01:34 +02:00
ensure => $ensure,
owner => root,
group => root,
mode => 440,
2013-04-24 22:04:45 +02:00
content => "# THIS FILE IS MANAGED BY PUPPET !\n\nUser_Alias ${name} = ${members}\n",
2013-04-24 20:01:34 +02:00
}
}