diff --git a/README.md b/README.md index a3ef510..a3a4f26 100644 --- a/README.md +++ b/README.md @@ -80,6 +80,9 @@ mongodb_storage_smallfiles: false # Very useful for non-data node mongodb_storage_journal_enabled: true # Enable journaling mongodb_storage_prealloc: true # Disable data file preallocation +# WiredTiger Options +mongodb_wiredtiger_cache_size: 1 # Cache size for wiredTiger in GB + ## systemLog Options ## The destination to which MongoDB sends all log output. Specify either 'file' or 'syslog'. ## If you specify 'file', you must also specify mongodb_systemlog_path. diff --git a/defaults/main.yml b/defaults/main.yml index e474a1f..1cd5b90 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -28,7 +28,7 @@ mongodb_net_ipv6: false # Enable IPv6 support (disabled mongodb_net_maxconns: 65536 # Max number of simultaneous connections mongodb_net_port: 27017 # Specify port number mongodb_net_ssl: disabled # Enable or disable ssl connections -mongodb_net_ssl_mode: # Set the ssl mode (RequireSSL / PreferSSL / AllowSSL / disabled) +mongodb_net_ssl_mode: # Set the ssl mode (RequireSSL / preferSSL / AllowSSL / disabled) mongodb_net_ssl_pemfile: # Location of the pemfile to use for ssl ## processManagement Options diff --git a/templates/mongod.conf.j2 b/templates/mongod.conf.j2 index 9b8b3e8..720bc5d 100644 --- a/templates/mongod.conf.j2 +++ b/templates/mongod.conf.j2 @@ -12,7 +12,7 @@ net: {% if mongodb_net_ssl_pemfile is defined and mongodb_net_ssl_mode is defined and mongodb_net_ssl == 'enabled' -%} ssl: mode: {{ mongodb_net_ssl_mode }} - PEMKeyFile: {{ mongodb_net_ssl_pemfile }}.pem + PEMKeyFile: {{ mongodb_net_ssl_pemfile }} {% endif %} processManagement: @@ -52,6 +52,12 @@ storage: smallFiles: {{ mongodb_storage_smallfiles | to_nice_json }} {% endif %} +{% if mongodb_wiredtiger_cache_size is defined %} + wiredTiger: + engineConfig: + cacheSizeGB: {{ mongodb_wiredtiger_cache_size }} +{% endif %} + systemLog: destination: {{ mongodb_systemlog_destination }} {% if mongodb_systemlog_destination == 'file' -%}