mirror of
https://github.com/status-im/ansible-role-mongodb.git
synced 2025-02-19 16:34:15 +00:00
Merge pull request #88 from neilime/patch-1
Supports setParameter configuration
This commit is contained in:
commit
293d820073
@ -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_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
|
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
|
# 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_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: ""
|
mongodb_mms_group_id: ""
|
||||||
|
@ -97,3 +97,6 @@ mongodb_root_admin_password: passw0rd
|
|||||||
|
|
||||||
mongodb_root_backup_name: "backupuser"
|
mongodb_root_backup_name: "backupuser"
|
||||||
mongodb_root_backup_password: "passw0rd"
|
mongodb_root_backup_password: "passw0rd"
|
||||||
|
|
||||||
|
# setParameter config
|
||||||
|
mongodb_set_parameters:
|
||||||
|
@ -55,3 +55,10 @@ systemLog:
|
|||||||
destination: {{ mongodb_systemlog_destination }}
|
destination: {{ mongodb_systemlog_destination }}
|
||||||
logAppend: {{ mongodb_systemlog_logappend | to_nice_json }}
|
logAppend: {{ mongodb_systemlog_logappend | to_nice_json }}
|
||||||
path: {{ mongodb_systemlog_path }}
|
path: {{ mongodb_systemlog_path }}
|
||||||
|
|
||||||
|
{% if mongodb_set_parameters -%}
|
||||||
|
setParameter:
|
||||||
|
{% for key, value in mongodb_set_parameters.items() -%}
|
||||||
|
{{ key }}: {{ value }}
|
||||||
|
{% endfor -%}
|
||||||
|
{% endif %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user