X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fnagios%2Ftemplates%2Finc-debian.org.erb;h=d641b827be383bc4c40652e0adef9e230983f0a1;hb=c46ff2155be94c3e1c3226879e13a8f31dbbac1b;hp=821786689cd159ba5e3381f60e1f40dbab57dce6;hpb=3c6ec3bea56f171d8864c0c8eb04680477e40c7b;p=mirror%2Fdsa-puppet.git diff --git a/modules/nagios/templates/inc-debian.org.erb b/modules/nagios/templates/inc-debian.org.erb index 821786689..d641b827b 100644 --- a/modules/nagios/templates/inc-debian.org.erb +++ b/modules/nagios/templates/inc-debian.org.erb @@ -1,23 +1,3 @@ -## -## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE. -## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git -## - -<%= -nagii = [] -roles = scope.lookupvar('site::roles') -roles['nagiosmaster'].each do |nag| - nagii << scope.lookupvar('site::allnodeinfo')[nag]['ipHostNumber'] -end -roles['extranrpeclient'].each do |nag| - nagii << scope.lookupvar('site::allnodeinfo')[nag]['ipHostNumber'] -end - -out = "allowed_hosts=" + nagii.flatten.sort.uniq.join(',') -out -%> - - # the string "system-in-shutdown" is used by the remote side to tell # if a system is running shutdown. We do not use check_nrpe's # exit code as that does not reliably tell us if the check could