Merge "Remove copy_ssh_key task from validation workbook" into stable/train
This commit is contained in:
commit
0e247bc4a3
|
@ -264,43 +264,6 @@ workflows:
|
|||
node_admin_extra_ssh_keys: ""
|
||||
container: <% $.container %>
|
||||
|
||||
copy_ssh_key:
|
||||
input:
|
||||
# FIXME: we should stop using heat-admin as e.g. split-stack
|
||||
# environments (where Nova didn't create overcloud nodes) don't
|
||||
# have it present
|
||||
- overcloud_admin: heat-admin
|
||||
- queue_name: tripleo
|
||||
tags:
|
||||
- tripleo-common-managed
|
||||
tasks:
|
||||
get_servers:
|
||||
action: nova.servers_list
|
||||
on-success: get_pubkey
|
||||
publish:
|
||||
servers: <% task().result._info %>
|
||||
|
||||
get_pubkey:
|
||||
action: tripleo.validations.get_pubkey
|
||||
on-success: deploy_ssh_key
|
||||
publish:
|
||||
pubkey: <% task().result %>
|
||||
|
||||
deploy_ssh_key:
|
||||
workflow: tripleo.deployment.v1.deploy_on_server
|
||||
with-items: server in <% $.servers %>
|
||||
input:
|
||||
server_name: <% $.server.name %>
|
||||
server_uuid: <% $.server.id %>
|
||||
config: |
|
||||
#!/bin/bash
|
||||
if ! grep "<% $.pubkey %>" /home/<% $.overcloud_admin %>/.ssh/authorized_keys; then
|
||||
echo "<% $.pubkey %>" >> /home/<% $.overcloud_admin %>/.ssh/authorized_keys
|
||||
fi
|
||||
config_name: copy_ssh_key
|
||||
group: script
|
||||
queue_name: <% $.queue_name %>
|
||||
|
||||
upload_validations:
|
||||
tags:
|
||||
- tripleo-common-managed
|
||||
|
|
Loading…
Reference in New Issue