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: #5315 - Remove duplicate "the" from documentation Created Nov. 16, 2017, 4:31 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 | « no previous file | 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..7255e076ab1ab6154739eee42902d03ed8047e0f 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 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 | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld