summaryrefslogtreecommitdiff
path: root/manifests/sudo.pp
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-01-24 11:11:45 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2022-02-09 18:06:12 +0100
commit7f9786da29b414d94af99c77be7fe16a6e919fba (patch)
tree29b378d810ccc0977d90a1eb86a01305a322b3b8 /manifests/sudo.pp
parentprofiles::puppetagent add extra_args param. (diff)
downloadprofiles-7f9786da29b414d94af99c77be7fe16a6e919fba.tar.gz
profiles-7f9786da29b414d94af99c77be7fe16a6e919fba.tar.xz
Broke profiles into parts.
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,
+ }
+}