-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.yml
118 lines (106 loc) · 3.78 KB
/
install.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
- name: Delete existing Overcloud
import_playbook: "{{ delete_overcloud | default('delete.yml') }}"
when: install.delete|default('')
tags:
- delete
- name: Perform pre install tasks
import_playbook: "{{ overcloud_pre | default('pre.yml') }}"
when: install.pre|default('')
tags:
- pre
- import_playbook: fetchfiles.yml
when: install.get('fetchfiles', {}).get('undercloud', {}) != {} or install.get('fetchfiles', {}).get('overcloud', {}) != {}
tags:
- fetchfiles_undercloud
- fetchfiles_overcloud
- name: Provision loadbalancer node
import_playbook: loadbalancer.yml
tags:
- loadbalancer
- loadbalancer_setup
when:
- "'loadbalancer' in groups"
- install.deploy|default('')
- name: Introspect our machines
import_playbook: "{{ overcloud_introspect | default('introspect.yml') }}"
when: install.introspect|default('')
tags:
- introspect
- name: Check hypervisor state
hosts: hypervisor
tags: deploy
any_errors_fatal: true
tasks:
- name: include role vbmc check
include_role:
name: vbmc
vars:
action: "check"
when:
- "'hypervisor' in groups"
- install.deploy|default('')
- not install.introspect
- vbmc_host is defined
- vbmc_host != 'undercloud'
- name: Tag our machines with proper flavors
import_playbook: "{{ overcloud_flavors | default('tag.yml') }}"
when: install.tagging|default('')
tags:
- tag
- name: Deploy the Overcloud
vars:
templates:
generate_host_name_template: yes
storage_add_scale: yes
import_playbook: "{{ overcloud_deploy | default('deploy.yml') }}"
when:
- install.deploy|default('')
- not install.role|default('') or (install.role is defined and install.role.files == 'default')
- not install.splitstack
- name: Deploy the Overcloud with composable roles
vars:
deploy_script_template: templates/composable_roles/overcloud_deploy.sh.j2
templates:
generate_host_name_template: no
storage_add_scale: no
import_playbook: "{{ composable_roles | default('composable_roles.yml') }}"
when:
- install.deploy|default('')
- install.role is defined and install.role.files != 'default'
- (install.version|default(undercloud_version) | openstack_release < 12) or install.tht.roles == false
- not install.splitstack
- name: Deploy the Overcloud with splitstack
vars:
deploy_script_template: templates/splitstack/overcloud_deploy.sh.j2
templates:
generate_host_name_template: no
storage_add_scale: no
include: "{{ splitstack | default('splitstack.yml') }}"
when:
- install.deploy|default('')
- install.splitstack|default(False)
tags:
- splitstack
# todo(obaranov) temporary disable tripleo roles cause they do not respect
# netwrok settings and templates
- name: Deploy the Overcloud with tripleo composable roles
vars:
deploy_script_template: templates/tripleo_roles/overcloud_deploy.sh.j2
templates:
generate_host_name_template: no
storage_add_scale: no
import_playbook: "{{ composable_roles | default('tripleo_roles.yml') }}"
when:
- install.deploy|default('')
- install.role is defined
- install.role.files is defined
- install.version|default(undercloud_version) | openstack_release > 11
- install.tht.roles == true
- not install.splitstack
- name: Placeholder for container related workarounds - imported playbook needs to be configured
import_playbook: "docker_after_workaround.yml"
when:
- install.deploy|default('')
- install.version|default(hostvars[groups['undercloud'][0]].undercloud_version) | openstack_release > 12
- install.containers|bool
tags: deploy