Merge branch 'prod-env'
This commit is contained in:
commit
a392671ccf
@ -1,2 +1,2 @@
|
|||||||
SOURCE_IMAGE_DIGEST=registry.tarla.io/iklimco/health-agent@sha256:196bb9b1cbb7acd7cd8671f7a3e9e3f0078a0c74658c66c9c22881fa66d75242
|
SOURCE_IMAGE_DIGEST=registry.tarla.io/iklimco/health-agent@sha256:651733aa901c5a8736495c4c9535599629fb8e0c40b472028020569733865813
|
||||||
PROD_IMAGE_TAG=0.1.0
|
PROD_IMAGE_TAG=0.1.0
|
||||||
@ -261,8 +261,11 @@ def setup_uptime_kuma(dry_run=False, only=None):
|
|||||||
"hostname": hostname,
|
"hostname": hostname,
|
||||||
"port": 53,
|
"port": 53,
|
||||||
"accepted_statuscodes": ["200-299"],
|
"accepted_statuscodes": ["200-299"],
|
||||||
|
"dns_resolve_server": "1.1.1.1",
|
||||||
"dns_resolve_type": dns_resolve_type,
|
"dns_resolve_type": dns_resolve_type,
|
||||||
"interval": interval,
|
"interval": interval,
|
||||||
|
"url": "https://",
|
||||||
|
"conditions": [],
|
||||||
}
|
}
|
||||||
if parent_group_id is not None:
|
if parent_group_id is not None:
|
||||||
kwargs["parent"] = parent_group_id
|
kwargs["parent"] = parent_group_id
|
||||||
@ -280,8 +283,11 @@ def setup_uptime_kuma(dry_run=False, only=None):
|
|||||||
"hostname": hostname,
|
"hostname": hostname,
|
||||||
"port": 53,
|
"port": 53,
|
||||||
"accepted_statuscodes": ["200-299"],
|
"accepted_statuscodes": ["200-299"],
|
||||||
|
"dns_resolve_server": "1.1.1.1",
|
||||||
"dns_resolve_type": dns_resolve_type,
|
"dns_resolve_type": dns_resolve_type,
|
||||||
"interval": interval,
|
"interval": interval,
|
||||||
|
"url": "https://",
|
||||||
|
"conditions": [],
|
||||||
}
|
}
|
||||||
if parent_group_id is not None:
|
if parent_group_id is not None:
|
||||||
kwargs["parent"] = parent_group_id
|
kwargs["parent"] = parent_group_id
|
||||||
|
|||||||
@ -140,11 +140,14 @@ def check_vault():
|
|||||||
max_ping = max(max_ping, ms)
|
max_ping = max(max_ping, ms)
|
||||||
|
|
||||||
if resp is not None:
|
if resp is not None:
|
||||||
data = resp.json()
|
try:
|
||||||
if not data.get("sealed"):
|
data = resp.json()
|
||||||
unsealed_count += 1
|
if not data.get("sealed"):
|
||||||
else:
|
unsealed_count += 1
|
||||||
errors.append(f"{node} SEALED")
|
else:
|
||||||
|
errors.append(f"{node} SEALED")
|
||||||
|
except Exception as e:
|
||||||
|
errors.append(f"{node} invalid response: {resp.status_code}")
|
||||||
else:
|
else:
|
||||||
errors.append(f"{node} unreachable: {err}")
|
errors.append(f"{node} unreachable: {err}")
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user