diff --git a/group_vars/all.yaml b/group_vars/all.yaml index 2247b91..33f64b5 100644 --- a/group_vars/all.yaml +++ b/group_vars/all.yaml @@ -12,7 +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_host: dispatcher.atlantishq.de +event_dispatcher_proto: https +event_dispatcher_port: 443 +event_dispatcher_address: "{{ event_dispatcher_proto }}://{{ event_dispatcher_host }}" event_dispatcher_user: dispatch event_dispatcher_pass: HISTORY_PURGED_SECRET diff --git a/roles/monitoring-master/tasks/icinga.yaml b/roles/monitoring-master/tasks/icinga.yaml index c957c16..03e8a1c 100644 --- a/roles/monitoring-master/tasks/icinga.yaml +++ b/roles/monitoring-master/tasks/icinga.yaml @@ -121,9 +121,9 @@ # WARNING ME LAZY BITCH, YOU HAVE TO DELETE THOSE ON THE SERVER OR IT WONT WORK # # i mean it will work because they will be added at the end and overwrite # previous definitions but ya know write a regex its fucking 03:39 am - - 'const signal_gateway_host = "192.168.122.110"' - - 'const signal_gateway_port = "5004"' - - 'const signal_gateway_proto = "http"' + - 'const signal_gateway_host = "{{ event_dispatcher_host }}"' + - 'const signal_gateway_port = "{{ event_dispatcher_port }}"' + - 'const signal_gateway_proto = "{{ event_dispatcher_proto }}"' notify: restart icinga - name: Signal command loaded from monitoring tools