Put private key using files

Change-Id: I8fab4e3bbd3c5c4243c122be09edb34bc7a67f7a
This commit is contained in:
Sergey Reshetnyak 2017-01-30 20:01:23 +03:00
parent 99e4bd5878
commit 97fe226bfe
3 changed files with 5 additions and 4 deletions

View File

@ -10,3 +10,6 @@ actions:
- path: /var/lib/rally/run-tempest.sh
content: run-tempest.sh.j2
perm: "0700"
- path: /var/lib/rally/static.pem
content: static.pem.j2
perm: "0600"

View File

@ -12,10 +12,7 @@ function publish_artifacts {
rally verify results --html --output-file "${path}/result.html"
# TODO: add junit report
local private_key_path="private.key"
printf "{{ rally.tempest.static.private_key }}" > "${private_key_path}"
chmod 600 "${private_key_path}"
scp -i "${private_key_path}" "${path}" {{ rally.tempest.static.username }}@{{ rally.tempest.static.host }}:{{ rally.tempest.static.port }}:
scp -i /var/lib/rally/static.pem "${path}" {{ rally.tempest.static.username }}@{{ rally.tempest.static.host }}:{{ rally.tempest.static.port }}:
echo "Artifacts are located to {{ rally.tempest.static.site }}/${path}"
}

View File

@ -0,0 +1 @@
{{ rally.tempest.static.private_key | replace("\\n", "\n") }}