The site cookbook for mongodb has the following snippet of code in the readme
Actually, I added this into my recipe via the attributes file using a different
default[:mongodb][:sharded_collections][“test4.addressbook”] = "name"
default[:mongodb][:sharded_collections][“mydatabase.calendar”] = “date”
That methodology seemed to make more sense. To add this into the attributes
file in that format. They are attributes, after all.
My question to the mailing list, what would you consider the standard and
recommended way to apply these attributes? Would you use JSON or an ARRAY,
which file would you place them in, and how would you get them uploaded into
chef. Not what is “possible”, but rather “what is best practice”.