From 665e11638a7a1d1dd83cd8682f6fe871e0c6ce59 Mon Sep 17 00:00:00 2001 From: Jean-Bernard Damiano Date: Wed, 23 Mar 2016 11:25:38 +0100 Subject: [PATCH] fix plugin install issue --- libraries/install_plugin.rb | 4 ++-- metadata.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/install_plugin.rb b/libraries/install_plugin.rb index da66cb4e8..857cc68e1 100644 --- a/libraries/install_plugin.rb +++ b/libraries/install_plugin.rb @@ -32,7 +32,7 @@ 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) @@ -40,7 +40,7 @@ def install_plugin name, params={} 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 diff --git a/metadata.rb b/metadata.rb index aa1b834b3..49cbfc2a9 100644 --- a/metadata.rb +++ b/metadata.rb @@ -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'