mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-09 14:58:33 +01:00
add: oauth grafana support
This commit is contained in:
@@ -156,3 +156,15 @@ keycloak_clients:
|
|||||||
groups: "monitoring"
|
groups: "monitoring"
|
||||||
master_address: "https://icinga.atlantishq.de"
|
master_address: "https://icinga.atlantishq.de"
|
||||||
skips:
|
skips:
|
||||||
|
|
||||||
|
grafana:
|
||||||
|
party_secret : "HISTORY_PURGED_SECRET"
|
||||||
|
client_id: z_grafana
|
||||||
|
client_secret: "HISTORY_PURGED_SECRET"
|
||||||
|
redirect_uris:
|
||||||
|
- "https://stats.atlantishq.de/*"
|
||||||
|
description: "Grafana"
|
||||||
|
keycloak_id: "00000000-0000-0000-0000-000000000010"
|
||||||
|
groups: "monitoring"
|
||||||
|
master_address: "https://stats.atlantishq.de"
|
||||||
|
skips:
|
||||||
|
|||||||
@@ -39,6 +39,7 @@
|
|||||||
with_items:
|
with_items:
|
||||||
- tmnf-replay-server
|
- tmnf-replay-server
|
||||||
- atlantis-hub
|
- atlantis-hub
|
||||||
|
- grafana
|
||||||
|
|
||||||
- name: Copy AtlantisHub config
|
- name: Copy AtlantisHub config
|
||||||
copy:
|
copy:
|
||||||
@@ -59,6 +60,11 @@
|
|||||||
src: "atlantis-hub-content/static-icons/"
|
src: "atlantis-hub-content/static-icons/"
|
||||||
dest: "/data/atlantis-hub/static-icons/"
|
dest: "/data/atlantis-hub/static-icons/"
|
||||||
|
|
||||||
|
- name: Copy AtlantisHub static icons
|
||||||
|
template:
|
||||||
|
src: "grafana.ini"
|
||||||
|
dest: "/data/grafana/grafana.ini"
|
||||||
|
|
||||||
- name: Create compose directories
|
- name: Create compose directories
|
||||||
file:
|
file:
|
||||||
name: "/opt/{{ item }}"
|
name: "/opt/{{ item }}"
|
||||||
@@ -71,6 +77,7 @@
|
|||||||
- async-icinga
|
- async-icinga
|
||||||
- tmnf-replay-server
|
- tmnf-replay-server
|
||||||
- atlantis-hub
|
- atlantis-hub
|
||||||
|
- grafana
|
||||||
|
|
||||||
- name: Copy compose templates
|
- name: Copy compose templates
|
||||||
template:
|
template:
|
||||||
@@ -84,6 +91,7 @@
|
|||||||
- async-icinga
|
- async-icinga
|
||||||
- tmnf-replay-server
|
- tmnf-replay-server
|
||||||
- atlantis-hub
|
- atlantis-hub
|
||||||
|
- grafana
|
||||||
|
|
||||||
- name: Log into private registry
|
- name: Log into private registry
|
||||||
docker_login:
|
docker_login:
|
||||||
@@ -105,6 +113,7 @@
|
|||||||
- async-icinga
|
- async-icinga
|
||||||
- tmnf-replay-server
|
- tmnf-replay-server
|
||||||
- atlantis-hub
|
- atlantis-hub
|
||||||
|
- grafana
|
||||||
|
|
||||||
- name: OAuth2Proxy directories
|
- name: OAuth2Proxy directories
|
||||||
file:
|
file:
|
||||||
@@ -114,6 +123,7 @@
|
|||||||
with_items:
|
with_items:
|
||||||
- tmnf-replay-server
|
- tmnf-replay-server
|
||||||
- atlantis-hub
|
- atlantis-hub
|
||||||
|
- grafana
|
||||||
|
|
||||||
- name: include services ports
|
- name: include services ports
|
||||||
include_vars: services.yaml
|
include_vars: services.yaml
|
||||||
@@ -125,6 +135,7 @@
|
|||||||
with_items:
|
with_items:
|
||||||
- tmnf-replay-server
|
- tmnf-replay-server
|
||||||
- atlantis-hub
|
- atlantis-hub
|
||||||
|
- grafana
|
||||||
|
|
||||||
- name: Deploy OAuth2Proxy
|
- name: Deploy OAuth2Proxy
|
||||||
community.docker.docker_compose:
|
community.docker.docker_compose:
|
||||||
@@ -133,3 +144,4 @@
|
|||||||
with_items:
|
with_items:
|
||||||
- tmnf-replay-server
|
- tmnf-replay-server
|
||||||
- atlantis-hub
|
- atlantis-hub
|
||||||
|
- grafana
|
||||||
|
|||||||
1492
roles/docker-deployments/templates/grafana.ini
Normal file
1492
roles/docker-deployments/templates/grafana.ini
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,9 +1,10 @@
|
|||||||
grafana:
|
grafana:
|
||||||
ports:
|
ports:
|
||||||
- 3000:3000
|
- 4000:3000
|
||||||
image: grafana/grafana-oss
|
image: grafana/grafana-oss
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- "/var/grafana:/var/lib/grafana"
|
- "/data/grafana/grafana-var/:/var/lib/grafana"
|
||||||
|
- "/data/grafana/grafana.ini:/etc/grafana/grafana.ini"
|
||||||
environment:
|
environment:
|
||||||
GF_INSTALL_PLUGINS : "grafana-clock-panel,grafana-simple-json-datasource"
|
GF_INSTALL_PLUGINS : "grafana-clock-panel,grafana-simple-json-datasource"
|
||||||
|
|||||||
@@ -1,16 +0,0 @@
|
|||||||
- name: Create Compose Directory
|
|
||||||
file:
|
|
||||||
path: /opt/
|
|
||||||
state: directory
|
|
||||||
|
|
||||||
- name: Create Data Volume Directory
|
|
||||||
file:
|
|
||||||
path: /var/grafana/
|
|
||||||
state: directory
|
|
||||||
owner: 472 # grafana docker uid
|
|
||||||
group: root
|
|
||||||
|
|
||||||
- name: Copy Grafana Compose file
|
|
||||||
template:
|
|
||||||
src: grafana.yaml.j2
|
|
||||||
dest: /opt/
|
|
||||||
@@ -12,13 +12,6 @@
|
|||||||
- icinga
|
- icinga
|
||||||
- monitoring-master
|
- monitoring-master
|
||||||
|
|
||||||
- name: Grafana.yaml
|
|
||||||
include: icinga.yaml
|
|
||||||
when: monitoring_master
|
|
||||||
tags:
|
|
||||||
- grafana
|
|
||||||
- monitoring-master
|
|
||||||
|
|
||||||
- name: logs.yaml
|
- name: logs.yaml
|
||||||
include: logs.yaml
|
include: logs.yaml
|
||||||
when: monitoring_master
|
when: monitoring_master
|
||||||
|
|||||||
@@ -17,3 +17,5 @@ services:
|
|||||||
port: 8000
|
port: 8000
|
||||||
icinga:
|
icinga:
|
||||||
port: 8080
|
port: 8080
|
||||||
|
grafana:
|
||||||
|
port: 3000
|
||||||
|
|||||||
Reference in New Issue
Block a user