aboutsummaryrefslogtreecommitdiffstats
path: root/manifests/profile/base/metrics/collectd/collectd_service.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/profile/base/metrics/collectd/collectd_service.pp')
-rw-r--r--manifests/profile/base/metrics/collectd/collectd_service.pp11
1 files changed, 11 insertions, 0 deletions
diff --git a/manifests/profile/base/metrics/collectd/collectd_service.pp b/manifests/profile/base/metrics/collectd/collectd_service.pp
new file mode 100644
index 0000000..c1b3a60
--- /dev/null
+++ b/manifests/profile/base/metrics/collectd/collectd_service.pp
@@ -0,0 +1,11 @@
+# This is used to look up a list of service-specific collectd plugins
+# in the hiera data provided by THT.
+define tripleo::profile::base::metrics::collectd::collectd_service (
+) {
+ $plugins = hiera("tripleo.collectd.plugins.${title}", [])
+
+ if $plugins {
+ ::tripleo::profile::base::metrics::collectd::collectd_plugin {
+ $plugins: }
+ }
+}