Skip to content

Commit

Permalink
fix issue with new chef vesrsion in dpkg_package it s not reinstalled…
Browse files Browse the repository at this point in the history
… without a version
  • Loading branch information
jbdamiano committed Jul 13, 2017
1 parent 0bd2da7 commit 282395f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
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 "5.2.2"
version "5.2.3"

depends 'ark', '>= 0.2.4'

Expand Down
2 changes: 2 additions & 0 deletions recipes/deb.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# See <http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/_linux.html>

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']
Expand All @@ -10,6 +11,7 @@

dpkg_package "#{Chef::Config['file_cache_path']}/#{filename}" do
action :install
version version
options "--force-confdef"
end

Expand Down

0 comments on commit 282395f

Please sign in to comment.