module-sudo/manifests/user_alias.pp
Gabriel Filion 3ac9c6fbb3 rename user-alias to user_alias
the name is good but we'd like to avoid dashes since it's deprecated
starting with puppet 2.7
2013-04-25 19:00:31 -04:00

13 lines
372 B
Puppet

define sudo::user_alias (
$members,
$ensure = 'present'
) {
# 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 => 0,
mode => '0440',
content => "# THIS FILE IS MANAGED BY PUPPET !\n\nUser_Alias ${name} = ${members}\n",
}
}