From ef6c5df9fac28df4b552b1a48d10fd5abef7d905 Mon Sep 17 00:00:00 2001 From: sanne Date: Tue, 18 Jan 2022 11:02:26 +0100 Subject: [PATCH] templates/packer: Make cdn host check less sensitive --- .../packer/ansible/roles/common/templates/monitrc.j2 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/templates/packer/ansible/roles/common/templates/monitrc.j2 b/templates/packer/ansible/roles/common/templates/monitrc.j2 index a147a845c..3d7938252 100644 --- a/templates/packer/ansible/roles/common/templates/monitrc.j2 +++ b/templates/packer/ansible/roles/common/templates/monitrc.j2 @@ -31,12 +31,18 @@ CHECK FILESYSTEM root PATH / CHECK HOST rhel_cdn WITH ADDRESS cdn.redhat.com if failed ping + for 3 cycles + then exec {{ pozorbot_script }} + else if succeeded + for 3 cycles then exec {{ pozorbot_script }} - else if succeeded then exec {{ pozorbot_script }} if failed port 443 protocol https status = 403 with ssl options { CACERTIFICATEFILE: /etc/rhsm/ca/redhat-uep.pem } + for 3 cycles + then exec {{ pozorbot_script }} + else if succeeded + for 3 cycles then exec {{ pozorbot_script }} - else if succeeded then exec {{ pozorbot_script }}