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

Allow overriding the mongodb packages to install #46

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
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
3 changes: 3 additions & 0 deletions attributes/default.rb
Original file line number Diff line number Diff line change
@@ -26,6 +26,9 @@
# MongoDB package version to install : eg. 3.0.8, 3.2.1, 3.2.1-1.el6 or 3.2.1-1.amzn1
default['mongodb3']['package']['version'] = nil

# MongoDB package names to install
default['mongodb3']['package']['packages'] = %w(mongodb-org-server mongodb-org-shell mongodb-org-tools)

# MongoDB package repo url
# eg. ubuntu : 'http://repo.mongodb.org/apt/ubuntu'
# eg. centos : 'https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.2/x86_64/'
4 changes: 1 addition & 3 deletions recipes/default.rb
Original file line number Diff line number Diff line change
@@ -20,9 +20,7 @@
include_recipe 'mongodb3::package_repo'

# Install MongoDB package
install_package = %w(mongodb-org-server mongodb-org-shell mongodb-org-tools)

install_package.each do |pkg|
node['mongodb3']['package']['packages'].each do |pkg|
package pkg do
version node['mongodb3']['package']['version']
case node['platform_family']