[Mageia-sysadm] [215] add sudo module
root at mageia.org
root at mageia.org
Tue Nov 9 23:48:05 CET 2010
Revision: 215
Author: boklm
Date: 2010-11-09 23:48:04 +0100 (Tue, 09 Nov 2010)
Log Message:
-----------
add sudo module
Added Paths:
-----------
puppet/modules/sudo/
puppet/modules/sudo/manifests/
puppet/modules/sudo/manifests/init.pp
puppet/modules/sudo/templates/
puppet/modules/sudo/templates/sudoers
Added: puppet/modules/sudo/manifests/init.pp
===================================================================
--- puppet/modules/sudo/manifests/init.pp (rev 0)
+++ puppet/modules/sudo/manifests/init.pp 2010-11-09 22:48:04 UTC (rev 215)
@@ -0,0 +1,20 @@
+class sudo {
+ package { sudo:
+ ensure => installed;
+ }
+
+ file { "/etc/sudoers.d":
+ ensure => directory,
+ mode => 700,
+ owner => root,
+ group => root,
+ }
+
+ file { "/etc/sudoers":
+ ensure => present,
+ owner => root,
+ group => root,
+ mode => 600,
+ content => template("sudo/sudoers")
+ }
+}
Added: puppet/modules/sudo/templates/sudoers
===================================================================
--- puppet/modules/sudo/templates/sudoers (rev 0)
+++ puppet/modules/sudo/templates/sudoers 2010-11-09 22:48:04 UTC (rev 215)
@@ -0,0 +1 @@
+#includedir /etc/sudoers.d
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101109/e544f6fc/attachment-0001.html>
More information about the Mageia-sysadm
mailing list