Skip to content

kgorman/ansible-roles_mongodb-install

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible-roles_mongodb_install

Installs MongoDB and starts up a nice base configuration including base security that should be pre-set for high performance.

Role Variables

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

Install

See here

Example Playbook

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

Testing and Requirements

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

License

BSD

Author Information

Twitter

Github

About

Ansible Galaxy Role for MongoDB installation and initial configuration.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages