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

add a ['mongodb3']['package']['configure_repo'] attribute #50

Open
wants to merge 2 commits 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
3 changes: 3 additions & 0 deletions attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

# Should we configure the package repo for your distro's package manager?
default['mongodb3']['package']['configure_repo'] = true

# 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/'
Expand Down
2 changes: 1 addition & 1 deletion recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# limitations under the License.
#

include_recipe 'mongodb3::package_repo'
include_recipe 'mongodb3::package_repo' if node['mongodb3']['package']['configure_repo']

# Install MongoDB package
install_package = %w(mongodb-org-server mongodb-org-shell mongodb-org-tools)
Expand Down
2 changes: 1 addition & 1 deletion recipes/mongos.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# limitations under the License.
#

include_recipe 'mongodb3::package_repo'
include_recipe 'mongodb3::package_repo' if node['mongodb3']['package']['configure_repo']

# Install Mongos package
install_package = %w(mongodb-org-shell mongodb-org-mongos mongodb-org-tools)
Expand Down