This repository has been archived by the owner on Feb 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 43
/
partial_execution.yml
129 lines (98 loc) · 3.71 KB
/
partial_execution.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
---
- name: Force facts gathering
setup:
tags:
- initial_clean
- final_clean
- bootstrap_local_vm
- create_storage_domain
- create_target_vm
- iscsi_discover
- iscsi_getdevices
- fc_getdevices
- get_network_interfaces
- validate_hostnames
- never
- name: Initial validations and cleanups
block:
- name: Install required packages for oVirt Hosted Engine deployment
import_tasks: install_packages.yml
- name: System configuration validations
include_tasks: "{{ item }}"
with_fileglob: "pre_checks/*.yml"
- name: Clean environment before deployment
import_tasks: initial_clean.yml
tags: [initial_clean, bootstrap_local_vm, never]
- name: Bootstrap local engine VM
block:
- name: Bootstrap local engine VM
block:
- name: 01 Bootstrap local VM
import_tasks: bootstrap_local_vm/01_prepare_routing_rules.yml
- name: 02 Bootstrap local VM
import_tasks: bootstrap_local_vm/02_create_local_vm.yml
- name: Local engine VM installation - Pre tasks
block:
- name: 03 Bootstrap local VM
import_tasks: bootstrap_local_vm/03_engine_initial_tasks.yml
delegate_to: "{{ groups.engine[0] }}"
- name: Engine Setup on local VM
vars:
ovirt_engine_setup_hostname: "{{ he_fqdn.split('.')[0] }}"
ovirt_engine_setup_organization: "{{ he_cloud_init_domain_name }}"
ovirt_engine_setup_dwh_db_host: "{{ he_fqdn.split('.')[0] }}"
ovirt_engine_setup_firewall_manager: null
ovirt_engine_setup_answer_file_path: /root/ovirt-engine-answers
ovirt_engine_setup_use_remote_answer_file: true
ovirt_engine_setup_offline: "{{ he_offline_deployment }}"
ovirt_engine_setup_package_list: "{{ he_additional_package_list }}"
ovirt_engine_setup_admin_password: "{{ he_admin_password }}"
import_role:
name: ovirt.engine-setup
delegate_to: "{{ groups.engine[0] }}"
- name: Local engine VM installation - Post tasks
block:
- name: 04 Bootstrap local VM
import_tasks: bootstrap_local_vm/04_engine_final_tasks.yml
delegate_to: "{{ groups.engine[0] }}"
- name: Add first HE host
block:
- name: 05 Bootstrap local VM
import_tasks: bootstrap_local_vm/05_add_host.yml
tags: [bootstrap_local_vm, never]
- name: Create hosted-engine storage domain
block:
- name: Create Storage Domain
import_tasks: create_storage_domain.yml
tags: [create_storage_domain, never]
- name: Create and configure target VM
block:
- name: Fetch host IP address
import_tasks: fetch_host_ip.yml
- name: Create target hosted engine vm
import_tasks: create_target_vm/01_create_target_hosted_engine_vm.yml
- name: Configure database settings
import_tasks: create_target_vm/02_engine_vm_configuration.yml
delegate_to: "{{ groups.engine[0] }}"
tags: [create_target_vm, never]
- name: Hosted engine final tasks
import_tasks: create_target_vm/03_hosted_engine_final_tasks.yml
tags: [create_target_vm, never]
- name: Final clean
import_tasks: final_clean.yml
tags: [create_target_vm, final_clean, never]
- name: Validate network interface
import_tasks: "pre_checks/001_validate_network_interfaces.yml"
tags: [get_network_interfaces, never]
- name: Validate hostnames
import_tasks: "pre_checks/002_validate_hostname_tasks.yml"
tags: [validate_hostnames, never]
- name: Get FC devices
import_tasks: "fc_getdevices.yml"
tags: [fc_getdevices, never]
- name: iSCSI discover
import_tasks: "iscsi_discover.yml"
tags: [iscsi_discover, never]
- name: Get iSCSI devices
import_tasks: "iscsi_getdevices.yml"
tags: [iscsi_getdevices, never]