Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: modules/adblockplus/manifests/sudoers.pp

Issue 29557579: #3913 - Introduce adblockplus::sudoers parameter and type (Closed)
Patch Set: Created Sept. 27, 2017, 10:09 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « modules/adblockplus/manifests/init.pp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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))
+}
« no previous file with comments | « modules/adblockplus/manifests/init.pp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld