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