2016-01-27 16:21:18 +01:00
|
|
|
# mongod.conf
|
|
|
|
|
|
|
|
# for documentation of all options, see:
|
|
|
|
# http://docs.mongodb.org/manual/reference/configuration-options/
|
|
|
|
|
|
|
|
# Where and how to store data.
|
|
|
|
storage:
|
|
|
|
dbPath: {{ mongodb_dbpath }}
|
|
|
|
journal:
|
|
|
|
enabled: true
|
2016-03-25 18:04:45 +01:00
|
|
|
directoryPerDB: {{ mongodb_directoryperdb }}
|
|
|
|
engine: {{ mongodb_storage_engine }}
|
2016-01-27 16:21:18 +01:00
|
|
|
# mmapv1:
|
|
|
|
# wiredTiger:
|
|
|
|
|
|
|
|
# where to write logging data.
|
|
|
|
systemLog:
|
2016-03-25 18:04:45 +01:00
|
|
|
destination: {{ mongodb_systemlog_destination }}
|
2016-01-27 16:21:18 +01:00
|
|
|
path: {{ mongodb_logpath }}
|
2017-01-12 15:55:21 +01:00
|
|
|
{% if mongodb_systemlog_external_logrotate %}
|
|
|
|
logRotate: rename
|
|
|
|
logAppend: false
|
|
|
|
{% else %}
|
|
|
|
logRotate: reopen
|
|
|
|
logAppend: true
|
|
|
|
{% endif %}
|
2016-01-27 16:21:18 +01:00
|
|
|
# network interfaces
|
|
|
|
net:
|
|
|
|
port: {{ mongodb_tcp_port }}
|
2016-12-23 15:33:06 +01:00
|
|
|
bindIp: {{ mongo_bind_ip }}
|
2016-03-25 18:04:45 +01:00
|
|
|
http:
|
|
|
|
enabled: {{ mongodb_http_interface }}
|
|
|
|
JSONPEnabled: {{ mongodb_http_interface }}
|
|
|
|
RESTInterfaceEnabled: {{ mongodb_http_interface }}
|
|
|
|
|
2016-01-27 16:21:18 +01:00
|
|
|
#processManagement:
|
|
|
|
|
2016-03-25 18:04:45 +01:00
|
|
|
{%if mongodb_cluster_enabled %}
|
2016-01-27 16:21:18 +01:00
|
|
|
security:
|
|
|
|
keyFile: /data/mongo_home/dev-d4science-keyfile
|
|
|
|
|
|
|
|
replication:
|
|
|
|
oplogSizeMB: 2000
|
|
|
|
replSetName: {{ mongodb_replicaset }}
|
2016-03-25 18:04:45 +01:00
|
|
|
{% endif %}
|
2016-01-27 16:21:18 +01:00
|
|
|
|
|
|
|
#sharding:
|
|
|
|
|