File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 507
507
508
508
$bind_arr = [$bind ].flatten
509
509
510
+ $default_redis_version = ' 8.0.0'
511
+ $redis_version = $facts .get(' redis_server_version' , $instance::default_version_var )
512
+
510
513
$_template_params = {
511
514
daemonize => $daemonize ,
512
515
pid_file => $pid_file ,
612
615
rdb_save_incremental_fsync => $rdb_save_incremental_fsync ,
613
616
acls => $acls ,
614
617
custom_options => $custom_options ,
618
+ redis_version => $redis_version ,
615
619
}
616
620
617
621
# TODO: Rely on https://github.com/puppetlabs/puppetlabs-stdlib/pull/1425
Original file line number Diff line number Diff line change 103
103
Optional[Boolean] $rdb_save_incremental_fsync,
104
104
Array[String[1]] $acls,
105
105
Hash[String[1],Variant[String[1], Integer]] $custom_options,
106
+ String[1] $redis_version
106
107
| -%>
107
108
# Redis configuration file example
108
109
@@ -591,7 +592,7 @@ min-slaves-max-lag <%= $min_slaves_max_lag %>
591
592
#
592
593
# With slow disks and fast (large bandwidth) networks, diskless replication
593
594
# works better.
594
- <%- if versioncmp($facts['redis_server_version'] , '7.0.0') >= 0 { -%>
595
+ <%- if versioncmp($redis_version , '7.0.0') >= 0 { -%>
595
596
repl-diskless-sync <%= bool2str($repl_diskless_sync, 'yes', 'no') -%>
596
597
<%- } -%>
597
598
@@ -886,7 +887,7 @@ latency-monitor-threshold <%= $latency_monitor_threshold %>
886
887
#
887
888
# By default, the extended latency monitoring is enabled since the overhead
888
889
# of keeping track of the command latency is very small.
889
- <% if versioncmp($facts['redis_server_version'] , '7.0.0') >= 0 { %>
890
+ <% if versioncmp($redis_version , '7.0.0') >= 0 { %>
890
891
latency-tracking <%= bool2str($latency_tracking, 'yes', 'no') -%>
891
892
<% } %>
892
893
You can’t perform that action at this time.
0 commit comments