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