From ced8526f4c166e9ca2b1e31ecae681912fa6922b Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Wed, 12 Jan 2011 17:32:33 +0000 Subject: add sudoers_config define (proposed by misc) --- modules/sudo/manifests/init.pp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/sudo/manifests/init.pp b/modules/sudo/manifests/init.pp index 93ebc249..28e3ee97 100644 --- a/modules/sudo/manifests/init.pp +++ b/modules/sudo/manifests/init.pp @@ -17,4 +17,13 @@ class sudo { mode => 440, content => template("sudo/sudoers") } + + define sudoers_config($content) { + file { "/etc/sudoers.d/$name": + owner => root, + group => root, + mode => 440, + content => $content, + } + } } -- cgit v1.2.1