lets break some stuff
This commit is contained in:
parent
71de1cd8ea
commit
6f627523c6
2 changed files with 10 additions and 15 deletions
|
@ -1,14 +1,21 @@
|
|||
define service {
|
||||
hostgroup_name all
|
||||
hostgroup_name *, !buildvm-armv7, !buildvm-s390x, !buildvm-s390
|
||||
service_description ICMP-Ping4
|
||||
check_command check_ping4!350.0,20%!500.0,60%
|
||||
use criticaltemplate
|
||||
}
|
||||
|
||||
define service {
|
||||
hostgroup_name buildvm-armv7, buildvm-s390x, buildvm-s390
|
||||
service_description ICMP-Ping4-vm-builders
|
||||
check_command check_ping4!350.0,20%!1000.0,80%
|
||||
use criticaltemplate
|
||||
}
|
||||
|
||||
# define service {
|
||||
# hostgroup_name all
|
||||
# service_description ICMP-Ping6
|
||||
# check_command check_ping6!350.0,20%!500.0,60%
|
||||
# check_command check_ping6!350.0,20%!500.0,60%
|
||||
# use criticaltemplate
|
||||
# }
|
||||
|
||||
|
|
|
@ -3,19 +3,8 @@
|
|||
###############
|
||||
## {{ env }}
|
||||
|
||||
{% if env == "staging" %}
|
||||
|
||||
define hostgroup{
|
||||
hostgroup_name all
|
||||
alias all
|
||||
members {% for host in groups['all'] %}{% if (hostvars[host].env is defined) and (hostvars[host].env == 'staging') and ( hostvars[host].datacenter == 'phx2') %}{{host}}, {% endif %} {% endfor %}
|
||||
|
||||
}
|
||||
|
||||
{% else %}
|
||||
|
||||
{% for key, value in groups.iteritems() %}
|
||||
{% if groups[key] %}
|
||||
{% if groups[key] and key is not 'all' %}
|
||||
define hostgroup{
|
||||
hostgroup_name {{ key }}
|
||||
alias {{ key }}
|
||||
|
@ -25,7 +14,6 @@ define hostgroup{
|
|||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{% endif %}
|
||||
|
||||
##
|
||||
## Management hardware
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue