module-sudo/manifests/user-alias.pp

10 lines
322 B
ObjectPascal
Raw Normal View History

2013-04-24 20:29:04 +02:00
define sudo::user-alias ($ensure = 'present', $groupname, $members) {
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 20:29:04 +02:00
content => "# THIS FILE IS MANAGED BY PUPPET !\n\nUser_Alias $groupname = $members\n",
2013-04-24 20:01:34 +02:00
}
}