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

Commit 8647bfb

Browse files
committed
Fix centos and ami
1 parent 3211e72 commit 8647bfb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.kitchen.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ suites:
209209
- recipe[mongodb3::default]
210210
attributes:
211211
mongodb3:
212-
version: 3.0.7
212+
version: 3.2.0
213213
chef_client:
214214
config:
215215
force_logger: true

attributes/default.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@
3434
# Setup default package repo url attribute for each platform family or platform
3535
case node['platform']
3636
when 'redhat', 'oracle','centos', 'fedora'
37-
pkg_repo = "https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.0/#{node['kernel']['machine'] =~ /x86_64/ ? 'x86_64' : 'i686'}"
37+
pkg_repo = "https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/#{pkg_major_version}/#{node['kernel']['machine'] =~ /x86_64/ ? 'x86_64' : 'i686'}"
3838
when 'amazon'
39-
pkg_repo = 'https://repo.mongodb.org/yum/amazon/2013.03/mongodb-org/3.0/x86_64/'
39+
pkg_repo = "https://repo.mongodb.org/yum/amazon/2013.03/mongodb-org/#{pkg_major_version}/x86_64/"
4040
when 'ubuntu'
4141
pkg_repo = 'http://repo.mongodb.org/apt/ubuntu'
4242
when 'debian'

0 commit comments

Comments
 (0)