diff options
author | 2016-11-28 21:46:21 -0800 | |
---|---|---|
committer | 2016-11-28 21:48:08 -0800 | |
commit | b9a4fb80d10465e75880efb3160e80146c7d6f47 (patch) | |
tree | 51b78875b5ce7f5446285964c548841af7e84178 /tests/blueprints | |
parent | 3efc78bc4e35b6d5047f815b930afa1bca7b500a (diff) |
Add verification of config drive setup. Get key key from ~/vHello/pem.
JIRA: MODELS-23
Signed-off-by: Bryan Sullivan <bryan.sullivan@att.com>
The key is not saved in the repo due to security recommendations.
This is a kludge that will be removed for Newton (Tacker supports
key injection as of Newton).
Change-Id: I6a21b189fc7b2b5a960a7acdd4b640148797d738
Signed-off-by: Bryan Sullivan <bryan.sullivan@att.com>
Diffstat (limited to 'tests/blueprints')
-rwxr-xr-x | tests/blueprints/tosca-vnfd-hello-world-tacker/blueprint.yaml | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/blueprints/tosca-vnfd-hello-world-tacker/blueprint.yaml b/tests/blueprints/tosca-vnfd-hello-world-tacker/blueprint.yaml index c70fd25..99b8d9d 100755 --- a/tests/blueprints/tosca-vnfd-hello-world-tacker/blueprint.yaml +++ b/tests/blueprints/tosca-vnfd-hello-world-tacker/blueprint.yaml @@ -27,8 +27,11 @@ topology_template: config_drive: true user_data_format: RAW user_data: | - #!/bin/sh + #!/bin/bash + set -x + sudo mount /dev/sr0 /mnt/ cd /tmp + id=$(cut -d ',' -f 3 /mnt/openstack/latest/meta_data.json) cat << EOM | sudo tee index.html <!DOCTYPE html> <html> @@ -42,6 +45,12 @@ topology_template: <body> Hello World!<br> <a href="http://wiki.opnfv.org"><img src="https://www.opnfv.org/sites/all/themes/opnfv/logo.png"></a> + <div> + <p>Instance ID fom config drive file /mnt/openstack/latest/meta_data.json></p> + <pre> + $id + </pre> + </div> </body></html> EOM sudo python3 -m http.server 80 |