xoxys.mongodb/templates/etc/mongod_init.conf.j2

39 lines
1.1 KiB
Plaintext
Raw Normal View History

2019-08-28 10:55:24 +02:00
{{ ansible_managed | comment }}
2018-07-07 18:53:03 +02:00
# for documentation of all options, see:
# http://docs.mongodb.org/manual/reference/configuration-options/
# where to write logging data.
systemLog:
2018-07-08 13:57:43 +02:00
destination: {{ mongodb_systemlog_destination }}
logAppend: {{ mongodb_systemlog_logappend | lower }}
2018-07-07 18:53:03 +02:00
path: /var/log/mongodb/mongod.log
# Where and how to store data.
storage:
2018-07-08 13:57:43 +02:00
dbPath: {{ mongodb_storage_dbpath }}
2018-07-07 18:53:03 +02:00
journal:
2018-07-08 13:57:43 +02:00
enabled: {{ mongodb_storage_journal_enabled | lower }}
2018-07-07 18:53:03 +02:00
# how the process runs
processManagement:
2018-07-08 13:57:43 +02:00
fork: {{ mongodb_processmanagement_fork_enabled | lower }}
pidFilePath: /var/run/mongodb/mongod.pid
2018-07-08 19:40:48 +02:00
{% if mongodb_version is version_compare("3.6", ">=") -%}
2018-07-07 18:53:03 +02:00
timeZoneInfo: /usr/share/zoneinfo
2018-07-08 19:40:48 +02:00
{% endif -%}
2018-07-07 18:53:03 +02:00
# network interfaces
net:
2018-07-08 13:57:43 +02:00
bindIp: {{ mongodb_net_bindip | join(',') }}
{% if mongodb_version is version_compare("3.6", "<") -%}
http:
enabled: {{ mongodb_net_http_enabled | lower }}
{% endif -%}
ipv6: {{ mongodb_net_ipv6_enabled | lower }}
maxIncomingConnections: {{ mongodb_net_maxconns }}
port: {{ mongodb_net_port }}
security:
authorization: disabled