From ee975266e0a2af76cd1c33e5254ab02a5e37ce7c Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Tue, 1 Sep 2020 01:32:27 +0900 Subject: [PATCH] Specify the cookbook-specific attiributes. --- cookbooks/promtail/attributes.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 cookbooks/promtail/attributes.rb diff --git a/cookbooks/promtail/attributes.rb b/cookbooks/promtail/attributes.rb new file mode 100644 index 0000000..473421a --- /dev/null +++ b/cookbooks/promtail/attributes.rb @@ -0,0 +1,14 @@ +# ------------------------------------------- +# Specifying the default settings: +# ------------------------------------------- +node.reverse_merge!({ + 'promtail' => { + 'url' => 'https://github.com/grafana/loki/releases/download/', + 'bin' => 'promtail-linux-amd64.zip', + 'storage' => '/opt/promtail/bin/', + 'location' => '/usr/local/bin/', + 'data' => '/var/opt/promtail/', + 'lokiendpoint' => '192.168.10.118:3100' + }, +}) +