-
Notifications
You must be signed in to change notification settings - Fork 0
/
Deploy.yml
executable file
·215 lines (170 loc) · 7.71 KB
/
Deploy.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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
##
## Project: SDDC.Lab
## Authors: Luis Chanu & Rutger Blom
## Filename: Deploy.yml
##
---
# Validate Configuration File and Environment
- ansible.builtin.import_playbook: playbooks/ValidateConfiguration.yml
# Create Pod documentation
- ansible.builtin.import_playbook: playbooks/CreatePodDoc.yml
# Prepare the physical environment
- ansible.builtin.import_playbook: playbooks/PreparePhysical.yml
# Deploy DNS server
- ansible.builtin.import_playbook: playbooks/DeployDNSServer.yml
when:
- Deploy.Product.DNSServer.Deploy
# Populate DNS with forward and reverse DNS records
- ansible.builtin.import_playbook: playbooks/UpdateDNS.yml
when:
- Deploy.Setting.UseDNS
# Deploy router
- ansible.builtin.import_playbook: playbooks/DeployRouter.yml
when:
- Deploy.Product.Router.Deploy
# Configure router
- ansible.builtin.import_playbook: playbooks/ConfigureRouter.yml
when:
- Deploy.Product.Router.Deploy
# Deploy nested vSphere
- ansible.builtin.import_playbook: playbooks/PrepareISOInstaller.yml
- ansible.builtin.import_playbook: playbooks/DeployNestedEsxi.yml
- name: Verify Replication Partner vCenter Server is ready
ansible.builtin.import_playbook: playbooks/CheckVcReplicationPartner.yml
when:
- Nested_vCenter.SSO.ReplicationPartner != None
- ansible.builtin.import_playbook: playbooks/DeployVc.yml
- ansible.builtin.import_playbook: playbooks/ConfigureNestedEsxi.yml
- ansible.builtin.import_playbook: playbooks/CreateVds.yml
- ansible.builtin.import_playbook: playbooks/ConfigureVsan.yml
- ansible.builtin.import_playbook: playbooks/ConfigureHA.yml
- ansible.builtin.import_playbook: playbooks/CreateContentLibrary.yml
- ansible.builtin.import_playbook: playbooks/License_vSphere.yml
# Deploy NSX-T
- ansible.builtin.import_playbook: playbooks/DeployNsxGlobalManager.yml
when:
- Deploy.Product.NSXT.Federation.Deploy
- Deploy.Product.NSXT.LocalManager.Deploy
- Deploy.Product.NSXT.GlobalManager.SiteCode == SiteCode
- ansible.builtin.import_playbook: playbooks/DeployNsxLocalManager.yml
when:
- Deploy.Product.NSXT.LocalManager.Deploy
- ansible.builtin.import_playbook: playbooks/License_NSXT-LM.yml
when:
- Deploy.Product.NSXT.LocalManager.Deploy
- ansible.builtin.import_playbook: playbooks/ConfigureNsxBasicConfig.yml
when:
- Deploy.Product.NSXT.LocalManager.Deploy
- ansible.builtin.import_playbook: playbooks/ConfigureNsxFabricMTU.yml
when:
- Deploy.Product.NSXT.LocalManager.Deploy
- ansible.builtin.import_playbook: playbooks/RegisterNsxComputeManager.yml
- ansible.builtin.import_playbook: playbooks/CreateNsxUplinkProfiles.yml
when:
- Deploy.Product.NSXT.LocalManager.Deploy
- ansible.builtin.import_playbook: playbooks/CreateNsxTz.yml
when:
- Deploy.Product.NSXT.LocalManager.Deploy
- ansible.builtin.import_playbook: playbooks/CreateNsxIpPool.yml
when:
- Deploy.Product.NSXT.LocalManager.Deploy
- ansible.builtin.import_playbook: playbooks/CreateNsxTnp.yml
when:
- Deploy.Product.NSXT.LocalManager.Deploy
- ansible.builtin.import_playbook: playbooks/AttachNsxTnp.yml
when:
- Deploy.Product.NSXT.LocalManager.Deploy
- ansible.builtin.import_playbook: playbooks/CreateNsxEdgeTn.yml
when:
- Deploy.Product.NSXT.LocalManager.Deploy
- Deploy.Product.NSXT.Edge.Deploy
- ansible.builtin.import_playbook: playbooks/CreateNsxEdgeCluster.yml
when:
- Deploy.Product.NSXT.LocalManager.Deploy
- Deploy.Product.NSXT.Edge.Deploy
# Provision NSX-T logical networking
- ansible.builtin.import_playbook: playbooks/EnableNsxIPv6.yml
when:
- Deploy.Product.NSXT.LocalManager.Deploy
- Deploy.Setting.IPv6
- ansible.builtin.import_playbook: playbooks/CreateNsxVLANSegments.yml
when:
- Deploy.Product.NSXT.LocalManager.Deploy
- ansible.builtin.import_playbook: playbooks/CreateNsxDhcpProfiles.yml
when:
- Deploy.Product.NSXT.Federation.Deploy == false
- ansible.builtin.import_playbook: playbooks/CreateNsxT0Gateway.yml
when:
- Deploy.Product.NSXT.Federation.Deploy == false or (Deploy.Product.NSXT.Federation.Deploy and Deploy.Product.NSXT.GlobalManager.SiteCode == SiteCode) # Only run playbook if deployment is Stand-Alone or if it's Federation and we are deploying Global Manager
- Deploy.Product.NSXT.LocalManager.Deploy
- Deploy.Product.NSXT.Edge.Deploy
- ansible.builtin.import_playbook: playbooks/CreateNsxT1Gateway.yml
when:
- Deploy.Product.NSXT.Federation.Deploy == false or (Deploy.Product.NSXT.Federation.Deploy and Deploy.Product.NSXT.GlobalManager.SiteCode == SiteCode) # Only run playbook if deployment is Stand-Alone or if it's Federation and we are deploying Global Manager
- Deploy.Product.NSXT.LocalManager.Deploy
- Deploy.Product.NSXT.Edge.Deploy
- ansible.builtin.import_playbook: playbooks/CreateNsxOverlaySegments.yml
when:
- Deploy.Product.NSXT.Federation.Deploy == false or (Deploy.Product.NSXT.Federation.Deploy and Deploy.Product.NSXT.GlobalManager.SiteCode == SiteCode) # Only run playbook if deployment is Stand-Alone or if it's Federation and we are deploying Global Manager
- Deploy.Product.NSXT.LocalManager.Deploy
- Deploy.Product.NSXT.Edge.Deploy
- ansible.builtin.import_playbook: playbooks/ConfigureNsxBackup.yml
when:
- Deploy.Product.NSXT.LocalManager.Deploy
- ansible.builtin.import_playbook: playbooks/FederateNsxLocalManager.yml
when:
- Deploy.Product.NSXT.Federation.Deploy
- ansible.builtin.import_playbook: playbooks/FederateNsxEdgeNodes.yml
when:
- Deploy.Product.NSXT.Federation.Deploy
- ansible.builtin.import_playbook: playbooks/FederateNsxT0RouteReDist.yml
when:
- Deploy.Product.NSXT.Federation.Deploy
- ansible.builtin.import_playbook: playbooks/FederateNsxT0BGPNeighbors.yml
when:
- Deploy.Product.NSXT.Federation.Deploy
# Deploy vRealize Log Insight
- ansible.builtin.import_playbook: playbooks/DeployVrli.yml
when:
- Deploy.Product.vRLI.Deploy
- ansible.builtin.import_playbook: playbooks/License_vRLI.yml
when:
- Deploy.Product.vRLI.Deploy
# Deploy Advanced Load Balancer
- ansible.builtin.import_playbook: playbooks/DeployAlb.yml
when:
- Deploy.Product.ALB.Deploy
- ansible.builtin.import_playbook: playbooks/ConfigureAlbBasicConfig.yml
when:
- Deploy.Product.ALB.Deploy
- ansible.builtin.import_playbook: playbooks/ConfigureAlbClouds.yml
when:
- Deploy.Product.ALB.Deploy
- ansible.builtin.import_playbook: playbooks/License_ALB.yml
when:
- Deploy.Product.ALB.Deploy
# Deploy vSphere Replication (Nested)
- ansible.builtin.import_playbook: playbooks/DeployReplication.yml
when:
- Deploy.Product.Replication.Deploy
- ansible.builtin.import_playbook: playbooks/ConfigureReplicationBasicConfig.yml
when:
- Deploy.Product.Replication.Deploy
# Deploy Tanzu
- ansible.builtin.import_playbook: playbooks/EnableWorkloadManagement.yml
when:
- Deploy.Product.NSXT.LocalManager.Deploy
- Deploy.Product.NSXT.Edge.Deploy
- ansible.builtin.import_playbook: playbooks/License_Tanzu.yml
when:
- Deploy.Product.NSXT.LocalManager.Deploy
- Deploy.Product.NSXT.Edge.Deploy
# Deploy Workload VM Templates from Content Library
- ansible.builtin.import_playbook: playbooks/DeployWorkloadVms.yml
when:
- Deploy.WorkloadVMs.Deploy
- Nested_vCenter.ContentLibrary.WorkloadVMs.Enable
- not Deploy.Product.NSXT.Federation.Deploy or (Deploy.Product.NSXT.Federation.Deploy and Deploy.Product.NSXT.GlobalManager.SiteCode == SiteCode) # Only run playbook if deployment is Stand-Alone or if it's Federation and we are deploying Global Manager
- Deploy.Product.NSXT.LocalManager.Deploy
# Create DRS VM-VM Affinity Rule for deployed Pod VMs (This should be the last playbook within deploy.yml)
- ansible.builtin.import_playbook: playbooks/CreateDrsVmRules.yml