Put private key using files
Change-Id: I8fab4e3bbd3c5c4243c122be09edb34bc7a67f7a
This commit is contained in:
parent
99e4bd5878
commit
97fe226bfe
@ -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"
|
||||
|
@ -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}"
|
||||
}
|
||||
|
||||
|
1
service/files/static.pem.j2
Normal file
1
service/files/static.pem.j2
Normal file
@ -0,0 +1 @@
|
||||
{{ rally.tempest.static.private_key | replace("\\n", "\n") }}
|
Loading…
Reference in New Issue
Block a user