2013-04-24 18:57:11 +02:00
|
|
|
define sudo::extra-access($user, $access) {
|
2013-04-24 18:53:33 +02:00
|
|
|
file { "/etc/sudoers.d/$user":
|
|
|
|
ensure => 'present',
|
2013-04-24 20:01:34 +02:00
|
|
|
owner => root,
|
2013-04-24 18:53:33 +02:00
|
|
|
group => admin,
|
|
|
|
mode => 640,
|
|
|
|
content => "$user $access",
|
|
|
|
notify => Service[apache2]
|
2013-04-24 20:01:34 +02:00
|
|
|
}
|
|
|
|
}
|