Merge pull request #145 from Madnessy/master

fix typo / fixed filetype extension / added wiredtiger cache setting
This commit is contained in:
Sergei Antipov 2019-04-22 11:18:08 -04:00 committed by GitHub
commit 1aa33529a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 2 deletions

View File

@ -80,6 +80,9 @@ mongodb_storage_smallfiles: false # Very useful for non-data node
mongodb_storage_journal_enabled: true # Enable journaling mongodb_storage_journal_enabled: true # Enable journaling
mongodb_storage_prealloc: true # Disable data file preallocation mongodb_storage_prealloc: true # Disable data file preallocation
# WiredTiger Options
mongodb_wiredtiger_cache_size: 1 # Cache size for wiredTiger in GB
## systemLog Options ## systemLog Options
## The destination to which MongoDB sends all log output. Specify either 'file' or 'syslog'. ## 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. ## If you specify 'file', you must also specify mongodb_systemlog_path.

View File

@ -28,7 +28,7 @@ mongodb_net_ipv6: false # Enable IPv6 support (disabled
mongodb_net_maxconns: 65536 # Max number of simultaneous connections mongodb_net_maxconns: 65536 # Max number of simultaneous connections
mongodb_net_port: 27017 # Specify port number mongodb_net_port: 27017 # Specify port number
mongodb_net_ssl: disabled # Enable or disable ssl connections 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 mongodb_net_ssl_pemfile: # Location of the pemfile to use for ssl
## processManagement Options ## processManagement Options

View File

@ -12,7 +12,7 @@ net:
{% if mongodb_net_ssl_pemfile is defined and mongodb_net_ssl_mode is defined and mongodb_net_ssl == 'enabled' -%} {% if mongodb_net_ssl_pemfile is defined and mongodb_net_ssl_mode is defined and mongodb_net_ssl == 'enabled' -%}
ssl: ssl:
mode: {{ mongodb_net_ssl_mode }} mode: {{ mongodb_net_ssl_mode }}
PEMKeyFile: {{ mongodb_net_ssl_pemfile }}.pem PEMKeyFile: {{ mongodb_net_ssl_pemfile }}
{% endif %} {% endif %}
processManagement: processManagement:
@ -52,6 +52,12 @@ storage:
smallFiles: {{ mongodb_storage_smallfiles | to_nice_json }} smallFiles: {{ mongodb_storage_smallfiles | to_nice_json }}
{% endif %} {% endif %}
{% if mongodb_wiredtiger_cache_size is defined %}
wiredTiger:
engineConfig:
cacheSizeGB: {{ mongodb_wiredtiger_cache_size }}
{% endif %}
systemLog: systemLog:
destination: {{ mongodb_systemlog_destination }} destination: {{ mongodb_systemlog_destination }}
{% if mongodb_systemlog_destination == 'file' -%} {% if mongodb_systemlog_destination == 'file' -%}