# MongoDB Cookbooks

**URL:** <https://discourse.chef.io/t/mongodb-cookbooks/1995>\
**Category:** Chef Infra (archive)\
**Created:** [August 25, 2011, 9:57pm UTC](https://discourse.chef.io/t/mongodb-cookbooks/1995 "2011-08-25T21:57:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![James](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/james/32/232_2.png) [@James](https://discourse.chef.io/u/James)\
**Post date:** [August 25, 2011, 9:57pm UTC](https://discourse.chef.io/t/mongodb-cookbooks/1995/1 "2011-08-25T21:57:10Z")

</div>

What mongodb cookbooks do people use? Has anyone written an LWRP for  
updating configuration, for example adding shards?

Thanks,

James

---

<div class="post-metadata">

**Author:** ![Ryan\_C\_Creasey](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/ryan_c_creasey/32/797_2.png) [@Ryan\_C\_Creasey](https://discourse.chef.io/u/Ryan_C_Creasey)\
**Post date:** [August 25, 2011, 10:17pm UTC](https://discourse.chef.io/t/mongodb-cookbooks/1995/2 "2011-08-25T22:17:43Z")

</div>

I couldn't find any reliable cookbooks for Mongodb, so I ended up writing one and making an LWRP to manage instances and shards.

Give me a few and I'll publish ours (just don't laugh :p)

- Ryan

On Aug 25, 2011, at 2:57 PM, "James" [js@aegisco.com](mailto:js@aegisco.com) wrote:

> What mongodb cookbooks do people use? Has anyone written an LWRP for updating configuration, for example adding shards?
> 
> Thanks,
> 
> James

---

<div class="post-metadata">

**Author:** ![Nathen\_Harvey4](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/nathen_harvey4/32/681_2.png) [@Nathen\_Harvey4](https://discourse.chef.io/u/Nathen_Harvey4)\
**Post date:** [August 26, 2011, 12:47am UTC](https://discourse.chef.io/t/mongodb-cookbooks/1995/3 "2011-08-26T00:47:57Z")

</div>

We have one on Github that handles basic installation but could  
definitely use some expansion for setting up replica sets, managing  
configuration, etc. Needs a bit more work before publishing to the  
community site but you're welcome to have a look, fork it, etc.

[https://github.com/customink/customink-cookbooks](https://github.com/customink/customink-cookbooks)

-Nathen

On 8/25/11 5:57 PM, James wrote:

> What mongodb cookbooks do people use? Has anyone written an LWRP for  
> updating configuration, for example adding shards?
> 
> Thanks,
> 
> James

---

<div class="post-metadata">

**Author:** ![Miquel\_Torres](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/miquel_torres/32/768_2.png) [@Miquel\_Torres](https://discourse.chef.io/u/Miquel_Torres)\
**Post date:** [August 26, 2011, 10:42am UTC](https://discourse.chef.io/t/mongodb-cookbooks/1995/4 "2011-08-26T10:42:37Z")

</div>

It seems like there are not useful MongoDB cookbooks out in the wild,  
so we decided to wrote one ourselves.

We intend to publish it next week. It includes single instance,  
sharding and replication recipes.

@Ryan: we'll have a look at yours once it gets published

2011/8/26 Nathen Harvey [nharvey@customink.com](mailto:nharvey@customink.com):

> We have one on Github that handles basic installation but could definitely  
> use some expansion for setting up replica sets, managing configuration, etc.  
> Needs a bit more work before publishing to the community site but you're  
> welcome to have a look, fork it, etc.
> 
> [https://github.com/customink/customink-cookbooks](https://github.com/customink/customink-cookbooks)
> 
> -Nathen
> 
> On 8/25/11 5:57 PM, James wrote:
> 
> > What mongodb cookbooks do people use? Has anyone written an LWRP for  
> > updating configuration, for example adding shards?
> > 
> > Thanks,
> > 
> > James

---

<div class="post-metadata">

**Author:** ![Ryan\_C\_Creasey](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/ryan_c_creasey/32/797_2.png) [@Ryan\_C\_Creasey](https://discourse.chef.io/u/Ryan_C_Creasey)\
**Post date:** [August 26, 2011, 2:03pm UTC](https://discourse.chef.io/t/mongodb-cookbooks/1995/5 "2011-08-26T14:03:59Z")

</div>

Here's what we've got so far:

[https://github.com/gamespy-tech/cookbooks/tree/develop/mongodb](https://github.com/gamespy-tech/cookbooks/tree/develop/mongodb)

I did use the custom ink one to base off of, but made some other heavy tweaks.

Also, replica sets are still kind of iffy with it. But the LWRP will setup a mongod, shard server or config server if you ask it to.

This is still current for the recent sprints we're working on, so I'll make sure to keep this repo updated. Also, any feedback is appreciated!

- Ryan

On Aug 26, 2011, at 3:42 AM, Miquel Torres wrote:

> It seems like there are not useful MongoDB cookbooks out in the wild,  
> so we decided to wrote one ourselves.
> 
> We intend to publish it next week. It includes single instance,  
> sharding and replication recipes.
> 
> @Ryan: we'll have a look at yours once it gets published
> 
> 2011/8/26 Nathen Harvey [nharvey@customink.com](mailto:nharvey@customink.com):
> 
> > We have one on Github that handles basic installation but could definitely  
> > use some expansion for setting up replica sets, managing configuration, etc.  
> > Needs a bit more work before publishing to the community site but you're  
> > welcome to have a look, fork it, etc.
> > 
> > [https://github.com/customink/customink-cookbooks](https://github.com/customink/customink-cookbooks)
> > 
> > -Nathen
> > 
> > On 8/25/11 5:57 PM, James wrote:
> > 
> > > What mongodb cookbooks do people use? Has anyone written an LWRP for  
> > > updating configuration, for example adding shards?
> > > 
> > > Thanks,
> > > 
> > > James
