9 lines
309 B
Puppet
9 lines
309 B
Puppet
define sudo::extra-access($ensure = 'present', $user, $access) {
|
|
file { "/etc/sudoers.d/01-user_access-$title":
|
|
ensure => 'present',
|
|
owner => root,
|
|
group => admin,
|
|
mode => 640,
|
|
content => "# THIS FILE IS MANAGED BY PUPPET !\n\n$user $access\n",
|
|
}
|
|
}
|