Repository URL to install this package:
|
Version:
6.0.0 ▾
|
# mongod.conf
# for documentation of all options, see:
# http://docs.mongodb.org/manual/reference/configuration-options/
# where to write logging data.
systemLog:
destination: file
logAppend: true
path: /var/log/mongodb/mongod.log
# Where and how to store data.
storage:
dbPath: {{ db_path }}
journal:
enabled: true
engine: "wiredTiger"
# how the process runs
processManagement:
{% if ansible_facts.os_family == "RedHat" %} # Breaks Ubuntu / Debian
fork: true
pidFilePath: /var/run/mongodb/mongod.pid
{% endif %}
timeZoneInfo: /usr/share/zoneinfo
# network interfaces
net:
port: {{ config_port }}
{% if bind_ip_all %}
bindIpAll: true
{% else %}
bindIp: {{ bind_ip }}
{% endif %}
{% if net_compressors %}
compression:
compressors: {{ net_compressors }}
{% endif %}
{% if mongodb_use_tls %}
tls:
mode: requireTLS
certificateKeyFile: {{ mongodb_certificate_key_file }}
CAFile: {{ mongodb_certificate_ca_file }}
{% endif %}
{% if authorization == "enabled" %}
security:
authorization: {{ authorization }}
keyFile: {{ openssl_keyfile_path }}
{% endif %}
#operationProfiling:
{% if replicaset %}
replication:
replSetName: {{ config_repl_set_name }}
{% endif %}
sharding:
clusterRole: configsvr