ansible-roles/mongodb-org-3/templates/mongod-3.0.conf.j2

49 lines
1.0 KiB
Plaintext
Raw Normal View History

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
directoryPerDB: {{ mongodb_directoryperdb }}
engine: {{ mongodb_storage_engine }}
2015-12-16 14:56:14 +01:00
# mmapv1:
# wiredTiger:
# where to write logging data.
systemLog:
destination: {{ mongodb_systemlog_destination }}
2015-12-16 14:56:14 +01:00
path: {{ mongodb_logpath }}
{% if not mongodb_systemlog_external_logrotate %}
logRotate: rename
logAppend: false
{% else %}
logRotate: reopen
logAppend: true
{% endif %}
2015-12-16 14:56:14 +01:00
# network interfaces
net:
port: {{ mongodb_tcp_port }}
# 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:
{%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 }}
{% endif %}
2015-12-16 14:56:14 +01:00
#sharding: