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

Added support for 3.4 version #59

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions recipes/mongos.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@
action :create
end

# Depricated variables
if node['mongodb3']['version'].to_f >= 3.4
node.rm('mongodb3','config','mongos','sharding','autoSplit')
node.rm('mongodb3','config','mongos','sharding','chunkSize')
end

# Create the Mongos config file
template node['mongodb3']['mongos']['config_file'] do
source 'mongodb.conf.erb'
Expand Down
4 changes: 3 additions & 1 deletion recipes/package_repo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@
end

if node['mongodb3']['package']['repo']['apt']['key'].nil?
if pkg_major_version >= 3.2
if pkg_major_version >= 3.4
node.set['mongodb3']['package']['repo']['apt']['key'] = '0C49F3730359A14518585931BC711F9BA15703C6'
elsif pkg_major_version >= 3.2
node.set['mongodb3']['package']['repo']['apt']['key'] = 'EA312927'
else
node.set['mongodb3']['package']['repo']['apt']['key'] = '7F0CEB10'
Expand Down