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

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

Issue 29333281: Issue 3307 - Introduce class adblockplus::log::rotation (Closed)
Patch Set: Created Jan. 7, 2016, 1:14 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/log/rotation.pp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/adblockplus/manifests/log.pp
diff --git a/modules/adblockplus/manifests/log.pp b/modules/adblockplus/manifests/log.pp
index bcfb68a589ed13d077ae60605bb0b2eb71387bf2..0a8bf7cdbdacfccccba52e7b4ed909ce5c73e800 100644
--- a/modules/adblockplus/manifests/log.pp
+++ b/modules/adblockplus/manifests/log.pp
@@ -2,7 +2,23 @@
#
# Default root namespace for integrating custom logging entities.
#
-class adblockplus::log {
+# === Parameters:
+#
+# [*rotations*]
+# A hash of adblockplus::log::rotation $name => $parameter items
+# to set up in this context, i.e. via Hiera.
+#
+# === Examples:
+#
+# class {'adblockplus::log':
+# rotations => {
+# # see adblockplus::log::rotation
+# },
+# }
+#
+class adblockplus::log (
+ $rotations = hiera('adblockplus::log::rotations', {}),
+) {
include adblockplus
realize(File[$adblockplus::directory])
@@ -23,4 +39,7 @@ class adblockplus::log {
ensure => 'present',
managehome => true,
}
+
+ # See modules/adblockplus/manifests/log/rotation.pp
+ create_resources('adblockplus::log::rotation', $rotations)
}
« no previous file with comments | « no previous file | modules/adblockplus/manifests/log/rotation.pp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld