[Mageia-sysadm] [768] add sudoers_config define (proposed by misc)
root at mageia.org
root at mageia.org
Wed Jan 12 18:32:33 CET 2011
Revision: 768
Author: boklm
Date: 2011-01-12 18:32:33 +0100 (Wed, 12 Jan 2011)
Log Message:
-----------
add sudoers_config define (proposed by misc)
Modified Paths:
--------------
puppet/modules/sudo/manifests/init.pp
Modified: puppet/modules/sudo/manifests/init.pp
===================================================================
--- puppet/modules/sudo/manifests/init.pp 2011-01-12 16:51:20 UTC (rev 767)
+++ puppet/modules/sudo/manifests/init.pp 2011-01-12 17:32:33 UTC (rev 768)
@@ -17,4 +17,13 @@
mode => 440,
content => template("sudo/sudoers")
}
+
+ define sudoers_config($content) {
+ file { "/etc/sudoers.d/$name":
+ owner => root,
+ group => root,
+ mode => 440,
+ content => $content,
+ }
+ }
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20110112/4d5e6f6d/attachment-0001.html>
More information about the Mageia-sysadm
mailing list