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

41 lines
1.1 KiB
Plaintext
Raw Normal View History

2018-07-07 16:53:03 +00:00
## {{ ansible_managed }}
# mongod.conf
# for documentation of all options, see:
# http://docs.mongodb.org/manual/reference/configuration-options/
# where to write logging data.
systemLog:
2018-07-08 11:57:43 +00:00
destination: {{ mongodb_systemlog_destination }}
logAppend: {{ mongodb_systemlog_logappend | lower }}
2018-07-07 16:53:03 +00:00
path: /var/log/mongodb/mongod.log
# Where and how to store data.
storage:
2018-07-08 11:57:43 +00:00
dbPath: {{ mongodb_storage_dbpath }}
2018-07-07 16:53:03 +00:00
journal:
2018-07-08 11:57:43 +00:00
enabled: {{ mongodb_storage_journal_enabled | lower }}
2018-07-07 16:53:03 +00:00
# how the process runs
processManagement:
2018-07-08 11:57:43 +00:00
fork: {{ mongodb_processmanagement_fork_enabled | lower }}
pidFilePath: /var/run/mongodb/mongod.pid
2018-07-08 17:40:48 +00:00
{% if mongodb_version is version_compare("3.6", ">=") -%}
2018-07-07 16:53:03 +00:00
timeZoneInfo: /usr/share/zoneinfo
2018-07-08 17:40:48 +00:00
{% endif -%}
2018-07-07 16:53:03 +00:00
# network interfaces
net:
2018-07-08 11:57:43 +00: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