Skip to content

Commit

Permalink
updated chef.io and also added dependancies for metadata.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ Asghar committed Feb 4, 2015
1 parent 5484e98 commit fd6fafb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Berksfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
source 'https://supermarket.getchef.com'
source 'https://supermarket.chef.io'

metadata

Expand Down
3 changes: 3 additions & 0 deletions metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
recipe 'rabbitmq::plugin_management', 'Manage plugins with node attributes'
recipe 'rabbitmq::virtualhost_management', 'Manage virtualhost with node attributes'
recipe 'rabbitmq::user_management', 'Manage users with node attributes'

depends 'erlang', '>= 0.9'
depends 'yum-epel'
depends 'yum-erlang_solutions'

supports 'debian'
supports 'ubuntu'
Expand Down
2 changes: 1 addition & 1 deletion recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Chef::Resource # rubocop:disable all

case node['platform_family']
when 'rhel', 'fedora'
if node["platform_version"].to_f >= 7.0
if node['platform_version'].to_f >= 7.0
include_recipe 'yum-epel'
include_recipe 'yum-erlang_solutions'
end
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
}
CENTOS_OPTS = {
:platform => 'centos',
:version => '6.5',
:version => '7.0',
:log_level => LOG_LEVEL
}
FEDORA_OPTS = {
Expand Down

0 comments on commit fd6fafb

Please sign in to comment.