-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmongod-init.conf.j2
52 lines (38 loc) · 943 Bytes
/
mongod-init.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
47
48
49
50
51
52
# {{ ansible_managed }}
systemLog:
destination: file
logAppend: true
path: {{ mongodb_conf_log_dir }}/mongod.log
storage:
dbPath: {{ mongodb_conf_db_dir }}
journal:
enabled: {{ mongodb_conf_journal|to_nice_json|bool|lower }}
engine: {{ mongodb_conf_dbEngine }}
wiredTiger:
engineConfig:
cacheSizeGB: 1
processManagement:
fork: true
{% if ansible_os_family == "RedHat" %}
pidFilePath: /var/run/mongodb/mongod.pid
{% endif %}
{% if ansible_os_family == "Debian" %}
pidFilePath: /run/mongodb/mongod.pid
{% endif %}
timeZoneInfo: /usr/share/zoneinfo
net:
port: {{ mongodb_conf_port|int }}
bindIp: {{ mongodb_conf_bindIp }}
maxIncomingConnections: {{ mongodb_conf_maxConns|int }}
security:
authorization: disabled
#operationProfiling:
#replication:
#sharding:
cloud:
monitoring:
free:
state: {{ mongodb_conf_cloudmonitoring }}
## Enterprise-Only Options
#auditLog:
#snmp: