add grafana_plugins variable to install plugins

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2022-11-17 10:41:21 +01:00
parent a57950a038
commit 99dfea5887
No known key found for this signature in database
GPG Key ID: 09AA5403E54D9931
3 changed files with 7 additions and 3 deletions

View File

@ -47,8 +47,10 @@ grafana_anonymous: false
grafana_snaphots_enabled: true
# plugins to clone into the plugins directory
grafana_plugins:
- https://github.com/GoshPosh/grafana-meta-queries/archive/0.0.3.zip
grafana_plugins: []
# URLs of plugin ZIP archives.
grafana_unsigned_plugins: []
# - https://github.com/GoshPosh/grafana-meta-queries/archive/0.0.3.zip
# Generic container options
compose_recreate: 'smart'

View File

@ -47,4 +47,4 @@
owner: '{{ grafana_host_uid }}'
group: docker
remote_src: true
with_items: '{{ grafana_plugins }}'
with_items: '{{ grafana_unsigned_plugins }}'

View File

@ -5,6 +5,8 @@ services:
container_name: '{{ grafana_cont_name }}'
image: '{{ grafana_image }}'
restart: always
environment:
GF_INSTALL_PLUGINS: '{{ grafana_plugins | join(",") }}'
ports:
- '127.0.0.1:{{ grafana_cont_port }}:{{ grafana_cont_port }}'
volumes: