diff --git a/attributes/default.rb b/attributes/default.rb index fdfc912..c3eaa89 100644 --- a/attributes/default.rb +++ b/attributes/default.rb @@ -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/' diff --git a/recipes/default.rb b/recipes/default.rb index 5e2147b..0431e0f 100644 --- a/recipes/default.rb +++ b/recipes/default.rb @@ -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) diff --git a/recipes/mongos.rb b/recipes/mongos.rb index 175595e..521418d 100644 --- a/recipes/mongos.rb +++ b/recipes/mongos.rb @@ -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)