Update pulsar version in terraform file when setting project version
Master Issue:
*Motivation*
Update pulsar version in terraform file when updating project version.
@@ -30,6 +30,7 @@ NEW_VERSION=$1
# Go to top level project directory
SRC_DIR=$(dirname "$0")
ROOT_DIR=`cd ${SRC_DIR}/..; pwd`
+TERRAFORM_DIR=${ROOT_DIR}/deployment/terraform-ansible
pushd ${ROOT_DIR}
# Get the current version
@@ -38,5 +39,7 @@ OLD_VERSION=`python ${ROOT_DIR}/src/get-project-version.py`
mvn versions:set -DnewVersion=$NEW_VERSION
mvn versions:set -DnewVersion=$NEW_VERSION -pl buildtools
mvn versions:set -DnewVersion=$NEW_VERSION -pl pulsar-sql/presto-distribution
+# Set terraform ansible deployment pulsar version
+sed -i -e "s/${OLD_VERSION}/${NEW_VERSION}/g" ${TERRAFORM_DIR}/deploy-pulsar.yaml
popd
