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

39 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:
destination: {{ mongodb_systemlog_destination }}
logAppend: {{ mongodb_systemlog_logappend | lower }}
path: /var/log/mongodb/mongod.log
# Where and how to store data.
storage:
dbPath: {{ mongodb_storage_dbpath }}
journal:
enabled: {{ mongodb_storage_journal_enabled | lower }}
# how the process runs
processManagement:
2018-07-07 21:20:00 +00:00
fork: {{ mongodb_processmanagement_fork_enabled | lower }}
pidFilePath: /var/run/mongodb/mongod.pid
2018-07-07 16:53:03 +00:00
timeZoneInfo: /usr/share/zoneinfo
# network interfaces
net:
2018-07-07 21:20:00 +00:00
bindIp: {{ mongodb_net_bindip | join(',') }}
{% if mongodb_version | 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 }}
2018-07-07 16:53:03 +00:00
security:
authorization: {{ 'enabled' if mongodb_rbac_enabled else 'disabled' }}