diff --git a/workbooks/baremetal.yaml b/workbooks/baremetal.yaml index f7c6ae284..e162dbedf 100644 --- a/workbooks/baremetal.yaml +++ b/workbooks/baremetal.yaml @@ -131,7 +131,12 @@ workflows: - send_message: <% $.initial_state != "available" %> on-error: set_status_failed_nodes_managed with-items: node in <% $.new_nodes %> - workflow: tripleo.baremetal.v1.set_node_state node_uuid=<% $.node.uuid %> state_action='manage' target_state='manageable' + workflow: tripleo.baremetal.v1.set_node_state + input: + node_uuid: <% $.node.uuid %> + queue_name: <% $.queue_name %> + state_action: 'manage' + target_state: 'manageable' publish: status: SUCCESS message: Nodes set to managed. @@ -183,7 +188,12 @@ workflows: on-success: try_power_off on-error: set_status_failed_nodes_available with-items: uuid in <% $.node_uuids %> - workflow: tripleo.baremetal.v1.set_node_state node_uuid=<% $.uuid %> state_action='provide' target_state='available' + workflow: tripleo.baremetal.v1.set_node_state + input: + node_uuid: <% $.uuid %> + queue_name: <% $.queue_name %> + state_action: 'provide' + target_state: 'available' set_status_failed_nodes_available: on-success: send_message @@ -195,7 +205,12 @@ workflows: on-success: send_message on-error: power_off_failed with-items: uuid in <% $.node_uuids %> - workflow: tripleo.baremetal.v1.set_power_state node_uuid=<% $.uuid %> state_action='off' target_state='power off' + workflow: tripleo.baremetal.v1.set_power_state + input: + node_uuid: <% $.uuid %> + queue_name: <% $.queue_name %> + state_action: 'off' + target_state: 'power off' publish: status: SUCCESS message: 'Successfully set nodes state to available.' @@ -530,13 +545,20 @@ workflows: tag_nodes: with-items: node_uuid in <% $.tag_node_uuids %> - workflow: tripleo.baremetal.v1.tag_node node_uuid=<% $.node_uuid %> role=<% $.role %> + workflow: tripleo.baremetal.v1.tag_node + input: + node_uuid: <% $.node_uuid %> + queue_name: <% $.queue_name %> + role: <% $.role %> concurrency: 1 on-success: untag_nodes untag_nodes: with-items: node_uuid in <% $.untag_node_uuids %> - workflow: tripleo.baremetal.v1.tag_node node_uuid=<% $.node_uuid %> + workflow: tripleo.baremetal.v1.tag_node + input: + node_uuid: <% $.node_uuid %> + queue_name: <% $.queue_name %> concurrency: 1 on-success: update_role_parameters diff --git a/workbooks/deployment.yaml b/workbooks/deployment.yaml index 24a6ada98..b09d80818 100644 --- a/workbooks/deployment.yaml +++ b/workbooks/deployment.yaml @@ -109,7 +109,10 @@ workflows: tasks: add_validation_ssh_key: - workflow: tripleo.validations.v1.add_validation_ssh_key_parameter container=<% $.container %> + workflow: tripleo.validations.v1.add_validation_ssh_key_parameter + input: + container: <% $.container %> + queue_name: <% $.queue_name %> on-complete: deploy deploy: