-
Notifications
You must be signed in to change notification settings - Fork 80
/
mongod.conf.j2
46 lines (37 loc) · 1.14 KB
/
mongod.conf.j2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# mongod.conf
# for documentation of all options, see:
# http://docs.mongodb.org/manual/reference/configuration-options/
{% if rocket_chat_mongodb_fork is defined %}
# whether to fork the process or not
fork = {{ rocket_chat_mongodb_fork }}
{% endif %}
{% if rocket_chat_mongodb_pidfile_path is defined %}
pidfilepath = {{ rocket_chat_mongodb_pidfile_path }}
{% endif %}
{% if rocket_chat_mongodb_logpath is defined %}
logpath = {{ rocket_chat_mongodb_logpath }}
{% endif %}
{% if rocket_chat_mongodb_unixsocketprefix is defined %}
unixSocketPrefix = {{ rocket_chat_mongodb_unixsocketprefix }}
{% endif %}
{% if rocket_chat_mongodb_dbpath is defined %}
dbpath = {{ rocket_chat_mongodb_dbpath }}
{% endif %}
{% if ansible_os_family == "Debian" %}
# where and how to store data.
storage:
dbPath: /var/lib/mongodb
journal:
enabled: true
# where to write logging data.
systemLog:
destination: file
logAppend: true
path: /var/log/mongodb/{{ rocket_chat_mongodb_service_name }}.log
# network interfaces
net:
port: {{ rocket_chat_mongodb_port }}
bindIp: {{ rocket_chat_mongodb_server }}
{% endif %}
# replication
{{ rocket_chat_mongodb_repl_lines }}