aboutsummaryrefslogtreecommitdiffstats
path: root/test/ete
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2017-10-30 11:09:27 -0700
committerGary Wu <gary.i.wu@huawei.com>2017-10-30 11:09:27 -0700
commitb84428e1c7e0ae6bfffdb72bdf532280d09fdc90 (patch)
tree776b03df48bd4448a278c1986dfb1c6215d3d095 /test/ete
parentaf26d51227424e507b44ab002ee06bc9532525a0 (diff)
Set up password env substitution in deploy script
Change-Id: I65d83f4d0f8b4d205e8eda7a4c3188c14620aca5 Issue-ID: INT-278 Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
Diffstat (limited to 'test/ete')
-rw-r--r--test/ete/labs/windriver/onap-openstack-template.env (renamed from test/ete/labs/windriver/onap-openstack.env)4
-rwxr-xr-xtest/ete/scripts/deploy-onap.sh4
2 files changed, 6 insertions, 2 deletions
diff --git a/test/ete/labs/windriver/onap-openstack.env b/test/ete/labs/windriver/onap-openstack-template.env
index d7542c4e9..0604ac32d 100644
--- a/test/ete/labs/windriver/onap-openstack.env
+++ b/test/ete/labs/windriver/onap-openstack-template.env
@@ -44,7 +44,7 @@ parameters:
openstack_username: gary_wu
- openstack_api_key: SAMPLE
+ openstack_api_key: ${OS_PASSWORD}
openstack_auth_method: password
@@ -121,7 +121,7 @@ parameters:
dcaeos_openstack_region: RegionOne
dcaeos_openstack_tenant_id: 09d8566ea45e43aa974cf447ed591d77
dcaeos_openstack_username: gary_wu
- dcaeos_openstack_password: SAMPLE
+ dcaeos_openstack_password: ${OS_PASSWORD}
dcaeos_dcae_key_name: id_lji_onap
dcaeos_dcae_pub_key: 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDloKgBHx/yKRV77lr828rqa+zK+iTZpqmH3WSUU3vdNhSbEMNKkGVXR4+Gq1hNd8UNF+jMg87kOFSlQbE5jvsQMWuu1unxLKbH3AeXJd21gR1Gx4KXjkWsfl4URWMZ9WNvH0hMvqEV5SdFIDQmx07C/NOfy3R5N1pCgNsh9RT+EpDFh7jmimxrAqdxP0HnGFC2oM3rYMnzfh2/+Obkag6O3RZOkYx/WLQKbOKTi8K1C4UM5pwFzLT/vC+d9DF8pE7P9dlrbHTF9c3IGsP5oCa8CQ/WE4lVj/L9/iFNs0WsxdYaOnf11GJmPs663hltvWbQiqsFpdjX6tk/zMb3Xipz ubuntu@lusheng-sm-b781d54e-48ac-42fa-a780-3289b56e6598'
dcaeos_private_key: '
diff --git a/test/ete/scripts/deploy-onap.sh b/test/ete/scripts/deploy-onap.sh
index 02943935d..5d488c1ca 100755
--- a/test/ete/scripts/deploy-onap.sh
+++ b/test/ete/scripts/deploy-onap.sh
@@ -13,5 +13,9 @@ openstack stack delete -y $STACKS
STACK="ete-$(uuidgen | cut -c-8)"
echo "New Stack Name: ${STACK}"
+
+
+envsubst < ${WORKSPACE}/test/ete/labs/windriver/onap-openstack-template.env > ${WORKSPACE}/test/ete/labs/windriver/onap-openstack.env
+
openstack stack create -t ${ONAP_WORKDIR}/demo/heat/ONAP/onap_openstack.yaml -e ${WORKSPACE}/test/ete/labs/windriver/onap-openstack.env $STACK