summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2014-02-10 18:33:05 +0100
committervarac <varacanero@zeromail.org>2014-02-10 18:33:05 +0100
commitdf342b1d4a12ea14aaaede6d876cca16028ba9a2 (patch)
tree9e127fbbb5e4f4cabd46bb6c07689508bd661c29
parent8054778e83fbc1f5a34dcaee4b364b8ded44dbab (diff)
add all nodes to check_mk main.mk config
-rw-r--r--puppet/modules/site_nagios/manifests/server/check_mk.pp5
1 files changed, 4 insertions, 1 deletions
diff --git a/puppet/modules/site_nagios/manifests/server/check_mk.pp b/puppet/modules/site_nagios/manifests/server/check_mk.pp
index 02cb8407..5e0795c1 100644
--- a/puppet/modules/site_nagios/manifests/server/check_mk.pp
+++ b/puppet/modules/site_nagios/manifests/server/check_mk.pp
@@ -4,7 +4,10 @@ class site_nagios::server::check_mk {
$pubkey = $ssh_hash['authorized_keys']['monitor']['key']
$type = $ssh_hash['authorized_keys']['monitor']['type']
$seckey = $ssh_hash['monitor']['private_key']
- $all_hosts = '"localhost", "plain1"'
+
+ $nagios_hiera = hiera_hash('nagios')
+ $hosts = $nagios_hiera['hosts']
+ $all_hosts = inline_template("<% @hosts.keys.sort.each do |key| -%>\"<%= key %>\", <% end -%>")
package { 'check-mk-server':
ensure => installed,