From 302059eccbd19f8a025081c35d3eadb2b04f2f6d Mon Sep 17 00:00:00 2001 From: "Laurenza, Vito" Date: Tue, 20 Sep 2016 10:10:04 -0400 Subject: [PATCH 1/2] add a ['mongodb3']['package']['configure_repo'] attribute to allow control of whether or not to configure the package repo --- attributes/default.rb | 3 +++ metadata.rb | 2 +- recipes/default.rb | 2 +- recipes/mongos.rb | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) 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/metadata.rb b/metadata.rb index 88556e1..41982c5 100644 --- a/metadata.rb +++ b/metadata.rb @@ -4,7 +4,7 @@ license 'Apache 2.0' description 'Installs/Configures mongodb3' long_description 'Installs/Configures mongodb3' -version '5.3.0' +version '5.4.0' supports 'ubuntu', '>= 12.04' supports 'debian', '= 7.8' 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) From a4242d0dad058c9ad63f9437508b8e66cd2915c8 Mon Sep 17 00:00:00 2001 From: Vito Laurenza Date: Tue, 4 Oct 2016 10:18:35 -0400 Subject: [PATCH 2/2] Update metadata.rb --- metadata.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metadata.rb b/metadata.rb index 41982c5..88556e1 100644 --- a/metadata.rb +++ b/metadata.rb @@ -4,7 +4,7 @@ license 'Apache 2.0' description 'Installs/Configures mongodb3' long_description 'Installs/Configures mongodb3' -version '5.4.0' +version '5.3.0' supports 'ubuntu', '>= 12.04' supports 'debian', '= 7.8'