From 3470e08eb67d5d52242bd2577b3da9a6b232a181 Mon Sep 17 00:00:00 2001 From: Roberto Date: Thu, 20 Sep 2018 18:05:14 +0200 Subject: [PATCH] added new variable for authentication --- mongodb-org/templates/mongod-3.4.conf.j2 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mongodb-org/templates/mongod-3.4.conf.j2 b/mongodb-org/templates/mongod-3.4.conf.j2 index bb4ac93a..37ae08fa 100644 --- a/mongodb-org/templates/mongod-3.4.conf.j2 +++ b/mongodb-org/templates/mongod-3.4.conf.j2 @@ -44,9 +44,12 @@ net: #processManagement: security: +{% if mongodb_authorization_enabled %} + authorization: enabled +{% endif %} +{%if mongodb_cluster_enabled %} keyFile: {{ mongodb_replica_keyfile }} -{%if mongodb_cluster_enabled %} replication: oplogSizeMB: {{ mongodb_oplog_size }}