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_slow_op_threshold_ms: 100
|
||||||
mongodb_operation_profiling_mode: "off"
|
mongodb_operation_profiling_mode: "off"
|
||||||
|
|
||||||
## cloud options
|
## cloud options (MongoDB >= 4.0)
|
||||||
mongodb_cloud_monitoring_free_state: "runtime"
|
mongodb_cloud_monitoring_free_state: "runtime"
|
||||||
|
|
||||||
## replication Options
|
## replication Options
|
||||||
|
|
|
@ -71,10 +71,12 @@ operationProfiling:
|
||||||
slowOpThresholdMs: {{ mongodb_operation_profiling_slow_op_threshold_ms }}
|
slowOpThresholdMs: {{ mongodb_operation_profiling_slow_op_threshold_ms }}
|
||||||
mode: {{ mongodb_operation_profiling_mode }}
|
mode: {{ mongodb_operation_profiling_mode }}
|
||||||
|
|
||||||
|
{% if mongodb_major_version is version("4.0", ">=") -%}
|
||||||
cloud:
|
cloud:
|
||||||
monitoring:
|
monitoring:
|
||||||
free:
|
free:
|
||||||
state: {{ mongodb_cloud_monitoring_free_state }}
|
state: {{ mongodb_cloud_monitoring_free_state }}
|
||||||
|
{% endif -%}
|
||||||
|
|
||||||
{% if mongodb_set_parameters -%}
|
{% if mongodb_set_parameters -%}
|
||||||
setParameter:
|
setParameter:
|
||||||
|
|
Loading…
Reference in New Issue