Installs MongoDB and starts up a nice base configuration including base security that should be pre-set for high performance.
You will want to hack on the variables in defaults/main.yml to fit your liking. Things you will most likely want to change are:
# The port for mongodb server
mongodb_port: 9005
# The directory prefix where the database files would be stored
mongodb_datadir_prefix: /data/mongodb/
# The password for admin user
mongodb_admin_pass: xxx
# The password for admin user
mongodb_admin_user: yyy
To use this simply setup a YAML file for running:
$>cat test.yml
---
- hosts: mongoservers
roles:
- { role: ansible-roles_mongodb-install }
$>cat hosts.txt
[mongoservers]
0.0.0.0
and execute like:
$>ansible-playbook -i hosts.txt test.yml
This role is tested on Rackspace onMetal High I/O servers with Centos 7.
uname -a | awk '{print $3}'
3.10.0-123.el7.x86_64
BSD