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