From a890d1f924a879d2fc52fd86f019914441c27a00 Mon Sep 17 00:00:00 2001 From: Benjamin DUPUIS Date: Tue, 27 Nov 2018 14:09:36 +0100 Subject: [PATCH] redhat --- grafana/init.sls | 3 +++ grafana/repo/redhat.sls | 10 ++++++++++ 2 files changed, 13 insertions(+) create mode 100644 grafana/repo/redhat.sls diff --git a/grafana/init.sls b/grafana/init.sls index 9829b7f..65e12fd 100644 --- a/grafana/init.sls +++ b/grafana/init.sls @@ -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 %} diff --git a/grafana/repo/redhat.sls b/grafana/repo/redhat.sls new file mode 100644 index 0000000..650ca35 --- /dev/null +++ b/grafana/repo/redhat.sls @@ -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