Merge pull request '🔧 Add volume for grafana configuration' (!114) from grafana-cfg into master

Reviewed-on: https://gitea.n39.eu/Netz39_Admin/netz39-infra-ansible/pulls/114
Reviewed-by: dkdent <dkdent@netz39.de>
This commit is contained in:
Stefan Haun 2022-11-12 17:02:08 +01:00
commit dd2b1f79b7

View file

@ -393,6 +393,8 @@
- path: "{{ data_dir }}/grafana/data" - path: "{{ data_dir }}/grafana/data"
owner: 472 owner: 472
mode: "0755" mode: "0755"
- path: "{{ data_dir }}/grafana/etc"
mode: "0755"
- name: Ensure container for grafana is running - name: Ensure container for grafana is running
docker_container: docker_container:
@ -402,12 +404,13 @@
- "127.0.0.1:{{ grafana_host_port }}:3000" - "127.0.0.1:{{ grafana_host_port }}:3000"
volumes: volumes:
- "{{ data_dir }}/grafana/data:/var/lib/grafana" - "{{ data_dir }}/grafana/data:/var/lib/grafana"
- "{{ data_dir }}/grafana/etc:/etc/grafana"
env: env:
TZ: "{{ timezone }}" TZ: "{{ timezone }}"
GF_SECURITY_ADMIN_PASSWORD: "{{ grafana_admin_password }}" GF_SECURITY_ADMIN_PASSWORD: "{{ grafana_admin_password }}"
GF_USERS_ALLOW_SIGN_UP: "false" GF_USERS_ALLOW_SIGN_UP: "false"
GF_INSTALL_PLUGINS: "flant-statusmap-panel,ae3e-plotly-panel" GF_INSTALL_PLUGINS: "flant-statusmap-panel,ae3e-plotly-panel"
- name: Setup proxy site grafana.n39.eu - name: Setup proxy site grafana.n39.eu
include_role: include_role:
name: setup_http_site_proxy name: setup_http_site_proxy