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:
parent
5e349fb889
commit
7d8c014cc5
|
@ -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"
|
||||
|
|
|
@ -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 -%}
|
||||
|
|
|
@ -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 -%}
|
||||
|
|
Loading…
Reference in New Issue