diff --git a/components/node/files/conf/sentinel.conf.tpl b/components/node/files/conf/sentinel.conf.tpl index 8555f38..113114e 100644 --- a/components/node/files/conf/sentinel.conf.tpl +++ b/components/node/files/conf/sentinel.conf.tpl @@ -38,12 +38,12 @@ sentinel leader-epoch {{ $master_name }} 0 sentinel current-epoch 0 {{- range $i, $e := until ( int $replicas ) }} - {{- $masterName := $master_name}} + {{- $masterName := printf "%s" $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 $masterName %s %s %s" $ndeFQDN $sentinel_port $nodeID }} -sentinel {{ printf "known-replica $masterName %s %s" $ndeFQDN $port }} +sentinel {{ printf "known-sentinel %s %s %s %s" $masterName $ndeFQDN $sentinel_port $nodeID }} +sentinel {{ printf "known-replica %s %s %s" $masterName $ndeFQDN $port }} {{- end}} {{- end}} \ No newline at end of file