feat(tofu): adding information outputs

adding enable disable support for deployment
This commit is contained in:
2024-01-17 16:09:34 +01:00
committed by Laurent Gourvénec
parent 1e85cf81ea
commit 492dbfa3af
5 changed files with 117 additions and 4 deletions

View File

@ -64,6 +64,7 @@ else
if [ ! -f "${TOKENRC}" ]; then
echo "service_url=${service_url}" >> "${TOKENRC}"
echo "refresh_token=${refresh_token}" >> "${TOKENRC}"
echo "username=${username}" >> "${TOKENRC}"
chmod 600 ${TOKENRC}
fi
fi
@ -77,5 +78,6 @@ fi
ARG1=${@:$OPTIND:1}
export TF_VAR_vra_url="${service_url}"
export TF_VAR_vra_username="${username}"
export TF_VAR_vra_refresh_token="${refresh_token}"
tofu ${ARG1}
tofu ${ARG1} -no-color