2013-04-26 01:00:31 +02:00
|
|
|
define sudo::user_alias (
|
2013-04-26 00:58:04 +02:00
|
|
|
$members,
|
|
|
|
$ensure = 'present'
|
|
|
|
) {
|
|
|
|
# this is 00-prefixed so that it's defined before the other definitions
|
2013-06-22 19:48:10 +02:00
|
|
|
file { "${sudo::dir}/00-user_alias-${title}":
|
2013-04-26 00:58:04 +02:00
|
|
|
ensure => $ensure,
|
|
|
|
owner => 'root',
|
|
|
|
group => 0,
|
|
|
|
mode => '0440',
|
|
|
|
content => "# THIS FILE IS MANAGED BY PUPPET !\n\nUser_Alias ${name} = ${members}\n",
|
|
|
|
}
|
2013-04-24 20:01:34 +02:00
|
|
|
}
|