mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-09 19:38:32 +01:00
feat: event dispatch substitutions
This commit is contained in:
@@ -39,6 +39,16 @@
|
|||||||
notify:
|
notify:
|
||||||
- reload async icinga settings
|
- reload async icinga settings
|
||||||
|
|
||||||
|
- name: Create Event Dispatch Substitutions config dir
|
||||||
|
file:
|
||||||
|
name: /data/event-dispatcher/substitutions/
|
||||||
|
state: directory
|
||||||
|
|
||||||
|
- name: Copy Event Dispatcher Substitutions Map
|
||||||
|
template:
|
||||||
|
src: event-message-subsitution-map.yaml
|
||||||
|
dest: /data/event-dispatcher/substitutions/substitutions.yaml
|
||||||
|
|
||||||
- name: Async Icinga Service (dynamic from backup file)
|
- name: Async Icinga Service (dynamic from backup file)
|
||||||
copy:
|
copy:
|
||||||
src: async-icinga-config-dynamic.json
|
src: async-icinga-config-dynamic.json
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- "/data/event-dispatcher/instance/:/app/instance/"
|
- "/data/event-dispatcher/instance/:/app/instance/"
|
||||||
|
- "/data/event-dispatcher/substitutions/:/app/substitutions/"
|
||||||
environment:
|
environment:
|
||||||
LDAP_SERVER : "{{ ldap_connection_url }}"
|
LDAP_SERVER : "{{ ldap_connection_url }}"
|
||||||
LDAP_BIND_DN : "{{ ldap_bind_dn }}"
|
LDAP_BIND_DN : "{{ ldap_bind_dn }}"
|
||||||
@@ -15,6 +16,8 @@ services:
|
|||||||
DISPATCH_ACCESS_TOKEN: "{{ event_dispatcher_pass }}"
|
DISPATCH_ACCESS_TOKEN: "{{ event_dispatcher_pass }}"
|
||||||
SETTINGS_ACCESS_TOKEN: "{{ notification_settings_access_token }}"
|
SETTINGS_ACCESS_TOKEN: "{{ notification_settings_access_token }}"
|
||||||
|
|
||||||
|
SUBSTITUTION_MAP: /app/substitutions/substitutions.yaml
|
||||||
|
|
||||||
event-dispatcher-worker:
|
event-dispatcher-worker:
|
||||||
image: harbor-registry.atlantishq.de/atlantishq/event-dispatcher-worker
|
image: harbor-registry.atlantishq.de/atlantishq/event-dispatcher-worker
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user