aboutsummaryrefslogtreecommitdiffstats
path: root/modules/sudo/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'modules/sudo/manifests')
-rw-r--r--modules/sudo/manifests/init.pp9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/sudo/manifests/init.pp b/modules/sudo/manifests/init.pp
index 93ebc249..28e3ee97 100644
--- a/modules/sudo/manifests/init.pp
+++ b/modules/sudo/manifests/init.pp
@@ -17,4 +17,13 @@ class sudo {
mode => 440,
content => template("sudo/sudoers")
}
+
+ define sudoers_config($content) {
+ file { "/etc/sudoers.d/$name":
+ owner => root,
+ group => root,
+ mode => 440,
+ content => $content,
+ }
+ }
}