templates/packer: Make cdn host check less sensitive

This commit is contained in:
sanne 2022-01-18 11:02:26 +01:00 committed by Sanne Raymaekers
parent 68e98244b9
commit ef6c5df9fa

View file

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