ansible / ansible-examples

A few starter examples of ansible playbooks, to show features and how they work together. See http://galaxy.ansible.com for example roles from the Ansible community for deploying many popular applications.
11.65k stars 7.69k forks source link

Replica Set without Sharding? #132

Open deanpeterson opened 9 years ago

deanpeterson commented 9 years ago

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

gridpocketuser commented 9 years ago

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" notifications@github.com 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.

deanpeterson commented 9 years ago

@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.

gridpocketuser commented 9 years ago

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" notifications@github.com 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 .

deanpeterson commented 9 years ago

Great, I am going to give it a try!

teraflik commented 4 years ago

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