Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
testing
puppet-icinga2_testing
Commits
24e9e49a
Commit
24e9e49a
authored
Oct 06, 2016
by
Markus Frosch
Browse files
selftest: Ignore zones without endpoints in hosts/services.conf.erb
parent
fe86602e
Changes
2
Hide whitespace changes
Inline
Side-by-side
templates/selftest/hosts.conf.erb
View file @
24e9e49a
...
...
@@ -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
%>
#######################################
...
...
templates/selftest/services.conf.erb
View file @
24e9e49a
...
...
@@ -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"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment