From ff39013b2c357d4be9a0c0db0f8c1566e17e73e1 Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Sun, 2 May 2021 19:20:39 +0900 Subject: [PATCH] Install `alertmanager-webhook`. --- cookbooks/prometheus/alertmanager_webhook_install.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cookbooks/prometheus/alertmanager_webhook_install.rb b/cookbooks/prometheus/alertmanager_webhook_install.rb index 23f48bc..0420e26 100644 --- a/cookbooks/prometheus/alertmanager_webhook_install.rb +++ b/cookbooks/prometheus/alertmanager_webhook_install.rb @@ -35,7 +35,9 @@ directory node['alertmanager_webhook']['storage'] do mode '755' end -execute "tar zxf #{TMP} -C #{node['alertmanager_webhook']['storage']}" +execute "unzip #{TMP} -d #{node['alertmanager_webhook']['storage']}" do + not_if "test -e #{node['alertmanager_webhook']['storage']}alertmanager-webhook-logger" +end # Change Owner and Permissions: file "#{node['alertmanager_webhook']['storage']}alertmanager-webhook-logger" do