From 3883da6d3d7fb5270950c14f16dbe49e736f4a63 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Sat, 21 Jun 2025 12:15:04 -0700 Subject: [PATCH] nagios / server: template oneproxy for iad2/rdu3 Signed-off-by: Kevin Fenzi --- .../templates/nagios/hostgroups/other.cfg.j2 | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/roles/nagios_server/templates/nagios/hostgroups/other.cfg.j2 b/roles/nagios_server/templates/nagios/hostgroups/other.cfg.j2 index 8cae25a95f..79324e0665 100644 --- a/roles/nagios_server/templates/nagios/hostgroups/other.cfg.j2 +++ b/roles/nagios_server/templates/nagios/hostgroups/other.cfg.j2 @@ -1,4 +1,4 @@ - +{% if datacenter == 'iad2' %} define hostgroup { hostgroup_name oneproxy alias just one proxy @@ -12,3 +12,18 @@ define hostgroup { members proxy01.stg.iad2.fedoraproject.org } +{% elif datacenter == 'rdu3' %} +define hostgroup { + hostgroup_name oneproxy + alias just one proxy + members proxy01.rdu3.fedoraproject.org + +} + +define hostgroup { + hostgroup_name oneproxy-stg + alias just one proxy in staging + members proxy01.stg.rdu3.fedoraproject.org + +} +{% endif %}