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

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

Issue 29610573: #5315 - Introduce adblockplus::services parameter in Hiera (Closed)
Patch Set: Created Nov. 16, 2017, 4:28 p.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 | « hiera/roles/web/redirect/eyeo.yaml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/adblockplus/manifests/init.pp
diff --git a/modules/adblockplus/manifests/init.pp b/modules/adblockplus/manifests/init.pp
index b0d84d7240873d5debb7d2e12e5bcef25819ee71..687342d3130f92f170ee7a07495457cdefdfd8b9 100644
--- a/modules/adblockplus/manifests/init.pp
+++ b/modules/adblockplus/manifests/init.pp
@@ -21,6 +21,10 @@
# An array of adblockplus::packages items to set up in this context,
# via Hiera, exclusively.
#
+# [*services*]
+# A hiera_hash() of zero or more service items used as 2nd parameter for
+# the the ensure_resources('service', ...) function.
+#
# === Examples:
#
# class {'adblockplus':
@@ -145,4 +149,8 @@ class adblockplus (
# modules/adblockplus/manifests/sudoers.pp
$sudoers = hiera_hash('adblockplus::sudoers', {})
create_resources('adblockplus::sudoers', $sudoers)
+
+ # https://puppet.com/docs/puppet/latest/types/service.html
+ $services = hiera_hash('adblockplus::services', {})
+ create_resources('service', $services)
}
« no previous file with comments | « hiera/roles/web/redirect/eyeo.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld