Ansible role to configure MongoDB
Go to file
Kirill Klenov 10a9586e11 Merge branch 'develop' 2014-10-31 18:41:15 +03:00
defaults Sort options, update contributors. 2014-09-02 23:14:06 +01: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 Merge branch 'debian-support' of https://github.com/guillaumededrie/Stouts.mongodb into guillaumededrie-debian-support 2014-09-02 23:15:52 +01:00
templates Sort options, update contributors. 2014-09-02 23:14:06 +01:00
.bumpversion.cfg Bump version: 1.3.1 → 1.3.2 2014-10-31 18:41:15 +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 Fix readme 2014-10-31 18:41:12 +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:
    port: 27400

License

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

Feedback, bug-reports, requests, ...

Are welcome!