Sort options, update contributors.

This commit is contained in:
Kirill Klenov 2014-09-02 23:14:06 +01:00
parent c816661c18
commit 1ee211b3a0
6 changed files with 36 additions and 32 deletions

View File

@ -4,6 +4,7 @@ python: "2.7"
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq python-apt python-pycurl
- sudo apt-get remove --purge -y mongodb-*
install:
- pip install ansible>=1.6.0
script:

4
CONTRIBUTORS Normal file
View File

@ -0,0 +1,4 @@
Contributors:
* Kirill Klenov (http://klen.github.io/)
* Guillaume Dedrie (https://github.com/guillaumededrie)

View File

@ -11,36 +11,35 @@ Ansible role which manage [MongoDB](http://www.mongodb.org/)
#### Variables
```yaml
mongodb_enabled: yes
mongodb_packages:
- python-selinux
- python-pymongo
- mongodb-10gen
- mongodb-org
# 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"
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"
noprealloc: "false"
objcheck: "false"
port: 27017
quota: "false"
# replSet: "" # Set for enable replication
verbose: "true"
vvvv: "true"
# Log rotation
mongodb_logrotate: yes # Rotate mongodb logs.

View File

@ -7,27 +7,26 @@ mongodb_packages:
- mongodb-org
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"
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"
noprealloc: "false"
objcheck: "false"
port: 27017
quota: "false"
# replSet: "" # Set for enable replication
verbose: "true"
vvvv: "true"
# Log rotation

View File

@ -5,5 +5,6 @@
- name: Ensure mongodb is started
service: name=mongod state=started
changed_when: False
- include: configure.yml

View File

@ -1,5 +1,5 @@
# {{ ansible_managed }}
{% for k, v in mongodb_conf.iteritems() %}
{% for k, v in mongodb_conf.iteritems()|sort %}
{{ k }} = {{ v }}
{% endfor %}