summaryrefslogtreecommitdiff
path: root/deployment_scripts/puppet/modules/lma_collector/manifests/heka.pp
diff options
context:
space:
mode:
Diffstat (limited to 'deployment_scripts/puppet/modules/lma_collector/manifests/heka.pp')
-rw-r--r--deployment_scripts/puppet/modules/lma_collector/manifests/heka.pp35
1 files changed, 17 insertions, 18 deletions
diff --git a/deployment_scripts/puppet/modules/lma_collector/manifests/heka.pp b/deployment_scripts/puppet/modules/lma_collector/manifests/heka.pp
index 4acf74f..80849c2 100644
--- a/deployment_scripts/puppet/modules/lma_collector/manifests/heka.pp
+++ b/deployment_scripts/puppet/modules/lma_collector/manifests/heka.pp
@@ -118,24 +118,23 @@ define lma_collector::heka (
118 $heka_monitoring_ensure = absent 118 $heka_monitoring_ensure = absent
119 } 119 }
120 120
121 if $heka_monitoring { 121 heka::filter::sandbox { "heka_monitoring_${title}":
122 heka::filter::sandbox { "heka_monitoring_${title}": 122 ensure => $heka_monitoring_ensure,
123 ensure => $heka_monitoring_ensure, 123 config_dir => $config_dir,
124 config_dir => $config_dir, 124 filename => "${lma_collector::params::plugins_dir}/filters/heka_monitoring.lua",
125 filename => "${lma_collector::params::plugins_dir}/filters/heka_monitoring.lua", 125 message_matcher => "Type == 'heka.all-report'",
126 message_matcher => "Type == 'heka.all-report'", 126 require => ::Heka[$title],
127 require => ::Heka[$title], 127 module_directory => $lua_modules_dir,
128 module_directory => $lua_modules_dir, 128 notify => Class[$service_class],
129 notify => Class[$service_class], 129 }
130 }
131 130
132 # Dashboard is required to enable monitoring messages 131 # Dashboard is required to enable monitoring messages
133 heka::output::dashboard { "dashboard_${title}": 132 heka::output::dashboard { "dashboard_${title}":
134 config_dir => $config_dir, 133 ensure => $heka_monitoring_ensure,
135 dashboard_address => $lma_collector::params::dashboard_address, 134 config_dir => $config_dir,
136 dashboard_port => $dashboard_port, 135 dashboard_address => $lma_collector::params::dashboard_address,
137 require => ::Heka[$title], 136 dashboard_port => $dashboard_port,
138 notify => Class[$service_class], 137 require => ::Heka[$title],
139 } 138 notify => Class[$service_class],
140 } 139 }
141} 140}