diff options
author | Michael Scherer <misc@mageia.org> | 2012-03-20 17:36:19 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2012-03-20 17:36:19 +0000 |
commit | ccf34b0722a48a9e6c20a4f92f2ce059be69660e (patch) | |
tree | 020ac1bbfd29d6378b4d5528455f389ed3cabe26 /modules/sudo | |
parent | 5a16a5904963a471ba8fc56d8d8ffa148f010132 (diff) | |
download | puppet-ccf34b0722a48a9e6c20a4f92f2ce059be69660e.tar puppet-ccf34b0722a48a9e6c20a4f92f2ce059be69660e.tar.gz puppet-ccf34b0722a48a9e6c20a4f92f2ce059be69660e.tar.bz2 puppet-ccf34b0722a48a9e6c20a4f92f2ce059be69660e.tar.xz puppet-ccf34b0722a48a9e6c20a4f92f2ce059be69660e.zip |
split module in 2 file, to please puppet-lint
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, + } +} |