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 %} {% endif %}
#processManagement: #processManagement:
{% if mongodb_authorization_enabled or mongodb_cluster_enabled %}
security: security:
{% if mongodb_authentication_enabled %} {% endif %}
{% if mongodb_authorization_enabled %}
authorization: enabled authorization: enabled
{% endif %} {% endif %}
{%if mongodb_cluster_enabled %} {%if mongodb_cluster_enabled %}
keyFile: {{ mongodb_replica_keyfile }} keyFile: {{ mongodb_replica_keyfile }}
replication: replication:
oplogSizeMB: {{ mongodb_oplog_size }} oplogSizeMB: {{ mongodb_oplog_size }}
replSetName: {{ mongodb_replicaset }} replSetName: {{ mongodb_replicaset }}