2015-12-16 14:56:14 +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-24 19:34:19 +01:00
|
|
|
directoryPerDB: {{ mongodb_directoryperdb }}
|
|
|
|
engine: {{ mongodb_storage_engine }}
|
2015-12-16 14:56:14 +01:00
|
|
|
# mmapv1:
|
|
|
|
# wiredTiger:
|
|
|
|
|
|
|
|
# where to write logging data.
|
|
|
|
systemLog:
|
2016-03-24 19:34:19 +01:00
|
|
|
destination: {{ mongodb_systemlog_destination }}
|
|
|
|
logAppend: {{ mongodb_systemlog_logappend }}
|
2015-12-16 14:56:14 +01:00
|
|
|
path: {{ mongodb_logpath }}
|
2016-03-24 19:34:19 +01:00
|
|
|
logRotate: {{ mongodb_systemlog_logrotate }}
|
2015-12-16 14:56:14 +01:00
|
|
|
|
|
|
|
# network interfaces
|
|
|
|
net:
|
|
|
|
port: {{ mongodb_tcp_port }}
|
2016-03-24 19:34:19 +01:00
|
|
|
# bindIp: 127.0.0.1
|
|
|
|
http:
|
|
|
|
enabled: {{ mongodb_http_interface }}
|
|
|
|
JSONPEnabled: {{ mongodb_http_interface }}
|
|
|
|
RESTInterfaceEnabled: {{ mongodb_http_interface }}
|
|
|
|
|
2015-12-16 14:56:14 +01:00
|
|
|
#processManagement:
|
|
|
|
|
2016-03-24 19:34:19 +01:00
|
|
|
{%if mongodb_cluster_enabled %}
|
2015-12-16 14:56:14 +01:00
|
|
|
security:
|
|
|
|
keyFile: /data/mongo_home/dev-d4science-keyfile
|
|
|
|
|
|
|
|
replication:
|
|
|
|
oplogSizeMB: 2000
|
|
|
|
replSetName: {{ mongodb_replicaset }}
|
2016-03-24 19:34:19 +01:00
|
|
|
{% endif %}
|
2015-12-16 14:56:14 +01:00
|
|
|
|
|
|
|
#sharding:
|
|
|
|
|