|
| 1 | +--- |
| 2 | +- name: Deploy EDPM |
| 3 | + when: cifmw_architecture_scenario is not defined |
| 4 | + block: |
| 5 | + - name: Run pre_deploy hooks |
| 6 | + vars: |
| 7 | + step: pre_deploy |
| 8 | + ansible.builtin.import_role: |
| 9 | + name: run_hook |
| 10 | + |
| 11 | + - name: Load parameters files |
| 12 | + ansible.builtin.include_vars: |
| 13 | + dir: "{{ cifmw_basedir }}/artifacts/parameters" |
| 14 | + |
| 15 | + - name: Configure Storage Class |
| 16 | + ansible.builtin.include_role: |
| 17 | + name: ci_local_storage |
| 18 | + when: not cifmw_use_lvms | default(false) |
| 19 | + |
| 20 | + - name: Configure LVMS Storage Class |
| 21 | + ansible.builtin.include_role: |
| 22 | + name: ci_lvms_storage |
| 23 | + when: cifmw_use_lvms | default(false) |
| 24 | + |
| 25 | + - name: Run edpm_prepare |
| 26 | + ansible.builtin.include_role: |
| 27 | + name: edpm_prepare |
| 28 | + |
| 29 | + - name: Run post_ctlplane_deploy hooks |
| 30 | + when: |
| 31 | + - cifmw_architecture_scenario is undefined |
| 32 | + vars: |
| 33 | + step: post_ctlplane_deploy |
| 34 | + ansible.builtin.import_role: |
| 35 | + name: run_hook |
| 36 | + |
| 37 | + - name: Load parameters files |
| 38 | + ansible.builtin.include_vars: |
| 39 | + dir: "{{ cifmw_basedir }}/artifacts/parameters" |
| 40 | + |
| 41 | + - name: Create virtual baremetal and deploy EDPM |
| 42 | + when: |
| 43 | + - cifmw_edpm_deploy_baremetal | default('false') | bool |
| 44 | + - cifmw_deploy_edpm | default('false') | bool |
| 45 | + ansible.builtin.import_role: |
| 46 | + name: edpm_deploy_baremetal |
| 47 | + |
| 48 | + - name: Load parameters files |
| 49 | + ansible.builtin.include_vars: |
| 50 | + dir: "{{ cifmw_basedir }}/artifacts/parameters" |
| 51 | + |
| 52 | + - name: Create VMs and Deploy EDPM |
| 53 | + when: |
| 54 | + - not cifmw_edpm_deploy_baremetal | default('false') | bool |
| 55 | + - cifmw_deploy_edpm | default('false') | bool |
| 56 | + block: |
| 57 | + - name: Create and provision external computes |
| 58 | + when: |
| 59 | + - cifmw_use_libvirt is defined |
| 60 | + - cifmw_use_libvirt | bool |
| 61 | + ansible.builtin.import_role: |
| 62 | + name: libvirt_manager |
| 63 | + tasks_from: deploy_edpm_compute.yml |
| 64 | + |
| 65 | + - name: Prepare for HCI deploy phase 1 |
| 66 | + when: cifmw_edpm_deploy_hci | default('false') | bool |
| 67 | + ansible.builtin.include_role: |
| 68 | + name: hci_prepare |
| 69 | + tasks_from: phase1.yml |
| 70 | + |
| 71 | + - name: Deploy EDPM |
| 72 | + ansible.builtin.import_role: |
| 73 | + name: edpm_deploy |
0 commit comments