Merge pull request #88 from neilime/patch-1

Supports setParameter configuration
This commit is contained in:
Sergei Antipov 2018-01-09 19:22:57 +07:00 committed by GitHub
commit 293d820073
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 0 deletions

View File

@ -87,6 +87,11 @@ mongodb_replication_replset: # Enable replication <setname>
mongodb_replication_replindexprefetch: "all" # specify index prefetching behavior (if secondary) [none|_id_only|all]
mongodb_replication_oplogsize: 1024 # specifies a maximum size in megabytes for the replication operation log
## setParameter options
# Configure setParameter option.
# Example :
mongodb_set_parameters: { "enableLocalhostAuthBypass": "true", "authenticationMechanisms": "SCRAM-SHA-1,MONGODB-CR" }
# MMS Agent
mongodb_mms_agent_pkg: https://mms.mongodb.com/download/agent/automation/mongodb-mms-automation-agent-manager_1.4.2.783-1_amd64.deb
mongodb_mms_group_id: ""

View File

@ -97,3 +97,6 @@ mongodb_root_admin_password: passw0rd
mongodb_root_backup_name: "backupuser"
mongodb_root_backup_password: "passw0rd"
# setParameter config
mongodb_set_parameters:

View File

@ -55,3 +55,10 @@ systemLog:
destination: {{ mongodb_systemlog_destination }}
logAppend: {{ mongodb_systemlog_logappend | to_nice_json }}
path: {{ mongodb_systemlog_path }}
{% if mongodb_set_parameters -%}
setParameter:
{% for key, value in mongodb_set_parameters.items() -%}
{{ key }}: {{ value }}
{% endfor -%}
{% endif %}