Added ssl config support in config template

This commit is contained in:
Mickael Berkhout 2018-08-23 20:55:22 +02:00
parent 03a37b628f
commit 7a64fd332a
2 changed files with 8 additions and 0 deletions

View File

@ -25,6 +25,9 @@ mongodb_net_http_enabled: false # Enable http interface
mongodb_net_ipv6: false # Enable IPv6 support (disabled by default)
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_pemfile: # Location of the pemfile to use for ssl
## processManagement Options
# Fork server process

View File

@ -9,6 +9,11 @@ net:
ipv6: {{ mongodb_net_ipv6 | to_nice_json }}
maxIncomingConnections: {{ mongodb_net_maxconns }}
port: {{ mongodb_net_port }}
{% 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
{% endif %}
processManagement:
fork: {{ mongodb_processmanagement_fork | to_nice_json}}