aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/sudo/manifests/init.pp19
1 files changed, 5 insertions, 14 deletions
diff --git a/modules/sudo/manifests/init.pp b/modules/sudo/manifests/init.pp
index 28e3ee97..c2696e23 100644
--- a/modules/sudo/manifests/init.pp
+++ b/modules/sudo/manifests/init.pp
@@ -1,29 +1,20 @@
class sudo {
- package { sudo:
- ensure => installed;
- }
+ package { sudo: }
file { "/etc/sudoers.d":
ensure => directory,
mode => 711,
- owner => root,
- group => root,
}
file { "/etc/sudoers":
- ensure => present,
- owner => root,
- group => root,
- mode => 440,
- content => template("sudo/sudoers")
+ mode => 440,
+ content => template("sudo/sudoers")
}
define sudoers_config($content) {
- file { "/etc/sudoers.d/$name":
- owner => root,
- group => root,
+ file { "/etc/sudoers.d/$name":
mode => 440,
content => $content,
- }
+ }
}
}