summaryrefslogtreecommitdiffstats
path: root/mcp/scripts
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-09-04 23:18:31 +0200
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-09-04 23:18:31 +0200
commit3a76d07dbd409b781abdb8520f55a1b20edf07db (patch)
treef67d598a28b66b749fc0446accb4f7aea452ca98 /mcp/scripts
parent06c66940cad08ae875bba5791822e8895468780b (diff)
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 <Alexandru.Avadanii@enea.com>
Diffstat (limited to 'mcp/scripts')
-rw-r--r--mcp/scripts/lib.sh3
1 files changed, 2 insertions, 1 deletions
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