1
0
Fork 0
This commit is contained in:
Benjamin DUPUIS 2018-11-27 14:09:36 +01:00
parent 4c811e1c02
commit a890d1f924
2 changed files with 13 additions and 0 deletions

View File

@ -1,6 +1,9 @@
{%- if pillar.grafana is defined %}
include:
{%- if grains['os_family'] == 'RedHat' %}
- grafana.repo.redhat
{%- endif %}
{%- if pillar.grafana.server is defined %}
- grafana.server
{%- endif %}

10
grafana/repo/redhat.sls Normal file
View File

@ -0,0 +1,10 @@
grafana:
pkgrepo.managed:
- humanname: 'grafana'
- name: 'grafana'
- baseurl: 'https://packagecloud.io/grafana/stable/el/7/$basearch'
- enabled: 1
- gpgcheck: 1
- gpgkey: https://packagecloud.io/gpg.key https://grafanarel.s3.amazonaws.com/RPM-GPG-KEY-grafana
- sslverify: 1
- sslcacert: /etc/pki/tls/certs/ca-bundle.crt