This commit is contained in:
Micke Nordin 2023-04-24 16:37:09 +02:00
parent 3b5d14a189
commit 036dcf010c
Signed by untrusted user: Micke
GPG key ID: 0DA0A7A5708FE257
2 changed files with 2 additions and 1 deletions

View file

@ -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}"

View file

@ -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