Skip to content

Commit

Permalink
fix plugin install issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jbdamiano committed Mar 23, 2016
1 parent 05f1381 commit 665e116
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions libraries/install_plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ module Extensions
#
def install_plugin name, params={}

ruby_block "Install plugin: #{name}" do
ruby_block "Install plugin: #{name} #{params}" do
block do
version = params['version'] ? "/#{params['version']}" : nil
if (node[:elasticsearch][:esmajor].to_i < 2)
url = params['url'] ? " -url #{params['url']}" : nil
command = "#{node.elasticsearch[:bindir]}/plugin -install #{name}#{version}#{url}"
else
url = params['url'] ? " #{params['url']}" : nil
command = "#{node.elasticsearch[:bindir]}/plugin install #{url}"
command = "#{node.elasticsearch[:bindir]}/plugin install --batch #{url}"
end
Chef::Log.debug command

Expand Down
2 changes: 1 addition & 1 deletion metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
license "Apache"
description "Installs and configures elasticsearch"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.markdown'))
version "1.0.0"
version "1.1.0"

depends 'ark', '>= 0.2.4'

Expand Down

0 comments on commit 665e116

Please sign in to comment.