feat: new smart-send event gate

This commit is contained in:
2023-07-21 15:41:40 +00:00
parent 0a57ee6517
commit 2d72c74c7a
5 changed files with 26 additions and 3 deletions

View File

@@ -12,6 +12,10 @@ icinga_api_pass: "HISTORY_PURGED_SECRET"
icinga_api_url: "https://192.168.122.107:5665"
icinga_web_url: "https://icinga.atlantishq.de/"
event_dispatcher_address: https://dispatcher.atlantishq.de
event_dispatcher_user: dispatch
event_dispatcher_pass: HISTORY_PURGED_SECRET
ldap_password: flanigan
ldap_dc: "atlantishq"
ldap_org: "atlantishq de"

View File

@@ -1,12 +1,13 @@
event-dispatcher:
ports:
- 5007:5000
image: registry.atlantishq.de/event-dispatcher
image: registry.atlantishq.de/athq/event-dispatcher
restart: always
volumes:
- "/data/event-dispatcher/instance/":"/app/instance/"
- "/data/event-dispatcher/instance/:/app/instance/"
environment:
LDAP_SERVER : "{{ ldap_connection_url_ext }}"
SIGNAL_API_PASS: "{{ event_dispatcher_pass }}"
LDAP_SERVER : "{{ ldap_connection_url }}"
LDAP_BIND_DN : "{{ ldap_bind_dn }}"
LDAP_BIND_PW : "{{ ldap_password }}"
LDAP_BASE_DN : "{{ ldap_user_dn }}"

View File

@@ -179,3 +179,11 @@
- config.ini
- authentication.ini
- groups.ini
- name: Template dispatcher gateway passfile
template:
src: dispatcher-pass-file.txt
dest: /etc/icinga2/dispatcher-pass-file.txt
mode: 0660
owner: root
group: nagios

View File

@@ -0,0 +1,2 @@
{{ event_dispatcher_user }}
{{ event_dispatcher_pass }}

View File

@@ -135,3 +135,11 @@
- serien-ampel
- simple-log-server
- soundlib-interface
- name: event poller cronjob
cron:
user: sheppy
hour: "*"
minute: "*"
name: Poll Notifications from Dispatch (signal)
job: "/home/sheppy/signal-http-gateway/signal-query-dispatch.py --target {{ event_dispatcher_address }} --user {{ event_dispatcher_user }} --password {{ event_dispatcher_pass }} --signal-cli-bin /home/sheppy/signal-cli/bin/signal-cli"