Today: February 14, 2025 10:11 pm
A collection of Software and Cloud patterns with a focus on the Enterprise

Deploy MongoDB using Ansible

I’ve recently had some people ask how I deploy MongoDB. For a while I used their excellent online tool to deploy and monitor my clusters. Unfortunately they changed direction and I couldn’t afford their new tools, so I turned to Ansible.

In order more easily share the process, I posted a simple example that you can run locally using Vagrant to deploy MongoDB using Ansible.

https://github.com/dwatrous/ansible-mongodb

As soon as you finish running the Ansible script, you can immediately connect to MongoDB and start working with Data.

ansible-mongodb

If you’re looking to learn more about MongoDB, checkout the videos I published with PackT Publishing on end to end MongoDB.

Comments

  1. Daniel, great post. I just published something very similar – but without Vagrant and also takes a different approach. I talk about depoying MongoDB to servers via YUM through ansible. Thought your readers might appreciate a different slant. Here’s the link: http://www.mlynn.org/2017/09/deploying-mongodb-enterprise-with-ansible/ Cheers!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.