Skip to content

Commit

Permalink
add support for 5.6.0 and 5.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
tmortensen committed Sep 12, 2017
1 parent fa6d10e commit e22578a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -147,7 +147,7 @@ elasticsearch_install 'elasticsearch'
```ruby
elasticsearch_install 'my_es_installation' do
type 'package' # type of install
version '5.5.2'
version '5.6.0'
action :install # could be :remove as well
end
```
Expand All @@ -168,7 +168,7 @@ end
```ruby
elasticsearch_install 'my_es_installation' do
type 'tarball' # type of install
version '5.5.2'
version '5.6.0'
action :install # could be :remove as well
end
```
Expand Down
8 changes: 8 additions & 0 deletions attributes/default.rb
Expand Up @@ -89,3 +89,11 @@
default['elasticsearch']['checksums']['5.5.2']['debian'] = 'a4cb0cf48094fc175e26d646951b44a3abd4ad1e3e1f9cec57936a33685c0e51'
default['elasticsearch']['checksums']['5.5.2']['rhel'] = 'c8bc670a4dac8b87661409db38023173b767d1e30f3914c5f350ccd274888245'
default['elasticsearch']['checksums']['5.5.2']['tarball'] = '0870e2c0c72e6eda976effa07aa1cdd06a9500302320b5c22ed292ce21665bf1'

default['elasticsearch']['checksums']['5.5.3']['debian'] = '87a006da44732539254c4652b965c651eb87a90d0d97c752d2e0c7303faded71'
default['elasticsearch']['checksums']['5.5.3']['rhel'] = '0d29839f7c2a77cdd7f5bbb53ac38a4cbaec44b881ab673f633227da07e0b7c4'
default['elasticsearch']['checksums']['5.5.3']['tarball'] = 'f6482a48ceed201e14257701c1fddd804053ea8165b9d2fa38bce149289c61ca'

default['elasticsearch']['checksums']['5.6.0']['debian'] = '371d7e3232cb1e744274ce062dccd72de95792e5eb66789312ef31b784a8af5c'
default['elasticsearch']['checksums']['5.6.0']['rhel'] = '43a3530a1c4c693b67cb2728a5fef3b7a38258f42153c2fc160a81f9377d2ec5'
default['elasticsearch']['checksums']['5.6.0']['tarball'] = 'a38f6e9b4282e1e39d2e7f237d3e0226b46001af38164ed40f764bb6768af057'
2 changes: 1 addition & 1 deletion libraries/resource_install.rb
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: '5.5.2')
attribute(:version, kind_of: String, default: '5.6.0')

# 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
Expand Up @@ -2,7 +2,7 @@

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

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

0 comments on commit e22578a

Please sign in to comment.