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

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

Issue 29333430: Issue 3508 - Introduce class adblockplus::user (Closed)
Patch Set: Issue 3508 - Fix typo in adblockplus::user documentation Created Jan. 13, 2016, 5:23 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 | modules/adblockplus/manifests/user.pp » ('j') | 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 fb320777db4bef89a540f9a723720eddaf04cfa5..dba305ce243e0b490b4fa34227929599e5ec595f 100644
--- a/modules/adblockplus/manifests/init.pp
+++ b/modules/adblockplus/manifests/init.pp
@@ -4,7 +4,25 @@
# used to integrate Puppet modules with each other, in order to assemble
# the setups used by the Adblock Plus project.
#
-class adblockplus {
+# === Parameters:
+#
+# [*users*]
+# A hash of adblockplus::user $name => $parameter items to set up in this
+# context, i.e. via Hiera.
+#
+# === Examples:
+#
+# class {'adblockplus':
+# users => {
+# 'pinocchio' => {
+# # see adblockplus::user
+# },
+# },
+# }
+#
+class adblockplus (
+ $users = hiera('adblockplus::users', []),
+) {
# Used as internal constant within adblockplus::* resources
$directory = '/var/adblockplus'
@@ -16,4 +34,7 @@ class adblockplus {
mode => 0755,
owner => 'root',
}
+
+ # See modules/adblockplus/manifests/user.pp
+ create_resources('adblockplus::user', $users)
}
« no previous file with comments | « no previous file | modules/adblockplus/manifests/user.pp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld