Try to avoid reserved site keyword
[mirror/dsa-puppet.git] / modules / munin / templates / munin-node.conf.erb
index e5ef6ff..b740afe 100644 (file)
@@ -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']
-      scope.lookupvar('site::allnodeinfo')[node]['ipHostNumber'].each do |ip|
+roles = scope.lookupvar('deprecated::roles')
+roles['muninmaster'].each do |node|
+      scope.lookupvar('deprecated::allnodeinfo')[node]['ipHostNumber'].each do |ip|
          str += "allow ^" + ip.split('.').join('\.') + "$\n"
       end
-   end
 end
 str
 -%>