make mgmt interfaces faster to build
This commit is contained in:
parent
4b98504aaa
commit
794071b256
5 changed files with 12 additions and 14 deletions
|
@ -1,6 +0,0 @@
|
|||
define servicegroup {
|
||||
servicegroup_name mgmt-http
|
||||
alias mgmt interfaces on http
|
||||
members {% for host in vars['phx2_management_hosts'] %}{{ host }},{{ host }}-http {% if not loop.last %} , {% endif %}{% endfor %}
|
||||
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
define servicegroup {
|
||||
servicegroup_name mgmt-https
|
||||
alias mgmt interfaces on https
|
||||
members {% for host in vars['phx2_management_hosts'] %}{{ host }},{{ host }}-https {% if not loop.last %} , {% endif %}{% endfor %}
|
||||
|
||||
}
|
|
@ -1,11 +1,12 @@
|
|||
# HTTP
|
||||
|
||||
{% for host in vars['phx2_management_hosts'] %}
|
||||
{% for host in vars['phx2_management_hosts']|sort %}
|
||||
define service {
|
||||
host_name {{ host }}
|
||||
service_description {{ host }}-http
|
||||
check_command check_http!{{ host }}
|
||||
use defaulttemplate
|
||||
servicegroups mgmt-http
|
||||
}
|
||||
|
||||
define service {
|
||||
|
@ -13,6 +14,7 @@
|
|||
service_description {{ host }}-https
|
||||
check_command check_https!{{ host }}
|
||||
use defaulttemplate
|
||||
servicegroups mgmt-https
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue