add condition on security field of configuration file

This commit is contained in:
Roberto Cirillo 2018-09-25 11:46:33 +02:00
parent 4fd6347352
commit 6cfef59871
1 changed files with 4 additions and 3 deletions

View File

@ -42,15 +42,16 @@ net:
{% endif %}
#processManagement:
{% if mongodb_authorization_enabled or mongodb_cluster_enabled %}
security:
{% if mongodb_authentication_enabled %}
{% endif %}
{% if mongodb_authorization_enabled %}
authorization: enabled
{% endif %}
{%if mongodb_cluster_enabled %}
keyFile: {{ mongodb_replica_keyfile }}
replication:
oplogSizeMB: {{ mongodb_oplog_size }}
replSetName: {{ mongodb_replicaset }}