nagios: fix up aws group template
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
0b64eb34bf
commit
4fe85007f0
1 changed files with 1 additions and 8 deletions
|
@ -1,12 +1,6 @@
|
||||||
{% for host in groups['ec2']|sort %}
|
{% for host in groups['ec2']|sort %}
|
||||||
{% if hostvars[host].nagios_Check_Services['ping'] %}
|
|
||||||
define host {
|
define host {
|
||||||
{% if vars['nagios_location'] == 'internal' %}
|
use aws
|
||||||
use aws
|
|
||||||
{% else %}
|
|
||||||
use aws
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
host_name {{ host }}
|
host_name {{ host }}
|
||||||
{% if hostvars[host].ansible_hostname is defined %}
|
{% if hostvars[host].ansible_hostname is defined %}
|
||||||
alias {{ hostvars[host].ansible_hostname }}
|
alias {{ hostvars[host].ansible_hostname }}
|
||||||
|
@ -15,5 +9,4 @@ define host {
|
||||||
{% endif %}
|
{% endif %}
|
||||||
address {{ host }}
|
address {{ host }}
|
||||||
}
|
}
|
||||||
{% endif %}
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue