1
0
Fork 0
mirror of synced 2024-12-22 22:48:57 -05:00
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 %} {%- if pillar.grafana is defined %}
include: include:
{%- if grains['os_family'] == 'RedHat' %}
- grafana.repo.redhat
{%- endif %}
{%- if pillar.grafana.server is defined %} {%- if pillar.grafana.server is defined %}
- grafana.server - grafana.server
{%- endif %} {%- 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