5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
18 - include: convert_qcow_raw.yml
21 - name: Create vbmc ports for virtual hosts
22 include_tasks: vbmc_port_setup.yml
30 - include_tasks: ironic_nodes_create.yml
32 - baremetal-ironic-nodes-create
34 - include_tasks: start_console_logging.yml
36 - baremetal-ironic-nodes-deploy
37 when: virtual_env == false
39 - include_tasks: ironic_nodes_deploy.yml
41 - baremetal-ironic-nodes-deploy
42 when: baremetal_ironic_node_id is defined
44 - name: Set Ironic node in maintenance.
47 endpoint_type: internal
49 uuid: "{{ironic_node_details.name}}"
53 - installation_phase != "provisioning-started"
55 - name: Set Ironic node in maintenance.
57 OS_AUTH_TOKEN: "fake-token"
58 IRONIC_URL: "{{ ironic_service_adminurl }}"
62 ironic_url: "{{ ironic_service_adminurl }}"
63 uuid: "{{ironic_node_details.name}}"
67 - installation_phase == "provisioning-started"
69 - include_tasks: stop_console_logging.yml
71 - baremetal-ironic-nodes-deploy
72 when: virtual_env == false