X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fmunin%2Ftemplates%2Fmunin-node.conf.erb;h=7a316a1950883969886cbc03a8fa65b9b52575bf;hb=0b9c56431623eeb69b6a70f32bddc0c083f797c9;hp=e5ef6ff7da7012eaefd07880e940143d24d65569;hpb=3eb533e5499e66423bafdedaf6c7d08ead1772de;p=mirror%2Fdsa-puppet.git diff --git a/modules/munin/templates/munin-node.conf.erb b/modules/munin/templates/munin-node.conf.erb index e5ef6ff7d..7a316a195 100644 --- a/modules/munin/templates/munin-node.conf.erb +++ b/modules/munin/templates/munin-node.conf.erb @@ -38,14 +38,14 @@ ignore_file \.rpm(save|new)$ # doesn't understand CIDR-style network notation. You may repeat # the allow line as many times as you'd like +allow ^127\.0\.0\.1$ <%= str = '' -scope.lookupvar('site::localinfo').keys.sort.each do |node| - if scope.lookupvar('site::localinfo')[node]['muninmaster'] +roles = scope.lookupvar('site::roles') +roles['muninmaster'].each do |node| scope.lookupvar('site::allnodeinfo')[node]['ipHostNumber'].each do |ip| str += "allow ^" + ip.split('.').join('\.') + "$\n" end - end end str -%>