mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-09 19:28:33 +01:00
feat: new async icinga
This commit is contained in:
@@ -7,6 +7,11 @@ nsca_password: HISTORY_PURGED_SECRET
|
|||||||
RSYSLOG_SERVER: internal.monitoring.atlantishq.de
|
RSYSLOG_SERVER: internal.monitoring.atlantishq.de
|
||||||
influxdb_telegraf_password: HISTORY_PURGED_SECRET
|
influxdb_telegraf_password: HISTORY_PURGED_SECRET
|
||||||
|
|
||||||
|
icinga_api_user: "mobile"
|
||||||
|
icinga_api_pass: "HISTORY_PURGED_SECRET"
|
||||||
|
icinga_api_url: "https://192.168.122.107:5665"
|
||||||
|
icinga_web_url: "https://icinga.atlantishq.de/"
|
||||||
|
|
||||||
ldap_password: flanigan
|
ldap_password: flanigan
|
||||||
ldap_dc: "atlantishq"
|
ldap_dc: "atlantishq"
|
||||||
ldap_org: "atlantishq de"
|
ldap_org: "atlantishq de"
|
||||||
@@ -185,3 +190,16 @@ keycloak_clients:
|
|||||||
groups: "monitoring"
|
groups: "monitoring"
|
||||||
master_address: "https://stats.atlantishq.de"
|
master_address: "https://stats.atlantishq.de"
|
||||||
skips:
|
skips:
|
||||||
|
|
||||||
|
async-icinga:
|
||||||
|
party_secret : "HISTORY_PURGED_SECRET"
|
||||||
|
client_id: z_async_icinga
|
||||||
|
client_secret: "HISTORY_PURGED_SECRET"
|
||||||
|
redirect_uris:
|
||||||
|
- "https://async-icinga.atlantishq.de/*"
|
||||||
|
description: "Icinga Web"
|
||||||
|
keycloak_id: "00000000-0000-0000-0000-000000000010"
|
||||||
|
groups: "monitoring,icinga"
|
||||||
|
master_address: "https://async-icinga.atlantishq.de"
|
||||||
|
skips:
|
||||||
|
- "/"
|
||||||
|
|||||||
@@ -18,6 +18,13 @@
|
|||||||
name: /data/async-icinga
|
name: /data/async-icinga
|
||||||
state: directory
|
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)
|
- name: Async Icinga Service (static)
|
||||||
template:
|
template:
|
||||||
src: async-icinga-config.json.j2
|
src: async-icinga-config.json.j2
|
||||||
@@ -141,6 +148,7 @@
|
|||||||
- tmnf-replay-server
|
- tmnf-replay-server
|
||||||
- atlantis-hub
|
- atlantis-hub
|
||||||
- grafana
|
- grafana
|
||||||
|
- async-icinga
|
||||||
|
|
||||||
- name: include services ports
|
- name: include services ports
|
||||||
include_vars: services.yaml
|
include_vars: services.yaml
|
||||||
@@ -153,6 +161,7 @@
|
|||||||
- tmnf-replay-server
|
- tmnf-replay-server
|
||||||
- atlantis-hub
|
- atlantis-hub
|
||||||
- grafana
|
- grafana
|
||||||
|
- async-icinga
|
||||||
|
|
||||||
- name: Deploy OAuth2Proxy
|
- name: Deploy OAuth2Proxy
|
||||||
community.docker.docker_compose:
|
community.docker.docker_compose:
|
||||||
@@ -162,3 +171,4 @@
|
|||||||
- tmnf-replay-server
|
- tmnf-replay-server
|
||||||
- atlantis-hub
|
- atlantis-hub
|
||||||
- grafana
|
- grafana
|
||||||
|
- async-icinga
|
||||||
|
|||||||
7
roles/docker-deployments/templates/async-config.json.j2
Normal file
7
roles/docker-deployments/templates/async-config.json.j2
Normal 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"
|
||||||
|
}
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
{% for service in async_icinga_static_services %}
|
{% for service in async_icinga_static_services %}
|
||||||
"{{ service['name'] }}" : {
|
"{{ service['name'] }}" : {
|
||||||
"timeout" : "{{ service['timeout'] }}",
|
"timeout" : "{{ service['timeout'] }}",
|
||||||
"token" : "{{ service['token'] }}"
|
"token" : "{{ service['token'] }}",
|
||||||
"owner" : "{{ service['owner'] }}"
|
"owner" : "{{ service['owner'] }}"
|
||||||
}{% if not loop.last %},{% endif %}
|
}{% if not loop.last %},{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
@@ -4,5 +4,5 @@ async-icinga:
|
|||||||
- "/data/async-icinga/instance/:/app/instance/"
|
- "/data/async-icinga/instance/:/app/instance/"
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- 5006:5000
|
- 6006:5000
|
||||||
image: registry.atlantishq.de/athq/async-icinga
|
image: registry.atlantishq.de/athq/async-icinga
|
||||||
|
|||||||
@@ -19,3 +19,5 @@ services:
|
|||||||
port: 8080
|
port: 8080
|
||||||
grafana:
|
grafana:
|
||||||
port: 3000
|
port: 3000
|
||||||
|
async-icinga:
|
||||||
|
port: 5006
|
||||||
|
|||||||
Reference in New Issue
Block a user