feat: new async icinga

This commit is contained in:
2023-07-07 12:06:43 +00:00
parent aefcda4293
commit 691cdc4dd0
6 changed files with 39 additions and 2 deletions

View File

@@ -18,6 +18,13 @@
name: /data/async-icinga
state: directory
- name: Async Icinga Service (static)
template:
src: async-config.json.j2
dest: /data/async-icinga/config.json
notify:
- reload async icinga settings
- name: Async Icinga Service (static)
template:
src: async-icinga-config.json.j2
@@ -141,6 +148,7 @@
- tmnf-replay-server
- atlantis-hub
- grafana
- async-icinga
- name: include services ports
include_vars: services.yaml
@@ -153,6 +161,7 @@
- tmnf-replay-server
- atlantis-hub
- grafana
- async-icinga
- name: Deploy OAuth2Proxy
community.docker.docker_compose:
@@ -162,3 +171,4 @@
- tmnf-replay-server
- atlantis-hub
- grafana
- async-icinga

View File

@@ -0,0 +1,7 @@
{
"ICINGA_API_USER" : "{{ icinga_api_user }}",
"ICINGA_API_PASS" : "{{ icinga_api_pass }}",
"ICINGA_API_URL" : "{{ icinga_api_url }}",
"ICINGA_WEB_URL" : "{{ icinga_web_url }}",
"ASYNC_ICINGA_DUMMY_HOST" : "ASYNC_ICINGA"
}

View File

@@ -2,7 +2,7 @@
{% for service in async_icinga_static_services %}
"{{ service['name'] }}" : {
"timeout" : "{{ service['timeout'] }}",
"token" : "{{ service['token'] }}"
"token" : "{{ service['token'] }}",
"owner" : "{{ service['owner'] }}"
}{% if not loop.last %},{% endif %}
{% endfor %}

View File

@@ -4,5 +4,5 @@ async-icinga:
- "/data/async-icinga/instance/:/app/instance/"
restart: always
ports:
- 5006:5000
- 6006:5000
image: registry.atlantishq.de/athq/async-icinga