diff options
author | Nicolas Vigier <boklm@mageia.org> | 2011-01-12 17:32:33 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2011-01-12 17:32:33 +0000 |
commit | ced8526f4c166e9ca2b1e31ecae681912fa6922b (patch) | |
tree | d1561e6db08d8b50268c173c96197eddc98756e3 | |
parent | ed3ff23267d1ff2aa1bd296c33e4847be322e930 (diff) | |
download | puppet-ced8526f4c166e9ca2b1e31ecae681912fa6922b.tar puppet-ced8526f4c166e9ca2b1e31ecae681912fa6922b.tar.gz puppet-ced8526f4c166e9ca2b1e31ecae681912fa6922b.tar.bz2 puppet-ced8526f4c166e9ca2b1e31ecae681912fa6922b.tar.xz puppet-ced8526f4c166e9ca2b1e31ecae681912fa6922b.zip |
add sudoers_config define (proposed by misc)
-rw-r--r-- | modules/sudo/manifests/init.pp | 9 |
1 files changed, 9 insertions, 0 deletions
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, + } + } } |