We've forked edelight's mongodb cookbook a year or two ago and it worked
great at that time for auto-configuring replicasets. Sometimes it would
break in rare corner cases, but 95% of the time it would work. One thing
that didn't work so well was removing and re-adding a replicaset member.
We've recently moved to Chef 11, and had to update to latest version of the
cookbook. It's a lot better at configuring replicasets, IMO - even changes
to replicasets are handled smoothly. We haven't tried sharding in
production yet, only in development, but I've not heard any complaints from
devs about the cookbook, which must mean that it works.
I would suggest creating a helper cookbook for any custom behavior rather
than changing the community cookbook.. You don't want to come back a year
later and realize that your version is hopelessly out of date.
On Wed, May 14, 2014 at 7:10 AM, Brad Knowles email@example.com:
On May 13, 2014, at 9:10 AM, Stewart, Curtis firstname.lastname@example.org
Has anyone had any luck setting up a MongoDB replicaset with the mongodb
cookbook (GitHub - edelight/chef-mongodb: MongoDB Chef cookbook)?
At a previous employer of mine, we took this cookbook and massaged it to
the point where it could auto-create replicasets with sharding and the
whole shebang. Our code definitely isn't the greatest, and I wasn't the
one responsible for writing the hard bits, but we felt it was an
improvement. Before I left, I was able to convince them to let me upload a
copy of our work to my repo at https://github.com/bknowles/mongodb.
Looks like a good quality cookbook, but I was hoping for some feedback
before jumping into it.
Dunno what has happened to the edelight cookbook since I last saw it, but
my understanding is that not much has been done. My previous employer and
I contributed our changes back to them, but last I heard those changes were
never accepted -- that's why we chose to post our own version.
It would be great if someone could take the latest from the edelight
cookbook, the work done at my previous employer, and help combine those
with whatever else is out there. Thanks for volunteering!
Brad Knowles email@example.com
LinkedIn Profile: http://tinyurl.com/y8kpxu
Best regards, Dmitriy V.