module-sudo/manifests/user-alias.pp
Antoine Beaupré d996ff9797 style
2013-04-24 16:04:45 -04:00

10 lines
386 B
Puppet

define sudo::user-alias ($ensure = 'present', $members) {
# this is 00-prefixed so that it's defined before the other definitions
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",
}
}