ansible-examples icon indicating copy to clipboard operation
ansible-examples copied to clipboard

Replica Set without Sharding?

Open deanpeterson opened this issue 9 years ago • 5 comments

Can this playbook be used to create a Replica Set without Sharding?

deanpeterson avatar Oct 21 '15 16:10 deanpeterson

I've started this playbook for secure replicaset only: https://github.com/gridpocket/ansible-mongo-replica-set Maybe this could be include in the ansible examples ? Le 21 oct. 2015 6:21 PM, "deanpeterson" [email protected] a écrit :

Can this playbook be used to create a Replica Set without Sharding?

— Reply to this email directly or view it on GitHub https://github.com/ansible/ansible-examples/issues/132.

gridpocketuser avatar Oct 21 '15 16:10 gridpocketuser

@gridpocketuser It seems I need to have vagrant running? Doesn't that kind of defeat the purpose of trying to make a mongodb setup for production? I have multiple physical machines I want to deploy to. If all of the members of the replica set are running in virtual vagrant machines on a single device I do not get the benefit of the replica set.

deanpeterson avatar Oct 21 '15 16:10 deanpeterson

Hi, vagrant is not needed,would not be ready for production otherwise. Vagrant part in the readme is just there as an example to have it quickly running and tested. I've deployed it for production on several digitalocean droplets. Let me know if you have any questions. Le 21 oct. 2015 6:35 PM, "deanpeterson" [email protected] a écrit :

@gridpocketuser https://github.com/gridpocketuser It seems I need to have vagrant running? Doesn't that kind of defeat the purpose of trying to make a mongodb setup for production? I have multiple physical machines I want to deploy to. If all of the members of the replica set are running in virtual vagrant machines on a single device I do not get the benefit of the replica set.

— Reply to this email directly or view it on GitHub https://github.com/ansible/ansible-examples/issues/132#issuecomment-149954074 .

gridpocketuser avatar Oct 21 '15 17:10 gridpocketuser

Great, I am going to give it a try!

deanpeterson avatar Oct 21 '15 19:10 deanpeterson

This seems to do the trick: https://github.com/UnderGreen/ansible-role-mongodb

teraflik avatar Mar 27 '20 20:03 teraflik