Commit 24e9e49a authored by Markus Frosch's avatar Markus Frosch
Browse files

selftest: Ignore zones without endpoints in hosts/services.conf.erb

parent fe86602e
......@@ -3,7 +3,9 @@
# Managed by Puppet
#######################################
<% @_zones.each do |zone, zone_hash| -%>
<%- @_zones.each do |zone, zone_hash|
next unless zone['endpoints']
-%>
#######################################
# Zone <%= zone %>
#######################################
......
......@@ -54,7 +54,9 @@ apply Service "icinga ido" {
# Icinga 2 zones
##
<% @_zones.each do |zone, zone_hash| -%>
<%- @_zones.each do |zone, zone_hash|
next unless zone_hash['endpoints']
-%>
apply Service "icinga cluster zone <%= zone %>" {
import "agent-service"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment