-
Notifications
You must be signed in to change notification settings - Fork 9
/
main.yml
105 lines (81 loc) · 3.68 KB
/
main.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
- name: Auto discover undercloud version
import_playbook: "{{ auto_discover_undercloud_version | default('version.yml') }}"
when: install.version is not defined
tags:
- always
- name: Fetch tempest deployer input file
import_playbook: post_tasks/tempest_deployer_input.yml
when: "'tempest_deployer_input' in install.tasks"
- name: Include task "External network creation"
import_playbook: post_tasks/create_external_network.yml
when: "'create_external_network' in install.tasks"
- name: Include task "Private network creation"
import_playbook: post_tasks/create_private_network.yml
when: "'create_private_network' in install.tasks"
- name: Forward Overcloud Dashboard from Hypervisor
import_playbook: post_tasks/forward_overcloud_dashboard.yml
when:
- '"forward_overcloud_dashboard" in install.tasks'
- '"hypervisor" in groups'
- name: Include task "LBaas v2"
import_playbook: post_tasks/lbaas_v2.yml
when: "'lbaas_v2' in install.tasks"
- name: Include task "Compute SSH"
import_playbook: post_tasks/compute_ssh.yml
when: '"compute_ssh" in install.tasks'
- name: Include task "Additional overcloud SSH keys"
import_playbook: post_tasks/add_extra_overcloud_ssh_keys.yml
vars:
tester_node: "{{ install.get('tester', {}).get('node', '') }}"
tester_username: "{{ install.get('tester', {}).get('username', '') }}"
when: '"add_extra_overcloud_ssh_keys" in install.tasks'
- name: Include task "Scale down"
import_playbook: post_tasks/scale_down.yml
when: '"scale_down" in install.tasks'
- name: Include task "Scale up"
import_playbook: post_tasks/scale_up.yml
when: '"scale_up" in install.tasks'
- name: Include task "Add overcloud hosts"
import_playbook: post_tasks/add_overcloud_hosts.yml
when: '"add_overcloud_hosts" in install.tasks'
- name: Configure fencing
import_playbook: post_tasks/fencing.yml
when: '"fencing" in install.tasks'
- name: Configure instance high-availability
import_playbook: post_tasks/instance_ha.yml
when: '"instance_ha" in install.tasks'
- name: Setup libvirt debug log filters
import_playbook: post_tasks/libvirt_log_filters.yml
when: '"libvirt_log_filters" in install.tasks'
- name: Launch overcloud workload
import_playbook: post_tasks/launch_workload.yml
when: '"launch_workload" in install.tasks'
- name: Edit /etc/manila/manila.conf
import_playbook: post_tasks/manila.yml
when: '"manila" in install.tasks'
- name: Check and correct time diff after deployment on controllers
import_playbook: post_tasks/network_time.yml
when: '"network_time" in install.tasks'
- name: Check and correct time diff after deployment on controllers
import_playbook: post_tasks/replace_controller.yml
when: '"replace_controller" in install.tasks'
- name: Create customized flavors and image
import_playbook: post_tasks/create_flavors_image.yml
when: '"create_flavors_image" in install.tasks'
- name: Create Manila storage network
import_playbook: post_tasks/create_manila_network.yml
when: '"create_manila_network" in install.tasks'
- name: Create Cinder volume types
import_playbook: post_tasks/cinder_config_vol_types.yml
when: '"cinder_config_vol_types" in install.tasks'
- name: Set Cinder multiattach volume type
import_playbook: post_tasks/cinder_multiattach_vol_type.yml
when: '"cinder_multiattach_vol_type" in install.tasks'
- name: Pre upgrade resource creation
import_playbook: post_tasks/pre_upgrade_resource_creation.yml
when: '"pre_upgrade_resource_creation" in install.tasks'
- name: Post upgrade resources validation
import_playbook: post_tasks/post_upgrade_resource_validation.yml
when: '"post_upgrade_resource_validation" in install.tasks'
- name: Run workarounds
import_playbook: workarounds.yml