From 6dd8dc7aae1666e98a0e98058f21656a036e66c0 Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Thu, 17 Jul 2025 14:48:36 +0200 Subject: [PATCH] fup --- components/node/files/conf/sentinel.conf.tpl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/node/files/conf/sentinel.conf.tpl b/components/node/files/conf/sentinel.conf.tpl index f493ac1..369cb64 100644 --- a/components/node/files/conf/sentinel.conf.tpl +++ b/components/node/files/conf/sentinel.conf.tpl @@ -38,11 +38,12 @@ sentinel leader-epoch {{ $master_name }} 0 sentinel current-epoch 0 {{- range $i, $e := until ( int $replicas ) }} + {{- $masterName := $master_name}} {{- $ndeHostname := printf "%s-%d" $name $i }} {{- $ndeFQDN := printf "%s.%s" $ndeHostname $domain }} {{- $nodeID := sha1sum $ndeHostname }} {{- if (ne $fqdn $ndeFQDN) }} -sentinel {{ printf "known-sentinel $master_name %s %s %s" $ndeFQDN $sentinel_port $nodeID }} -sentinel {{ printf "known-replica $master_name %s %s" $ndeFQDN $port }} +sentinel {{ printf "known-sentinel $masterNname %s %s %s" $ndeFQDN $sentinel_port $nodeID }} +sentinel {{ printf "known-replica $masterNname %s %s" $ndeFQDN $port }} {{- end}} {{- end}} \ No newline at end of file