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