aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2010-11-09 22:48:04 +0000
committerNicolas Vigier <boklm@mageia.org>2010-11-09 22:48:04 +0000
commit9f0350f063d3f3f3cc009618e24f3daca9728dfd (patch)
tree793546d268e655daef6dd196d3d422251abbc02d
parente0c6cd81d79c5a3ae53585698f97f64b600d3906 (diff)
downloadpuppet-9f0350f063d3f3f3cc009618e24f3daca9728dfd.tar
puppet-9f0350f063d3f3f3cc009618e24f3daca9728dfd.tar.gz
puppet-9f0350f063d3f3f3cc009618e24f3daca9728dfd.tar.bz2
puppet-9f0350f063d3f3f3cc009618e24f3daca9728dfd.tar.xz
puppet-9f0350f063d3f3f3cc009618e24f3daca9728dfd.zip
add sudo module
-rw-r--r--modules/sudo/manifests/init.pp20
-rw-r--r--modules/sudo/templates/sudoers1
2 files changed, 21 insertions, 0 deletions
diff --git a/modules/sudo/manifests/init.pp b/modules/sudo/manifests/init.pp
new file mode 100644
index 00000000..3c175393
--- /dev/null
+++ b/modules/sudo/manifests/init.pp
@@ -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")
+ }
+}
diff --git a/modules/sudo/templates/sudoers b/modules/sudo/templates/sudoers
new file mode 100644
index 00000000..80f4bfd7
--- /dev/null
+++ b/modules/sudo/templates/sudoers
@@ -0,0 +1 @@
+#includedir /etc/sudoers.d