From 03809b530c39157415ca711b16ed8b3c18c9082d Mon Sep 17 00:00:00 2001 From: Sheppy Date: Fri, 15 Nov 2024 10:56:25 +0000 Subject: [PATCH] add: event substitution map & actions dispatcher config --- roles/docker-deployments/tasks/main.yaml | 1 + .../event-message-subsitution-map.yaml | 19 +++++++++++ .../templates/service-dispatcher-config.yaml | 34 +++++++++++++++++++ 3 files changed, 54 insertions(+) create mode 100644 roles/docker-deployments/templates/event-message-subsitution-map.yaml create mode 100644 roles/docker-deployments/templates/service-dispatcher-config.yaml diff --git a/roles/docker-deployments/tasks/main.yaml b/roles/docker-deployments/tasks/main.yaml index be51f7e..8d31356 100644 --- a/roles/docker-deployments/tasks/main.yaml +++ b/roles/docker-deployments/tasks/main.yaml @@ -110,6 +110,7 @@ dest: "/data/atlantis-status/services/" with_items: - "atlantis-array" + - "service-dispatcher-config" - name: Create compose directories file: diff --git a/roles/docker-deployments/templates/event-message-subsitution-map.yaml b/roles/docker-deployments/templates/event-message-subsitution-map.yaml new file mode 100644 index 0000000..b7f2c7b --- /dev/null +++ b/roles/docker-deployments/templates/event-message-subsitution-map.yaml @@ -0,0 +1,19 @@ +prometheus: "vnet0:" +paperless: "vnet1:" +usermanagement: "vnet2:" +git: "vnet3:" +harbor-registry: "vnet4:" +irc-new: "vnet5:" +backup: "vnet6:" +ths: "vnet7:" +signal: "vnet8:" +zabbix: "vnet9:" +kathi: "vnet10:" +vpn: "vnet11:" +timetracking: "vnet12:" +monitoring: "vnet13:" +mail: "vnet14:" +nextcloud-athq: "vnet15:" +steam-master: "vnet16:" +kube1: "vnet20:" +nextcloud-s3-oidc: "vnet22:" diff --git a/roles/docker-deployments/templates/service-dispatcher-config.yaml b/roles/docker-deployments/templates/service-dispatcher-config.yaml new file mode 100644 index 0000000..cb08cfb --- /dev/null +++ b/roles/docker-deployments/templates/service-dispatcher-config.yaml @@ -0,0 +1,34 @@ +name: Dispatcher Downtime + +hook_operations: + - 5_minutes_downtime: + location: + url: + - https://dispatcher.atlantishq.de/downtime + method: "POST" + args: + token: "{{ notification_settings_access_token }}" + minutes: 5 + client: false + - 30_minutes_downtime: + location: + url: + - https://dispatcher.atlantishq.de/downtime + method: "POST" + args: + token: "{{ notification_settings_access_token }}" + minutes: 30 + status_url: https://dispatcher.atlantishq.de/downtime + client: false + - 24_hours_downtime: + location: + url: + - https://dispatcher.atlantishq.de/downtime + method: "POST" + args: + token: "{{ notification_settings_access_token }}" + minutes: 720 + client: false + +groups: + - pki