mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
Don't change the template name, or it will be the name of the remote file
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
@@ -1,56 +0,0 @@
|
||||
###############
|
||||
# All Servers and associated devices
|
||||
###############
|
||||
## {{ env }}
|
||||
{% for key, value in groups.items()|sort %}
|
||||
{% if groups[key] != [] and key not in vars['exclude_iad2_hostgroups'] and '_iad2' in key %}
|
||||
define hostgroup{
|
||||
hostgroup_name {{ key }}
|
||||
alias {{ key }}
|
||||
{%- for host in groups[key]|sort if hostvars[host].nagios_Can_Connect == true and '.iad2.' in hostvars[host].inventory_hostname %}
|
||||
{% if loop.first +%}
|
||||
members {{ host }}{% else %}, {{ host }}{% endif %}
|
||||
{% endfor +%}
|
||||
}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
define hostgroup{
|
||||
hostgroup_name no_ping
|
||||
alias no_ping
|
||||
members {% for host in groups['all']|sort %}{% if hostvars[host].nagios_Check_Services['ping'] == true or hostvars[host].nagios_Can_Connect == true %}{{host}}, {% endif %}{% endfor %}
|
||||
}
|
||||
|
||||
## Services with minimal monitoring
|
||||
|
||||
define hostgroup{
|
||||
hostgroup_name cloud_aws_group
|
||||
alias cloud_aws_group
|
||||
members {% for host in groups['cloud_aws']|sort %}{{host}}, {% endfor %}
|
||||
}
|
||||
|
||||
|
||||
define hostgroup{
|
||||
hostgroup_name mincheckgrp
|
||||
alias mincheckgrp
|
||||
members {% for host in groups['all']|sort %}{% if hostvars[host].nagios_Check_Services['nrpe'] != true and hostvars[host].nagios_Can_Connect == true %}{{host}}, {% endif %}{% endfor %}
|
||||
|
||||
}
|
||||
|
||||
define hostgroup{
|
||||
hostgroup_name routers
|
||||
alias routers
|
||||
members ibiblio-gw, dedicated-gw, host1plus-gw, internetx-gw, osuosl-gw, rdu-gw, rdu-cc-gw, iad2-gw
|
||||
}
|
||||
|
||||
|
||||
#
|
||||
# Management hardware
|
||||
#
|
||||
define hostgroup {
|
||||
hostgroup_name iad2_mgmt_systems
|
||||
alias iad2_mgmt_systems
|
||||
members {% for host in vars['iad2_management_hosts']|sort %}{{host}}{% if not loop.last %},{% endif %} {% endfor %}
|
||||
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
###############
|
||||
## {{ env }}
|
||||
{% for key, value in groups.items()|sort %}
|
||||
{% if groups[key] != [] and key not in vars['exclude_iad2_hostgroups'] and '_rdu3' in key %}
|
||||
{% if groups[key] != [] and key not in vars['exclude_iad2_hostgroups'] and '_' ~ datacenter in key %}
|
||||
define hostgroup{
|
||||
hostgroup_name {{ key }}
|
||||
alias {{ key }}
|
||||
Reference in New Issue
Block a user