From ccf34b0722a48a9e6c20a4f92f2ce059be69660e Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Tue, 20 Mar 2012 17:36:19 +0000 Subject: split module in 2 file, to please puppet-lint --- modules/sudo/manifests/init.pp | 7 ------- modules/sudo/manifests/sudoers_config.pp | 6 ++++++ 2 files changed, 6 insertions(+), 7 deletions(-) create mode 100644 modules/sudo/manifests/sudoers_config.pp (limited to 'modules/sudo') 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, + } +} -- cgit v1.2.1