Skip to content

Commit

Permalink
IP templating bug fix (#646)
Browse files Browse the repository at this point in the history
* fix templating issue
  • Loading branch information
dbw7 authored Jan 28, 2025
1 parent 41c6161 commit d95999c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/combustion/templates/k3s-multi-node-installer.sh.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,11 @@ echo "{{ .apiVIP6 }} {{ .apiHost }}" >> /etc/hosts
mkdir -p /etc/rancher/k3s/
cp $CONFIGFILE /etc/rancher/k3s/config.yaml

if [ "$NODETYPE" = "server" ]; then
{{- if .setNodeIPScript }}
if [ "$NODETYPE" = "server" ]; then
sh {{ .setNodeIPScript }}
{{- end }}
fi
{{- end }}

if [ -f {{ .registryMirrors }} ]; then
cp {{ .registryMirrors }} /etc/rancher/k3s/registries.yaml
Expand Down
4 changes: 2 additions & 2 deletions pkg/combustion/templates/rke2-multi-node-installer.sh.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,11 @@ echo "{{ .apiVIP6 }} {{ .apiHost }}" >> /etc/hosts
mkdir -p /etc/rancher/rke2/
cp $CONFIGFILE /etc/rancher/rke2/config.yaml

if [ "$NODETYPE" = "server" ]; then
{{- if .setNodeIPScript }}
if [ "$NODETYPE" = "server" ]; then
sh {{ .setNodeIPScript }}
{{- end }}
fi
{{- end }}

if [ -f {{ .registryMirrors }} ]; then
cp {{ .registryMirrors }} /etc/rancher/rke2/registries.yaml
Expand Down

0 comments on commit d95999c

Please sign in to comment.