mirror of
https://github.com/status-im/ansible-role-mongodb.git
synced 2025-02-17 15:36:23 +00:00
Only configure cloud options on MongoDB >= 4.0
This commit is contained in:
parent
28e947dc76
commit
872aaaa813
@ -71,7 +71,7 @@ mongodb_systemlog_path: /var/log/mongodb/{{ mongodb_daemon_name }}.log # Log f
|
||||
mongodb_operation_profiling_slow_op_threshold_ms: 100
|
||||
mongodb_operation_profiling_mode: "off"
|
||||
|
||||
## cloud options
|
||||
## cloud options (MongoDB >= 4.0)
|
||||
mongodb_cloud_monitoring_free_state: "runtime"
|
||||
|
||||
## replication Options
|
||||
|
@ -71,10 +71,12 @@ operationProfiling:
|
||||
slowOpThresholdMs: {{ mongodb_operation_profiling_slow_op_threshold_ms }}
|
||||
mode: {{ mongodb_operation_profiling_mode }}
|
||||
|
||||
{% if mongodb_major_version is version("4.0", ">=") -%}
|
||||
cloud:
|
||||
monitoring:
|
||||
free:
|
||||
state: {{ mongodb_cloud_monitoring_free_state }}
|
||||
{% endif -%}
|
||||
|
||||
{% if mongodb_set_parameters -%}
|
||||
setParameter:
|
||||
|
Loading…
x
Reference in New Issue
Block a user