Only configure cloud options on MongoDB >= 4.0

This commit is contained in:
Nicolas Boutet 2019-06-01 11:25:46 +02:00
parent 28e947dc76
commit 872aaaa813
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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: