make mgmt interfaces faster to build
This commit is contained in:
parent
4b98504aaa
commit
794071b256
5 changed files with 12 additions and 14 deletions
|
@ -0,0 +1,9 @@
|
||||||
|
define servicegroup {
|
||||||
|
servicegroup_name mgmt-http
|
||||||
|
alias mgmt interfaces on http
|
||||||
|
}
|
||||||
|
|
||||||
|
define servicegroup {
|
||||||
|
servicegroup_name mgmt-https
|
||||||
|
alias mgmt interfaces on https
|
||||||
|
}
|
|
@ -434,7 +434,6 @@
|
||||||
- name: Build out nagios servicegroup templates
|
- name: Build out nagios servicegroup templates
|
||||||
template: src=nagios/servicegroups/{{item}}.j2 dest=/etc/nagios/servicegroups/{{item}} mode=0644 owner=root group=root
|
template: src=nagios/servicegroups/{{item}}.j2 dest=/etc/nagios/servicegroups/{{item}} mode=0644 owner=root group=root
|
||||||
with_items:
|
with_items:
|
||||||
- mgmt-https.cfg
|
|
||||||
- mgmt-http.cfg
|
- mgmt-http.cfg
|
||||||
when: nagios_location == "internal"
|
when: nagios_location == "internal"
|
||||||
tags:
|
tags:
|
||||||
|
|
|
@ -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
|
# HTTP
|
||||||
|
|
||||||
{% for host in vars['phx2_management_hosts'] %}
|
{% for host in vars['phx2_management_hosts']|sort %}
|
||||||
define service {
|
define service {
|
||||||
host_name {{ host }}
|
host_name {{ host }}
|
||||||
service_description {{ host }}-http
|
service_description {{ host }}-http
|
||||||
check_command check_http!{{ host }}
|
check_command check_http!{{ host }}
|
||||||
use defaulttemplate
|
use defaulttemplate
|
||||||
|
servicegroups mgmt-http
|
||||||
}
|
}
|
||||||
|
|
||||||
define service {
|
define service {
|
||||||
|
@ -13,6 +14,7 @@
|
||||||
service_description {{ host }}-https
|
service_description {{ host }}-https
|
||||||
check_command check_https!{{ host }}
|
check_command check_https!{{ host }}
|
||||||
use defaulttemplate
|
use defaulttemplate
|
||||||
|
servicegroups mgmt-https
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue