Code Review
/
fuel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
06c6694
)
lib.sh: Limit envsubst to certain variables
23/41023/1
author
Alexandru Avadanii
<Alexandru.Avadanii@enea.com>
Mon, 4 Sep 2017 21:18:31 +0000
(23:18 +0200)
committer
Alexandru Avadanii
<Alexandru.Avadanii@enea.com>
Mon, 4 Sep 2017 21:18:31 +0000
(23:18 +0200)
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>
mcp/scripts/lib.sh
patch
|
blob
|
history
diff --git
a/mcp/scripts/lib.sh
b/mcp/scripts/lib.sh
index
3f74058
..
67c960a
100644
(file)
--- 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