diff --git a/manifests/extra-access.pp b/manifests/extra-access.pp index 64cc4a5..41ae6fe 100644 --- a/manifests/extra-access.pp +++ b/manifests/extra-access.pp @@ -1,4 +1,4 @@ -define koumbit::sudo::extra-access($user, $access) { +define sudo::extra-access($user, $access) { file { "/etc/sudoers.d/$user": ensure => 'present', owner => root, @@ -8,3 +8,7 @@ define koumbit::sudo::extra-access($user, $access) { notify => Service[apache2] } } + +define koumbit::sudo::extra-access($user, $access) { + sudo::extra-access { $name: user => $user, access => $access } +} diff --git a/manifests/init.pp b/manifests/init.pp index c61e3c5..3988c72 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -17,3 +17,6 @@ class sudo { } } } + +# backwards compat +class koumbit::sudo inherits sudo {}