Skip to content

Commit

Permalink
replaces !node.recipe?("mongodb::shard") with !node.mongodb.is_shard
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalis authored and josephholsten committed Jan 7, 2014
1 parent d203c9f commit 3ef169c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions recipes/replicaset.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
include_recipe "mongodb::install"
include_recipe "mongodb::mongo_gem"

# if we are configuring a shard as a replicaset we do nothing in this recipe
if !node.recipe?("mongodb::shard")
unless node.mongodb.is_shard
mongodb_instance node['mongodb']['instance_name'] do
mongodb_type "mongod"
port node['mongodb']['port']
Expand Down

0 comments on commit 3ef169c

Please sign in to comment.