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

Support mysql session backend #16

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
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
9 changes: 9 additions & 0 deletions grafana/server.sls
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
{%- from "grafana/map.jinja" import server with context %}
{%- if server.enabled %}

grafana package repository:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should at least be a flag in the pillar to enable or not the Grafana repository. Or it could be managed with additional service metadata like for InfluxDB or Elasticsearch.

pkgrepo.managed:
- name: deb https://packagecloud.io/grafana/stable/debian/ {{ grains["oscodename"] }} main
- keyid: 59097AB
- keyserver: hkp://p80.pool.sks-keyservers.net:80
- file: /etc/apt/sources.list.d/grafana.list
- refresh_db: True

grafana_packages:
pkg.installed:
- names: {{ server.pkgs }}
- pkgrepo: grafana package repository

/etc/grafana/grafana.ini:
file.managed:
Expand Down