mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-06 11:01:36 +01:00
feat: event dispatch substitutions
This commit is contained in:
@@ -39,6 +39,16 @@
|
||||
notify:
|
||||
- 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)
|
||||
copy:
|
||||
src: async-icinga-config-dynamic.json
|
||||
|
||||
@@ -6,6 +6,7 @@ services:
|
||||
restart: always
|
||||
volumes:
|
||||
- "/data/event-dispatcher/instance/:/app/instance/"
|
||||
- "/data/event-dispatcher/substitutions/:/app/substitutions/"
|
||||
environment:
|
||||
LDAP_SERVER : "{{ ldap_connection_url }}"
|
||||
LDAP_BIND_DN : "{{ ldap_bind_dn }}"
|
||||
@@ -14,6 +15,8 @@ services:
|
||||
|
||||
DISPATCH_ACCESS_TOKEN: "{{ event_dispatcher_pass }}"
|
||||
SETTINGS_ACCESS_TOKEN: "{{ notification_settings_access_token }}"
|
||||
|
||||
SUBSTITUTION_MAP: /app/substitutions/substitutions.yaml
|
||||
|
||||
event-dispatcher-worker:
|
||||
image: harbor-registry.atlantishq.de/atlantishq/event-dispatcher-worker
|
||||
|
||||
Reference in New Issue
Block a user