Merge pull request 'vectorのダウンロードURL変更に伴う、手順の修正' (#68) from change-vector-installation-step into master

Reviewed-on: #68
This commit is contained in:
Kazuhiro MUSASHI 2020-12-06 12:07:08 +09:00
commit e352b2be11
2 changed files with 3 additions and 2 deletions

View File

@ -18,6 +18,7 @@ node.reverse_merge!({
'vector' => { 'vector' => {
'url' => 'https://github.com/timberio/vector/releases/download/', 'url' => 'https://github.com/timberio/vector/releases/download/',
'ipaddr' => ipaddr, 'ipaddr' => ipaddr,
'deb' => 'vector-amd64.deb' 'debPrefix' => 'vector-',
'debPostfix' => '-amd64.deb'
}, },
}) })

View File

@ -16,7 +16,7 @@ begin
vtag = $1 if response.body =~ %r{tag\/(v\d+\.\d+\.\d+)} vtag = $1 if response.body =~ %r{tag\/(v\d+\.\d+\.\d+)}
tag = vtag.sub(/^v/, '') tag = vtag.sub(/^v/, '')
vector_deb = "#{node['vector']['deb']}" vector_deb = "#{node['vector']['debPrefix']}#{tag}#{node['vector']['debPostfix']}"
vector_url = "#{node['vector']['url']}/#{vtag}/#{vector_deb}" vector_url = "#{node['vector']['url']}/#{vtag}/#{vector_deb}"
end end
rescue rescue