module-sudo/manifests/user-alias.pp

11 lines
312 B
ObjectPascal
Raw Normal View History

2013-04-24 20:01:34 +02:00
define sudo::extra-access($ensure = 'present', $user, $access) {
file { "/etc/sudoers.d/01-user_access-$title":
ensure => $ensure,
owner => root,
group => root,
mode => 440,
content => "# THIS FILE IS MANAGED BY PUPPET !\n\n$user $access\n",
}
}