Skip to content
This repository has been archived by the owner on May 20, 2020. It is now read-only.

Commit

Permalink
Fix centos and ami
Browse files Browse the repository at this point in the history
  • Loading branch information
sunggun-yu committed Jan 13, 2016
1 parent 3211e72 commit 8647bfb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ suites:
- recipe[mongodb3::default]
attributes:
mongodb3:
version: 3.0.7
version: 3.2.0
chef_client:
config:
force_logger: true
Expand Down
4 changes: 2 additions & 2 deletions attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
# Setup default package repo url attribute for each platform family or platform
case node['platform']
when 'redhat', 'oracle','centos', 'fedora'
pkg_repo = "https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.0/#{node['kernel']['machine'] =~ /x86_64/ ? 'x86_64' : 'i686'}"
pkg_repo = "https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/#{pkg_major_version}/#{node['kernel']['machine'] =~ /x86_64/ ? 'x86_64' : 'i686'}"
when 'amazon'
pkg_repo = 'https://repo.mongodb.org/yum/amazon/2013.03/mongodb-org/3.0/x86_64/'
pkg_repo = "https://repo.mongodb.org/yum/amazon/2013.03/mongodb-org/#{pkg_major_version}/x86_64/"
when 'ubuntu'
pkg_repo = 'http://repo.mongodb.org/apt/ubuntu'
when 'debian'
Expand Down

0 comments on commit 8647bfb

Please sign in to comment.