ansible-examples
ansible-examples copied to clipboard
Replica Set without Sharding?
Can this playbook be used to create a Replica Set without Sharding?
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 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.
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 .
Great, I am going to give it a try!
This seems to do the trick: https://github.com/UnderGreen/ansible-role-mongodb