From 036dcf010c221b8a94e76f04f40a476773f4af70 Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Mon, 24 Apr 2023 16:37:09 +0200 Subject: [PATCH] Add gss --- facts.d/nc_versions.sh | 2 +- templates/monitor/sunetdrive_sites.cfg.erb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/facts.d/nc_versions.sh b/facts.d/nc_versions.sh index 38ce14f..2beb9c8 100755 --- a/facts.d/nc_versions.sh +++ b/facts.d/nc_versions.sh @@ -21,7 +21,7 @@ for environment in test prod; do version=$(yq -r ".${key}" "${group}") print_fact "${customer}" "${environment}" "${version}" done - for customer in $(yq -r '.fullnodes[]' "${common}"); do + for customer in $(yq -r '.fullnodes[]' "${common}") gss; do group="${repo}/${customer}-common/overlay/etc/hiera/data/group.yaml" version=$(yq -r ".${key}" "${group}") print_fact "${customer}" "${environment}" "${version}" diff --git a/templates/monitor/sunetdrive_sites.cfg.erb b/templates/monitor/sunetdrive_sites.cfg.erb index 50b20ec..7991da6 100644 --- a/templates/monitor/sunetdrive_sites.cfg.erb +++ b/templates/monitor/sunetdrive_sites.cfg.erb @@ -164,6 +164,7 @@ define service { check_interval 5 check_period 24x7 <% cur_cust = site.gsub(/\.drive.*/,'') %> +<% cur_cust = cur_cust.gsub(/drive.*/,'gss') %> # 'check_nextcloud' command definition <% if @environment == 'prod' and not site.match('test') and @fullnodes.include?(cur_cust) %> contacts slack