2015-06-22 08:59:25 +00:00
|
|
|
# {{ ansible_managed }}
|
|
|
|
|
2016-04-17 13:43:00 +00:00
|
|
|
net:
|
|
|
|
bindIp: '127.0.0.1'
|
2018-02-16 16:09:00 +00:00
|
|
|
{% if mongodb_major_version | version_compare("3.6", "<") -%}
|
2016-04-17 13:43:00 +00:00
|
|
|
http:
|
|
|
|
enabled: {{ mongodb_net_http_enabled | to_nice_json }}
|
2018-02-16 16:09:00 +00:00
|
|
|
{% endif -%}
|
2016-04-17 13:43:00 +00:00
|
|
|
ipv6: {{ mongodb_net_ipv6 | to_nice_json }}
|
|
|
|
maxIncomingConnections: {{ mongodb_net_maxconns }}
|
|
|
|
port: {{ mongodb_net_port }}
|
|
|
|
|
|
|
|
processManagement:
|
|
|
|
fork: {{ mongodb_processmanagement_fork | to_nice_json }}
|
2016-04-27 06:28:47 +00:00
|
|
|
{% if mongodb_pidfile_path is defined and mongodb_pidfile_path != '' -%}
|
|
|
|
pidFilePath: {{ mongodb_pidfile_path }}
|
|
|
|
{% endif %}
|
2018-02-16 16:09:00 +00:00
|
|
|
|
2016-04-17 13:43:00 +00:00
|
|
|
security:
|
|
|
|
authorization: 'disabled'
|
|
|
|
|
|
|
|
storage:
|
|
|
|
dbPath: {{ mongodb_storage_dbpath }}
|
2018-02-16 16:09:00 +00:00
|
|
|
{% if mongodb_major_version | version_compare("3.0", ">=") -%}
|
2016-04-17 13:43:00 +00:00
|
|
|
engine: {{ mongodb_storage_engine }}
|
|
|
|
{% endif -%}
|
|
|
|
journal:
|
|
|
|
enabled: {{ mongodb_storage_journal_enabled | to_nice_json }}
|
|
|
|
{% if mongodb_storage_engine == 'mmapv1' -%}
|
|
|
|
mmapv1:
|
|
|
|
quota:
|
|
|
|
enforced: {{ mongodb_storage_quota_enforced | to_nice_json }}
|
|
|
|
maxFilesPerDB: {{ mongodb_storage_quota_maxfiles }}
|
|
|
|
smallFiles: {{ mongodb_storage_smallfiles | to_nice_json }}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
systemLog:
|
|
|
|
destination: {{ mongodb_systemlog_destination }}
|
2018-01-19 14:05:24 +00:00
|
|
|
{% if mongodb_systemlog_destination == 'file' -%}
|
2016-04-17 13:43:00 +00:00
|
|
|
logAppend: {{ mongodb_systemlog_logappend | to_nice_json }}
|
2018-03-08 13:38:26 +00:00
|
|
|
logRotate: {{ mongodb_systemlog_logrotate }}
|
2016-04-17 13:43:00 +00:00
|
|
|
path: {{ mongodb_systemlog_path }}
|
2018-01-19 14:05:24 +00:00
|
|
|
{% endif -%}
|