aboutsummaryrefslogtreecommitdiffstats
path: root/manifests
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-06-23 00:29:45 +0000
committerGerrit Code Review <review@openstack.org>2017-06-23 00:29:45 +0000
commitf64ef0cbeb2738d905cefe783bace1b5c3f4a884 (patch)
tree4bfb01a4267d34350ee3a51fdd7323cbf9bc1d5c /manifests
parent0db0c43727d8286e78d103e22339b6f09c97d611 (diff)
parent2210f3c9170140985b793ef3df48489c308c70d1 (diff)
Merge "Make collectd to log also to file"
Diffstat (limited to 'manifests')
-rw-r--r--manifests/profile/base/metrics/collectd.pp9
1 files changed, 9 insertions, 0 deletions
diff --git a/manifests/profile/base/metrics/collectd.pp b/manifests/profile/base/metrics/collectd.pp
index 098f795..088e6e2 100644
--- a/manifests/profile/base/metrics/collectd.pp
+++ b/manifests/profile/base/metrics/collectd.pp
@@ -23,6 +23,11 @@
# for more details.
# Defaults to hiera('step')
#
+# [*enable_file_logging*]
+# (Optional) Boolean. Whether to enable logfile plugin.
+# which we should send metrics.
+# Defaults to false
+#
# [*collectd_server*]
# (Optional) String. The name or address of a collectd server to
# which we should send metrics.
@@ -49,6 +54,7 @@
class tripleo::profile::base::metrics::collectd (
$step = Integer(hiera('step')),
+ $enable_file_logging = false,
$collectd_server = undef,
$collectd_port = undef,
$collectd_username = undef,
@@ -58,6 +64,9 @@ class tripleo::profile::base::metrics::collectd (
) {
if $step >= 3 {
include ::collectd
+ if $enable_file_logging {
+ include ::collectd::plugin::logfile
+ }
if ! ($collectd_securitylevel in [undef, 'None', 'Sign', 'Encrypt']) {
fail('collectd_securitylevel must be one of (None, Sign, Encrypt).')