Index: modules/adblockplus/manifests/sudoers.pp |
diff --git a/modules/adblockplus/manifests/sudoers.pp b/modules/adblockplus/manifests/sudoers.pp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9593bedf759fb7f0425ccbce472edec774fe094b |
--- /dev/null |
+++ b/modules/adblockplus/manifests/sudoers.pp |
@@ -0,0 +1,19 @@ |
+# http://hub.eyeo.com/issues/3913 |
+define adblockplus::sudoers ( |
+ $config, |
+) { |
+ |
+ # modules/adblockplus/manifests/sudo.pp |
+ include adblockplus::sudo |
+ |
+ # https://forge.puppet.com/puppetlabs/stdlib#ensure_resource |
+ # https://forge.puppet.com/puppetlabs/stdlib#merge |
+ # modules/adblockplus/lib/puppet/parser/functions/ensure_file_state.rb |
+ ensure_resource('file', "adblockplus::sudoers#$name", merge({ |
+ ensure => ensure_file_state(Package['sudo']), |
+ group => 'root', |
+ mode => '0440', |
+ owner => 'root', |
+ path => "/etc/sudoers.d/$name", |
+ }, $config)) |
+} |