summaryrefslogtreecommitdiff
path: root/manifests/sudo.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/sudo.pp')
-rw-r--r--manifests/sudo.pp17
1 files changed, 17 insertions, 0 deletions
diff --git a/manifests/sudo.pp b/manifests/sudo.pp
new file mode 100644
index 0000000..6b5fe6b
--- /dev/null
+++ b/manifests/sudo.pp
@@ -0,0 +1,17 @@
+class profiles::sudo {
+ file { '/etc/sudoers':
+ validate_cmd => '/usr/bin/visudo -cf %',
+ content => @(EOF)
+ Defaults insults
+ root ALL=(ALL) ALL
+ %root ALL=(ALL) ALL
+ %wheel ALL=(ALL) ALL
+
+ @includedir /etc/sudoers.d
+ | EOF
+ }
+
+ file { '/etc/sudoers.d':
+ ensure => directory,
+ }
+}