From 762c94142f58969a431584aabf63c516be777f72 Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Sun, 15 Sep 2019 22:11:14 +0800 Subject: [PATCH 1/2] Modify apt repository setting. --- cookbooks/grafana/files/etc/apt/sources.list.d/grafana.list | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cookbooks/grafana/files/etc/apt/sources.list.d/grafana.list b/cookbooks/grafana/files/etc/apt/sources.list.d/grafana.list index 886da8d..99ece0c 100644 --- a/cookbooks/grafana/files/etc/apt/sources.list.d/grafana.list +++ b/cookbooks/grafana/files/etc/apt/sources.list.d/grafana.list @@ -1 +1,2 @@ -deb https://packagecloud.io/grafana/stable/debian/ jessie main +deb https://packages.grafana.com/oss/deb stable main +# deb-src https://packages.grafana.com/oss/deb stable main From 752a76a06509b39b724e911da5cd7791438ea664 Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Sun, 15 Sep 2019 22:13:15 +0800 Subject: [PATCH 2/2] Modify the apt key URL. --- cookbooks/grafana/install.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cookbooks/grafana/install.rb b/cookbooks/grafana/install.rb index a7a4993..91eb4a9 100644 --- a/cookbooks/grafana/install.rb +++ b/cookbooks/grafana/install.rb @@ -6,8 +6,8 @@ remote_file '/etc/apt/sources.list.d/grafana.list' do end # Load APT key: -execute 'curl https://packagecloud.io/gpg.key | apt-key add -' do - not_if 'apt-key list | grep packagecloud' +execute 'curl https://packages.grafana.com/gpg.key | apt-key add -' do + not_if 'apt-key list | grep grafana' end execute 'apt update'