Ansible role to configure MongoDB
Go to file
Kirill Klenov e854d94231 Bump version: 1.3.3 → 1.3.4 2014-12-11 22:09:46 +03:00
defaults Update the role 2014-12-11 22:09:31 +03:00
handlers Migrate to the mongo-org package 2014-07-30 18:32:46 +01:00
meta Support Debian machine using MongoDB official repository for Debian 2014-08-25 16:14:41 +02:00
tasks Update the role 2014-12-11 22:09:31 +03:00
templates Update the role 2014-12-11 22:09:31 +03:00
.bumpversion.cfg Bump version: 1.3.3 → 1.3.4 2014-12-11 22:09:46 +03:00
.travis.yml Try to pass Travis test 2014-09-02 23:19:40 +01:00
CONTRIBUTORS Sort options, update contributors. 2014-09-02 23:14:06 +01:00
LICENSE Initial commit 2014-06-04 18:15:52 +04:00
Makefile update badges 2014-10-23 00:59:31 +04:00
README.md Update the role 2014-12-11 22:09:31 +03:00
test.yml Setup travis. 2014-06-04 19:09:28 +04:00

README.md

Stouts.mongo

Build Status Galaxy

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-org

mongodb_conf:
  auth: "false"
  bind_ip: 127.0.0.1
  cpu: "true"
  dbpath: /var/lib/mongodb/
  # diaglog: 0 # deprecated
  logappend: "true"
  logpath: /var/log/mongodb/mongod.log
  noauth: "true"
  nohints: "false"
  nohttpinterface: "false"
  nojournal: "true"
  noprealloc: "false"
  noscripting: "false"
  notablescan: "false"
  objcheck: "false"
  port: 27017
  quota: "false"
  # replSet: "" # Set for enable replication
  verbose: "true"
  vvvv: "true"


# 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:
    mongodb_conf_port: 27400

License

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

Feedback, bug-reports, requests, ...

Are welcome!