X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fnagios%2Ftemplates%2Finc-debian.org.erb;h=d641b827be383bc4c40652e0adef9e230983f0a1;hb=978b3d3a80635c75775d7ae42485a8e14478eda3;hp=8a0babb50dcf003835f896cef58c85e75c2076a8;hpb=d0c098685b92334a611a0c596a35f538b95ead47;p=mirror%2Fdsa-puppet.git diff --git a/modules/nagios/templates/inc-debian.org.erb b/modules/nagios/templates/inc-debian.org.erb index 8a0babb50..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('deprecated::roles') -roles['nagiosmaster'].each do |nag| - nagii << scope.lookupvar('deprecated::allnodeinfo')[nag]['ipHostNumber'] -end -roles['extranrpeclient'].each do |nag| - nagii << scope.lookupvar('deprecated::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