fix init config

This commit is contained in:
Robert Kaussow 2018-07-08 13:57:43 +02:00
parent 026492617f
commit 5960c38f7b

View File

@ -1,5 +1,4 @@
## {{ ansible_managed }}
# mongod.conf
# for documentation of all options, see:
@ -7,35 +6,33 @@
# where to write logging data.
systemLog:
destination: file
logAppend: true
destination: {{ mongodb_systemlog_destination }}
logAppend: {{ mongodb_systemlog_logappend | lower }}
path: /var/log/mongodb/mongod.log
# Where and how to store data.
storage:
dbPath: /var/lib/mongo
dbPath: {{ mongodb_storage_dbpath }}
journal:
enabled: true
# engine:
# mmapv1:
# wiredTiger:
enabled: {{ mongodb_storage_journal_enabled | lower }}
# how the process runs
processManagement:
fork: true # fork and run in background
pidFilePath: /var/run/mongodb/mongod.pid # location of pidfile
fork: {{ mongodb_processmanagement_fork_enabled | lower }}
pidFilePath: /var/run/mongodb/mongod.pid
timeZoneInfo: /usr/share/zoneinfo
# network interfaces
net:
port: 27017
bindIp: 127.0.0.1 # Listen to local interface only, comment to listen on all interfaces.
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:
#operationProfiling:
#replication:
#sharding:
security:
authorization: disabled