diff --git a/metadata.rb b/metadata.rb index 17b585cdd..fc3c3c304 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 "5.2.2" +version "5.2.3" depends 'ark', '>= 0.2.4' diff --git a/recipes/deb.rb b/recipes/deb.rb index 27aa952e4..e151329d8 100644 --- a/recipes/deb.rb +++ b/recipes/deb.rb @@ -1,6 +1,7 @@ # See filename = node['elasticsearch']['deb_url'].split('/').last +version = File.basename(filename, File.extname(filename)).split('-').last remote_file "#{Chef::Config['file_cache_path']}/#{filename}" do source node['elasticsearch']['deb_url'] @@ -10,6 +11,7 @@ dpkg_package "#{Chef::Config['file_cache_path']}/#{filename}" do action :install + version version options "--force-confdef" end