diff --git a/manifests/extra-access.pp b/manifests/extra-access.pp index 3c72eaf..68a9069 100644 --- a/manifests/extra-access.pp +++ b/manifests/extra-access.pp @@ -1,10 +1,9 @@ -define sudo::extra-access($user, $access) { - file { "/etc/sudoers.d/$user": +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 => "$user $access", - notify => Service[apache2] + content => "# THIS FILE IS MANAGED BY PUPPET !\n\n$user $access\n", } }