Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add grafana_plugins_ops to defaults and docs #251

Merged
merged 2 commits into from
Oct 19, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions roles/grafana/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ All variables which can be overridden are stored in [defaults/main.yml](defaults
| `grafana_datasources` | [] | List of datasources which should be configured |
| `grafana_environment` | {} | Optional Environment param for Grafana installation, useful ie for setting http_proxy |
| `grafana_plugins` | [] | List of Grafana plugins which should be installed |
| `grafana_plugins_ops` | {} | [plugins](https://grafana.com/docs/grafana/latest/setup-grafana/configure-grafana/#plugins-1) configuration section |
| `grafana_alert_notifications` | [] | List of alert notification channels to be created, updated, or deleted |

Data source example:
Expand Down
7 changes: 6 additions & 1 deletion roles/grafana/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,15 @@ grafana_feature_toggles: {}
# regressionTransformation: true

#######
# Plugins from https://grafana.com/plugins
# Plugins to install from https://grafana.com/plugins
grafana_plugins: []
# - raintank-worldping-app

#######
# Configuration of plugins ([plugin] section of grafana.ini]
grafana_plugins_ops: {}
# allow_loading_unsigned_plugins: alexanderzobnin-zabbix-datasource

# Dashboards from https://grafana.com/dashboards
grafana_dashboards: []
# - dashboard_id: '4271'
Expand Down
2 changes: 1 addition & 1 deletion roles/grafana/templates/grafana.ini.j2
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ root_url = {{ grafana_url }}
{% endfor %}

# Plugins
{% if grafana_plugins_ops is defined %}
{% if grafana_plugins_ops != {} %}
[plugins]
{% for k,v in grafana_plugins_ops.items() %}
{{ k }} = {{ v }}
Expand Down