Ansible role to configure MongoDB
Go to file
Guillaume Dedrie c816661c18 Update configuration management using Ansible templates to be more flexible 2014-08-25 16:24:58 +02:00
defaults Update configuration management using Ansible templates to be more flexible 2014-08-25 16:24:58 +02:00
handlers Migrate to the mongo-org package 2014-07-30 18:32:46 +01:00
meta Add meta. 2014-06-04 19:10:53 +04:00
tasks Migrate to the mongo-org package 2014-07-30 18:32:46 +01:00
templates Update configuration management using Ansible templates to be more flexible 2014-08-25 16:24:58 +02:00
.travis.yml Disable second test. 2014-07-30 18:45:02 +01:00
LICENSE Initial commit 2014-06-04 18:15:52 +04:00
Makefile Add simple Makefile 2014-07-28 19:18:52 +01:00
README.md Update configuration management using Ansible templates to be more flexible 2014-08-25 16:24:58 +02:00
test.yml Setup travis. 2014-06-04 19:09:28 +04:00

README.md

Stouts.mongo

Build Status

Ansible role which manage MongoDB

  • Install and configure;
  • Provide hanlers for restart and reload;

Variables

mongodb_enabled: yes
mongodb_packages:
  - python-selinux
  - python-pymongo
  - mongodb-10gen

# Configuration
# A list of hashes that are used to configure MongoDB. Any valid configuration parameters can be defined here.
mongodb_conf:
  dbpath: /var/lib/mongodb/
  logpath: /var/log/mongodb/mongod.log
  logappend: "true"
  port: 27017
  bind_ip: 127.0.0.1
  nojournal: "true"
  # auth: "true"
  noauth: "true"
  cpu: "true"
  verbose: "true"
  vvvv: "true"
  quota: "false"
  auth: "false"
  objcheck: "false"
  # diaglog: 0 # deprecated
  nohints: "false"
  nohttpinterface: "false"
  noscripting: "false"
  notablescan: "false"
  noprealloc: "false"
  # replSet: "" # Set for enable replication

# Log rotation
mongodb_logrotate: yes                             # Rotate mongodb logs.
mongodb_logrotate_options:
  - compress
  - copytruncate
  - daily
  - dateext
  - rotate 7
  - size 10M

Usage

Add Stouts.mongodb to your roles and set vars in your playbook file.

Example:


- hosts: all

  roles:
    - Stouts.mongodb

  vars:
    port: 27400

License

Licensed under the MIT License. See the LICENSE file for details.

Feedback, bug-reports, requests, ...

Are welcome!