From 1a5623abc2ea1ad907bdc03d4228768b59c47e38 Mon Sep 17 00:00:00 2001 From: Alejandro Bednarik Date: Wed, 19 Jul 2017 17:36:42 -0300 Subject: [PATCH] Update server.sls Add grafana repository when including server.sls to install a recent version. --- grafana/server.sls | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/grafana/server.sls b/grafana/server.sls index 7c66e5c..7709933 100644 --- a/grafana/server.sls +++ b/grafana/server.sls @@ -1,6 +1,13 @@ {%- from "grafana/map.jinja" import server with context %} {%- if server.get('enabled', False) %} +grafana_repo: + pkgrepo.managed: + - human_name: Grafana + - name: deb https://packagecloud.io/grafana/stable/debian/ jessie main + - file: /etc/apt/sources.list.d/grafana.list + - key_url: https://packagecloud.io/gpg.key + grafana_packages: pkg.installed: - names: {{ server.pkgs }}