@@ -34,7 +34,8 @@ security:
3434 authorization: {{ mongodb_security_authorization }}
3535 {% if mongodb_replication_replset and mongodb_security_authorization == 'enabled' -%}
3636 keyFile: {{ mongodb_security_keyfile }}
37- {% endif %}
37+ {% endif -%}
38+ javascriptEnabled: {{ mongodb_security_javascript_enabled | to_nice_json }}
3839
3940storage:
4041 dbPath: {{ mongodb_storage_dbpath }}
@@ -50,13 +51,15 @@ storage:
5051 enforced: {{ mongodb_storage_quota_enforced | to_nice_json }}
5152 maxFilesPerDB: {{ mongodb_storage_quota_maxfiles }}
5253 smallFiles: {{ mongodb_storage_smallfiles | to_nice_json }}
53- {% endif %}
54-
55- {% if mongodb_wiredtiger_cache_size is defined %}
54+ {% endif -%}
55+ {% if mongodb_storage_engine == 'wiredTiger' -%}
5656 wiredTiger:
5757 engineConfig:
58+ {% if mongodb_wiredtiger_cache_size is defined -%}
5859 cacheSizeGB: {{ mongodb_wiredtiger_cache_size }}
59- {% endif %}
60+ {% endif -%}
61+ directoryForIndexes: {{ mongodb_wiredtiger_directory_for_indexes | to_nice_json }}
62+ {% endif %}
6063
6164systemLog:
6265 destination: {{ mongodb_systemlog_destination }}
@@ -66,6 +69,10 @@ systemLog:
6669 path: {{ mongodb_systemlog_path }}
6770 {% endif %}
6871
72+ operationProfiling:
73+ slowOpThresholdMs: {{ mongodb_operation_profiling_slow_op_threshold_ms }}
74+ mode: {{ mongodb_operation_profiling_mode }}
75+
6976{% if mongodb_set_parameters -%}
7077setParameter:
7178 {% for key , value in mongodb_set_parameters .items () -%}
0 commit comments