From 3a76d07dbd409b781abdb8520f55a1b20edf07db Mon Sep 17 00:00:00 2001 From: Alexandru Avadanii Date: Mon, 4 Sep 2017 23:18:31 +0200 Subject: lib.sh: Limit envsubst to certain variables This will prevent envsubst from expanding the SALT_REPO local variable in user-data.template. Change-Id: Idcc3ea827293ac0d3b4059776f90bbbcf807daec Signed-off-by: Alexandru Avadanii --- mcp/scripts/lib.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mcp') diff --git a/mcp/scripts/lib.sh b/mcp/scripts/lib.sh index 3f740589d..67c960a6e 100644 --- a/mcp/scripts/lib.sh +++ b/mcp/scripts/lib.sh @@ -41,7 +41,8 @@ prepare_vms() { cleanup_vms get_base_image "${base_image}" - envsubst < user-data.template > user-data.sh + envsubst '${SALT_MASTER},${CLUSTER_DOMAIN}' < \ + user-data.template > user-data.sh for node in "${vnodes[@]}"; do # create/prepare images -- cgit 1.2.3-korg