Skip to content

Commit

Permalink
redhat
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin DUPUIS committed Nov 27, 2018
1 parent a4dfe3a commit f6b6001
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions grafana/init.sls
Original file line number Diff line number Diff line change
@@ -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 %}
Expand Down
10 changes: 10 additions & 0 deletions grafana/repo/redhat.sls
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f6b6001

Please sign in to comment.