Add healthcheck pings to opentofu and add systemd cleanup to healthcheck
This commit is contained in:
parent
2ad3cce749
commit
a15e70d73d
7 changed files with 60 additions and 11 deletions
roles/healthcheck/files/data
|
@ -8,10 +8,8 @@ import sys
|
|||
import asyncio
|
||||
from nio import AsyncClient, RoomMessageNotice
|
||||
|
||||
healthcheck_url = "https://hc-ping.com/" + os.environ['MATRIX_HC_UID']
|
||||
|
||||
def send_ping(success, msg=""):
|
||||
url = healthcheck_url
|
||||
url = os.environ['MATRIX_HC_URL']
|
||||
if not success:
|
||||
url += "/fail"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue