Add mongodb_storage_dirperdb variable

Add the mongodb_storage_dirperdb variable to the defaults (set to false)
Add the variable unconditionally into the mongod_init.conf.j2 and
mongod.conf.j2 templates.
This commit is contained in:
Patrick Dreker 2018-09-11 10:01:53 +02:00
parent 5e349fb889
commit 7d8c014cc5
3 changed files with 4 additions and 0 deletions

View File

@ -41,6 +41,8 @@ mongodb_security_keyfile: /etc/mongodb-keyfile # Specify path to keyfile with
## storage Options
mongodb_storage_dbpath: /data/db # Directory for datafiles
mongodb_storage_dirperdb: false # Use one directory per DB
# The storage engine for the mongod database. Available values:
# 'mmapv1', 'wiredTiger'
mongodb_storage_engine: "wiredTiger"

View File

@ -38,6 +38,7 @@ security:
storage:
dbPath: {{ mongodb_storage_dbpath }}
directoryPerDB: {{ mongodb_storage_dirperdb }}
{% if mongodb_major_version | version_compare("3.0", ">=") -%}
engine: {{ mongodb_storage_engine }}
{% endif -%}

View File

@ -21,6 +21,7 @@ security:
storage:
dbPath: {{ mongodb_storage_dbpath }}
directoryPerDB: {{ mongodb_storage_dirperdb }}
{% if mongodb_major_version | version_compare("3.0", ">=") -%}
engine: {{ mongodb_storage_engine }}
{% endif -%}