Skip to content

Commit

Permalink
Merge pull request #955 from openshift-cherrypick-robot/cherry-pick-9…
Browse files Browse the repository at this point in the history
…52-to-v1.3.x

[v1.3.x] Fix override of rendered files via tarball
  • Loading branch information
openshift-merge-bot[bot] authored Nov 28, 2023
2 parents 8f27ab9 + 030ef2b commit 570854c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/openstackconfiggenerator/bin/create-playbooks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ cp -a /usr/share/openstack-tripleo-heat-templates/* $TEMPLATES_DIR
rm -Rf $HOME/config-tmp
mkdir -p $HOME/config-tmp
pushd $HOME/config-tmp
cp $HOME/config/* $HOME/config-tmp
cp $HOME/config-custom/* $HOME/config-tmp
# extract any tar files into $HOME/config-tmp
{{- if .TripleoTarballFiles }}
{{- range $key, $value := .TripleoTarballFiles }}
tar -xvf $HOME/tht-tars/{{ $key }}
{{- end }}
{{- end }}
cp $HOME/config/* $HOME/config-tmp
cp $HOME/config-custom/* $HOME/config-tmp
# remove all references to the default tht dir
sed -e "s|/usr/share/openstack\-tripleo\-heat\-templates|\.|" -i $HOME/config-tmp/*.yaml
# copy to our temp t-h-t dir
Expand Down

0 comments on commit 570854c

Please sign in to comment.