Configuring ReplicaSet using Chef and mongo ruby gem

时间:2018-06-18 11:39:03

标签: ruby mongodb chef

I am trying to setup replicaset using Chef and Mongo Ruby gem. I have already got Chef cookbooks from supermarket but the problem is that they used old version of Mongo gem and its related objects.

I mean, Please help on how to use replicaset commands with examples available here.

Thanks in advance.

1 个答案:

答案 0 :(得分:0)

这由sc-mongodb食谱已经处理,请在文档中查看https://github.com/sous-chefs/mongodb#replicasets,但简短版本是使用sc-mongodb::replicaset食谱而不是::default