diff options
Diffstat (limited to 'modules/sudo')
-rw-r--r-- | modules/sudo/manifests/init.pp | 7 | ||||
-rw-r--r-- | modules/sudo/manifests/sudoers_config.pp | 6 |
2 files changed, 6 insertions, 7 deletions
diff --git a/modules/sudo/manifests/init.pp b/modules/sudo/manifests/init.pp index 3fb5d527..7d1277ce 100644 --- a/modules/sudo/manifests/init.pp +++ b/modules/sudo/manifests/init.pp @@ -10,11 +10,4 @@ class sudo { mode => '0440', content => template('sudo/sudoers'), } - - define sudoers_config($content) { - file { "/etc/sudoers.d/$name": - mode => '0440', - content => $content, - } - } } diff --git a/modules/sudo/manifests/sudoers_config.pp b/modules/sudo/manifests/sudoers_config.pp new file mode 100644 index 00000000..29e51c8a --- /dev/null +++ b/modules/sudo/manifests/sudoers_config.pp @@ -0,0 +1,6 @@ +define sudo::sudoers_config($content) { + file { "/etc/sudoers.d/$name": + mode => '0440', + content => $content, + } +} |