Skip to content

Commit

Permalink
Fix test kitchen builds for CentOS 5.
Browse files Browse the repository at this point in the history
  • Loading branch information
John Bellone committed Feb 7, 2016
1 parent 529fc75 commit a55d65b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ for more advanced configuration.
Out of the box the following platforms are certified to work and are
tested using our [Test Kitchen][8] configuration. Additional platforms
_may_ work, but your mileage may vary.
- CentOS (RHEL) 6.6, 7.1

- CentOS (RHEL) 5.11, 6.7, 7.2
- Ubuntu 12.04, 14.04
- Windows
- Windows 2012

### Client
Out of the box the default recipe installs and configures the Consul
Expand Down
1 change: 1 addition & 0 deletions metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
depends 'libartifact', '~> 1.3'
depends 'poise', '~> 2.2'
depends 'poise-service', '~> 1.0'
depends 'yum-epel'

source_url 'https://github.com/johnbellone/consul-cookbook' if respond_to?(:source_url)
issues_url 'https://github.com/johnbellone/consul-cookbook/issues' if respond_to?(:issues_url)
3 changes: 3 additions & 0 deletions recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
#
# Copyright 2014-2016, Bloomberg Finance L.P.
#
if platform_family?('rhel')
include_recipe 'yum-epel::default' if node['platform_version'].to_i == 5
end

node.default['nssm']['install_location'] = '%WINDIR%'

Expand Down

0 comments on commit a55d65b

Please sign in to comment.