From 2bb74f404a7e569f392cd06e4a6be4c8c3a0d025 Mon Sep 17 00:00:00 2001 From: Tommaso Piccioli Date: Wed, 13 Oct 2021 15:51:26 +0200 Subject: [PATCH] Upload files to 'templates' --- templates/mongod-3.6.3.conf.j2 | 52 ++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 templates/mongod-3.6.3.conf.j2 diff --git a/templates/mongod-3.6.3.conf.j2 b/templates/mongod-3.6.3.conf.j2 new file mode 100644 index 0000000..40dd3fe --- /dev/null +++ b/templates/mongod-3.6.3.conf.j2 @@ -0,0 +1,52 @@ +# mongod.conf + +# for documentation of all options, see: +# http://docs.mongodb.org/manual/reference/configuration-options/ + +# Where and how to store data. +storage: + dbPath: {{ mongodb_dbpath }} + journal: + enabled: true + directoryPerDB: {{ mongodb_directoryperdb }} + engine: {{ mongodb_storage_engine }} +# mmapv1: +# wiredTiger: + +# where to write logging data. +systemLog: + destination: {{ mongodb_systemlog_destination }} + path: {{ mongodb_logpath }} +{% if not mongodb_systemlog_external_logrotate %} + logRotate: rename + logAppend: false +{% else %} + logRotate: reopen + logAppend: true +{% endif %} +# network interfaces +net: + port: {{ mongodb_tcp_port }} + bindIp: {{ mongo_bind_ip }} +{% if mongodb_ssl_enabled %} + ssl: + mode: {{ mongodb_ssl_mode }} + PEMKeyFile: '{{ mongodb_ssl_certkey_file }}' + CAFile: '{{ mongodb_ssl_CA_file }}' + disabledProtocols: {{ mongodb_ssl_disabled_protocols }} + allowConnectionsWithoutCertificates: {{ mongodb_ssl_allowConnectionsWithoutCertificates }} +{% endif %} + +#processManagement: + +{%if mongodb_cluster_enabled %} +security: + keyFile: /data/mongo_home/dev-d4science-keyfile + +replication: + oplogSizeMB: 2000 + replSetName: {{ mongodb_replicaset }} +{% endif %} + +#sharding: +