Skip to content

Commit

Permalink
Add support for 6.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
tmortensen committed Oct 31, 2018
1 parent 5cd3a5b commit 812e202
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ elasticsearch_install 'elasticsearch'
```ruby
elasticsearch_install 'my_es_installation' do
type 'package' # type of install
version '6.4.1'
version '6.4.2'
action :install # could be :remove as well
end
```
Expand All @@ -172,7 +172,7 @@ end
```ruby
elasticsearch_install 'my_es_installation' do
type 'tarball' # type of install
version '6.4.1'
version '6.4.2'
action :install # could be :remove as well
end
```
Expand Down
4 changes: 4 additions & 0 deletions attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,7 @@
default['elasticsearch']['checksums']['6.4.1']['debian'] = 'ba71dbe16bfb6111dbe7d49ffd447ed1092a754636b30214067d31ff3059e100'
default['elasticsearch']['checksums']['6.4.1']['rhel'] = '2d63f9814ff67edc5c8a8e247ed359a8ef7e23cfbe3a438041a72b44b0be09b2'
default['elasticsearch']['checksums']['6.4.1']['tarball'] = '6fce529465975b2cd2f5aef09b459006636e4b903e623fd6361ae9feeebf1542'

default['elasticsearch']['checksums']['6.4.2']['debian'] = '4ca2cc982db8e46743a98e2c3d678e60c24331b28f79ea424bb8a323e611f678'
default['elasticsearch']['checksums']['6.4.2']['rhel'] = '8987285d92d0d94f0e842e51ba8ed04fb9ad5e078cc68f63ef2ff8ca1986ad08'
default['elasticsearch']['checksums']['6.4.2']['tarball'] = '32a9c0305faed1cbd4e22c85a8c333ca2b6704f1d0006e92709fada10cec3f45'
2 changes: 1 addition & 1 deletion libraries/resource_install.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class ElasticsearchCookbook::InstallResource < Chef::Resource::LWRPBase

# if this version parameter is not set by the caller, we look at
# `attributes/default.rb` for a default value to use, or we raise
attribute(:version, kind_of: String, default: '6.4.1')
attribute(:version, kind_of: String, default: '6.4.2')

# we allow a string or symbol for this value
attribute(:type, kind_of: String, equal_to: %w(package tarball repository), default: 'repository')
Expand Down
2 changes: 1 addition & 1 deletion test/integration/helpers/serverspec/install_examples.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

shared_examples_for 'elasticsearch install' do |args = {}|
dir = args[:dir] || '/usr/share'
version = args[:version] || '6.4.1'
version = args[:version] || '6.4.2'

expected_user = args[:user] || 'elasticsearch'
expected_group = args[:group] || expected_user || 'elasticsearch'
Expand Down

0 comments on commit 812e202

Please sign in to comment.