1 # SPDX-license-identifier: Apache-2.0
2 ##############################################################################
3 # Copyright (c) 2016 RedHat and others.
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
12 name: "Setting pre-test conditions"
16 - name: Remove pre-existing leases file
17 file: path=/var/lib/misc/dnsmasq.leases state=absent
20 name: "Executes install, enrollment, and testing in one playbook"
24 - name: "Override the ipv4_gateway setting"
26 ipv4_gateway: "192.168.122.1"
28 - { role: bifrost-prep-for-install, when: skip_install is not defined }
30 http_proxy: "{{ lookup('env','http_proxy') }}"
31 https_proxy: "{{ lookup('env','https_proxy') }}"
34 name: "Executes install, enrollment, and testing in one playbook"
38 - role: bifrost-ironic-install
41 # NOTE(TheJulia): While the next step creates a ramdisk, some elements
42 # do not support ramdisk-image-create as they invoke steps to cleanup
43 # the ramdisk which causes ramdisk-image-create to believe it failed.
44 - role: bifrost-create-dib-image
45 dib_imagename: "{{ http_boot_folder }}/ipa"
47 dib_os_element: "{{ ipa_dib_os_element|default('debian') }}"
48 dib_os_release: "jessie"
49 dib_elements: "ironic-agent {{ ipa_extra_dib_elements | default('') }}"
50 when: create_ipa_image | bool == true
51 - role: bifrost-create-dib-image
52 dib_imagetype: "qcow2"
53 dib_imagename: "{{deploy_image}}"
54 dib_os_element: "{{ lookup('env','DIB_OS_ELEMENT') }}"
55 dib_os_release: "{{ lookup('env', 'DIB_OS_RELEASE') }}"
56 extra_dib_elements: "{{ lookup('env', 'EXTRA_DIB_ELEMENTS') | default('') }}"
57 dib_elements: "vm enable-serial-console simple-init devuser growroot {{ extra_dib_elements }}"
58 dib_packages: "{{ lookup('env', 'DIB_OS_PACKAGES') }}"
59 when: create_image_via_dib | bool == true and transform_boot_image | bool == false
61 http_proxy: "{{ lookup('env','http_proxy') }}"
62 https_proxy: "{{ lookup('env','https_proxy') }}"
64 name: "Enroll node with Ironic"
68 - role: ironic-enroll-dynamic
69 - { role: ironic-inspect-node, when: inspect_nodes | default('false') | bool == true }
71 name: "Create configuration drive files and deploy machines"
73 multinode_testing: "{{ inventory_dhcp | bool == true }}"
77 - role: bifrost-configdrives-dynamic
78 - role: bifrost-deploy-nodes-dynamic
80 name: "Deploy machines."
85 - role: bifrost-prepare-for-test-dynamic