Sort options, update contributors.
This commit is contained in:
parent
c816661c18
commit
1ee211b3a0
|
@ -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:
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
Contributors:
|
||||
|
||||
* Kirill Klenov (http://klen.github.io/)
|
||||
* Guillaume Dedrie (https://github.com/guillaumededrie)
|
33
README.md
33
README.md
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -5,5 +5,6 @@
|
|||
|
||||
- name: Ensure mongodb is started
|
||||
service: name=mongod state=started
|
||||
changed_when: False
|
||||
|
||||
- include: configure.yml
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# {{ ansible_managed }}
|
||||
|
||||
{% for k, v in mongodb_conf.iteritems() %}
|
||||
{% for k, v in mongodb_conf.iteritems()|sort %}
|
||||
{{ k }} = {{ v }}
|
||||
{% endfor %}
|
||||
|
|
Loading…
Reference in New Issue