xoxys.mongodb/templates/etc/mongod_init.conf.j2
Robert Kaussow 229c686261
All checks were successful
continuous-integration/drone/push Build is passing
fix ansible_managed handling
2019-08-28 10:55:24 +02:00

39 lines
1.1 KiB
Django/Jinja

{{ ansible_managed | comment }}
# 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:
fork: {{ mongodb_processmanagement_fork_enabled | lower }}
pidFilePath: /var/run/mongodb/mongod.pid
{% if mongodb_version is version_compare("3.6", ">=") -%}
timeZoneInfo: /usr/share/zoneinfo
{% endif -%}
# network interfaces
net:
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