Skip to content

Commit 2c5a3ab

Browse files
authored
Merge pull request #167 from sportsru/fix_init_template
Fix init template
2 parents e5caa29 + ede0d25 commit 2c5a3ab

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

templates/mongod_init.conf.j2

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ storage:
3131
enforced: {{ mongodb_storage_quota_enforced | to_nice_json }}
3232
maxFilesPerDB: {{ mongodb_storage_quota_maxfiles }}
3333
smallFiles: {{ mongodb_storage_smallfiles | to_nice_json }}
34+
{% endif -%}
35+
{% if mongodb_storage_engine == 'wiredTiger' -%}
36+
wiredTiger:
37+
engineConfig:
38+
{% if mongodb_wiredtiger_cache_size is defined -%}
39+
cacheSizeGB: {{ mongodb_wiredtiger_cache_size }}
40+
{% endif -%}
41+
directoryForIndexes: {{ mongodb_wiredtiger_directory_for_indexes | to_nice_json }}
3442
{% endif %}
3543

3644
systemLog:

0 commit comments

Comments
 (0)