New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable automatic replica set and shard configuration #101

Merged
merged 1 commit into from Apr 19, 2013
Jump to file or symbol
Failed to load files and symbols.
+7 −4
Diff settings

Always

Just for now

View
@@ -28,6 +28,9 @@
default[:mongodb][:replicaset_name] = nil
default[:mongodb][:shard_name] = "default"
default[:mongodb][:auto_configure][:replicaset] = true
default[:mongodb][:auto_configure][:sharding] = true
default[:mongodb][:enable_rest] = false
default[:mongodb][:user] = "mongodb"
View
@@ -144,10 +144,10 @@
service_notifies.each do |service_notify|
notifies :run, service_notify
end
if !replicaset_name.nil?
if !replicaset_name.nil? && node['mongodb']['auto_configure']['replicaset']
notifies :create, "ruby_block[config_replicaset]"
end
if type == "mongos"
if type == "mongos" && node['mongodb']['auto_configure']['sharding']
notifies :create, "ruby_block[config_sharding]", :immediately
end
if name == "mongodb"
@@ -157,7 +157,7 @@
end
# replicaset
if !replicaset_name.nil?
if !replicaset_name.nil? && node['mongodb']['auto_configure']['replicaset']
rs_nodes = search(
:node,
"mongodb_cluster_name:#{replicaset['mongodb']['cluster_name']} AND \
@@ -177,7 +177,7 @@
end
# sharding
if type == "mongos"
if type == "mongos" && node['mongodb']['auto_configure']['sharding']
# add all shards
# configure the sharded collections
ProTip! Use n and p to navigate between commits in a pull request.