Merge pull request 'Embulkのダウンロード先URL変更など' (#80) from embulk-change into master
Reviewed-on: #80
This commit is contained in:
commit
c9b5850cbb
@ -6,7 +6,7 @@ ipaddr = run_command(cmd).stdout.chomp
|
|||||||
|
|
||||||
node.reverse_merge!({
|
node.reverse_merge!({
|
||||||
'embulk' => {
|
'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',
|
'version' => '0.9.23',
|
||||||
'extension' => '.jar',
|
'extension' => '.jar',
|
||||||
'install_path' => '/opt/embulk'
|
'install_path' => '/opt/embulk'
|
||||||
|
@ -5,13 +5,11 @@ directory node['embulk']['install_path'] do
|
|||||||
mode '755'
|
mode '755'
|
||||||
end
|
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"
|
TARGET = "#{node['embulk']['install_path']}/embulk"
|
||||||
|
|
||||||
# Download and install:
|
# Download and install:
|
||||||
execute "wget #{URL} -O #{TARGET}" do
|
execute "wget #{URL} -O #{TARGET}"
|
||||||
not_if "test -e #{TARGET}"
|
|
||||||
end
|
|
||||||
|
|
||||||
file TARGET do
|
file TARGET do
|
||||||
owner 'root'
|
owner 'root'
|
||||||
@ -23,6 +21,8 @@ end
|
|||||||
link '/usr/local/bin/embulk' do
|
link '/usr/local/bin/embulk' do
|
||||||
user 'root'
|
user 'root'
|
||||||
to TARGET
|
to TARGET
|
||||||
|
|
||||||
|
force true
|
||||||
end
|
end
|
||||||
|
|
||||||
package 'default-jre' do
|
package 'default-jre' do
|
||||||
|
@ -32,7 +32,7 @@ remote_file '/root/.ssh/config' do
|
|||||||
end
|
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
|
execute "embulk gem install embulk-#{p}" do
|
||||||
user 'root'
|
user 'root'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user