itamae/cookbooks/consul-template/attributes.rb

16 lines
595 B
Ruby
Raw Normal View History

2021-05-01 09:13:25 +00:00
# -------------------------------------------
# Specifying the default settings:
# -------------------------------------------
2021-05-01 09:13:25 +00:00
node.reverse_merge!({
'consulTemplate' => {
'baseUrl' => 'https://releases.hashicorp.com/consul-template/',
'version' => `curl -s https://releases.hashicorp.com/consul-template/ | htmlq -t 'a' | grep consul-template | head -n 1 | sed -e 's/^[^_]*_//g'`.chomp!,
2021-05-01 09:13:25 +00:00
'zipPrefix' => 'consul-template_',
'zipPostfix' => '_linux_amd64.zip',
'storage' => '/opt/consul-template/consul-template',
'location' => '/usr/local/bin/consul-template'
},
})