module-sudo/manifests/extra-access.pp
Antoine Beaupré 153a9e8348 fix modes
2013-04-24 15:35:33 -04:00

12 lines
391 B
Puppet

define sudo::extra-access($ensure = 'present', $user = undef, $access = 'ALL=(ALL) ALL') {
if $user == undef {
$user = $name
}
file { "/etc/sudoers.d/01-user_access-${name}":
ensure => 'present',
owner => root,
group => root,
mode => 0440,
content => "# THIS FILE IS MANAGED BY PUPPET !\n${user} ${access}\n",
}
}