Add some more hostgroups to excludes and extract the list out to group_vars/nagios

Signed-off-by: Rick Elrod <relrod@redhat.com>
This commit is contained in:
Rick Elrod 2020-02-17 19:47:19 +00:00 committed by Pierre-Yves Chibon
parent 136d2277a2
commit 6cfe3f18f0
2 changed files with 10 additions and 1 deletions

View file

@ -151,3 +151,12 @@ phx2_external:
- retrace01.fedoraproject.org
- secondary01.fedoraproject.org
- stg.fedoraproject.org
# Exclude these ansible host groups in hostgroups/all.cfg
exclude_hostgroups:
- nixnagios
- rhel8beta
- dbgserver_stg
- copr_keygen_dev_aws
- retrace_stg
- retrace_stg_aws

View file

@ -3,7 +3,7 @@
###############
## {{ env }}
{% for key, value in groups.iteritems()|sort %}
{% if groups[key] != [] and key not in ['nixnagios', 'rhel8beta','dbgserver_stg'] %}
{% if groups[key] != [] and key not in vars['exclude_hostgroups'] %}
define hostgroup{
hostgroup_name {{ key }}
alias {{ key }}