diff --git a/roles/docker-deployments/tasks/main.yaml b/roles/docker-deployments/tasks/main.yaml index a690de9..be51f7e 100644 --- a/roles/docker-deployments/tasks/main.yaml +++ b/roles/docker-deployments/tasks/main.yaml @@ -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 diff --git a/roles/docker-deployments/templates/event-dispatcher.yaml b/roles/docker-deployments/templates/event-dispatcher.yaml index 2372db1..18fb4ac 100644 --- a/roles/docker-deployments/templates/event-dispatcher.yaml +++ b/roles/docker-deployments/templates/event-dispatcher.yaml @@ -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