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) |
} |