Merge pull request 'Embulkのダウンロード先URL変更など' (#80) from embulk-change into master

Reviewed-on: #80
This commit is contained in:
Kazuhiro MUSASHI 2021-06-19 20:19:42 +09:00
commit c9b5850cbb
3 changed files with 6 additions and 6 deletions

View File

@ -6,7 +6,7 @@ ipaddr = run_command(cmd).stdout.chomp
node.reverse_merge!({
'embulk' => {
'base_binary_url' => 'https://dl.bintray.com/embulk/maven/embulk-',
'base_binary_url' => 'https://github.com/embulk/embulk/releases/download/v',
'version' => '0.9.23',
'extension' => '.jar',
'install_path' => '/opt/embulk'

View File

@ -5,13 +5,11 @@ directory node['embulk']['install_path'] do
mode '755'
end
URL = "#{node['embulk']['base_binary_url']}#{node['embulk']['version']}#{node['embulk']['extension']}"
URL = "#{node['embulk']['base_binary_url']}#{node['embulk']['version']}/embulk-#{node['embulk']['version']}#{node['embulk']['extension']}"
TARGET = "#{node['embulk']['install_path']}/embulk"
# Download and install:
execute "wget #{URL} -O #{TARGET}" do
not_if "test -e #{TARGET}"
end
execute "wget #{URL} -O #{TARGET}"
file TARGET do
owner 'root'
@ -23,6 +21,8 @@ end
link '/usr/local/bin/embulk' do
user 'root'
to TARGET
force true
end
package 'default-jre' do

View File

@ -32,7 +32,7 @@ remote_file '/root/.ssh/config' do
end
%w(filter-column output-mysql).each do |p|
%w(filter-column filter-row output-mysql).each do |p|
execute "embulk gem install embulk-#{p}" do
user 'root'