blob: fc0b675c4a0bb74439c8bc1a3a2c0e1798f23702 [file] [log] [blame]
Dennis Dmitrievb4b5c102017-05-10 17:09:06 +03001# Set the repository suite, one of the: 'nightly', 'testing', 'stable', or any other required
Dennis Dmitriev492813e2017-08-09 15:08:58 +03002{% set REPOSITORY_SUITE = os_env('REPOSITORY_SUITE', 'testing') %}
Dennis Dmitrievb4b5c102017-05-10 17:09:06 +03003
Dennis Dmitrievab83ea42017-05-12 16:52:45 +03004{% import 'virtual-mcp-ocata-ovs/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %}
5{% import 'virtual-mcp-ocata-ovs/underlay--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 with context %}
6{% import 'virtual-mcp-ocata-ovs/underlay--user-data1604.yaml' as CLOUDINIT_USER_DATA_1604 with context %}
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +03007
Tatyana Leontovich38be41b2017-04-12 14:45:23 +03008---
9aliases:
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +030010 - &interface_model {{ os_env('INTERFACE_MODEL', 'virtio') }}
11 - &cloudinit_meta_data {{ CLOUDINIT_META_DATA }}
12 - &cloudinit_user_data_cfg01 {{ CLOUDINIT_USER_DATA_CFG01 }}
13 - &cloudinit_user_data_1604 {{ CLOUDINIT_USER_DATA_1604 }}
Tatyana Leontovich38be41b2017-04-12 14:45:23 +030014
15{% set DOMAIN_NAME = os_env('LAB_CONFIG_NAME', 'virtual-mcp-ocata-ovs') + '.local' %}
16{% set HOSTNAME_CFG01 = os_env('HOSTNAME_CFG01', 'cfg01.' + DOMAIN_NAME) %}
17{% set HOSTNAME_CTL01 = os_env('HOSTNAME_CTL01', 'ctl01.' + DOMAIN_NAME) %}
18{% set HOSTNAME_CTL02 = os_env('HOSTNAME_CTL02', 'ctl02.' + DOMAIN_NAME) %}
19{% set HOSTNAME_CTL03 = os_env('HOSTNAME_CTL03', 'ctl03.' + DOMAIN_NAME) %}
20{% set HOSTNAME_CMP01 = os_env('HOSTNAME_CMP01', 'cmp01.' + DOMAIN_NAME) %}
21{% set HOSTNAME_CMP02 = os_env('HOSTNAME_CMP02', 'cmp02.' + DOMAIN_NAME) %}
22{% set HOSTNAME_GTW01 = os_env('HOSTNAME_GTW01', 'gtw01.' + DOMAIN_NAME) %}
23{% set HOSTNAME_PRX01 = os_env('HOSTNAME_PRX01', 'prx01.' + DOMAIN_NAME) %}
24
25template:
26 devops_settings:
Dennis Dmitrievb4b5c102017-05-10 17:09:06 +030027 env_name: {{ os_env('ENV_NAME', 'virtual-mcp-ocata-ovs_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }}
Tatyana Leontovich38be41b2017-04-12 14:45:23 +030028
29 address_pools:
30 private-pool01:
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +030031 net: {{ os_env('PRIVATE_ADDRESS_POOL01', '10.60.0.0/16:24') }}
Tatyana Leontovich38be41b2017-04-12 14:45:23 +030032 params:
33 ip_reserved:
34 gateway: +1
35 l2_network_device: +1
36 default_{{ HOSTNAME_CFG01 }}: +100
37 default_{{ HOSTNAME_CTL01 }}: +101
38 default_{{ HOSTNAME_CTL02 }}: +102
39 default_{{ HOSTNAME_CTL03 }}: +103
40 default_{{ HOSTNAME_CMP01 }}: +105
41 default_{{ HOSTNAME_CMP02 }}: +106
42 default_{{ HOSTNAME_GTW01 }}: +110
43 default_{{ HOSTNAME_PRX01 }}: +121
44 ip_ranges:
45 dhcp: [+90, -10]
46
47 admin-pool01:
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +030048 net: {{ os_env('ADMIN_ADDRESS_POOL01', '10.70.0.0/16:24') }}
Tatyana Leontovich38be41b2017-04-12 14:45:23 +030049 params:
50 ip_reserved:
51 gateway: +1
52 l2_network_device: +1
53 default_{{ HOSTNAME_CFG01 }}: +100
54 default_{{ HOSTNAME_CTL01 }}: +101
55 default_{{ HOSTNAME_CTL02 }}: +102
56 default_{{ HOSTNAME_CTL03 }}: +103
57 default_{{ HOSTNAME_CMP01 }}: +105
58 default_{{ HOSTNAME_CMP02 }}: +106
59 default_{{ HOSTNAME_GTW01 }}: +110
60 default_{{ HOSTNAME_PRX01 }}: +121
61 ip_ranges:
62 dhcp: [+90, -10]
63
64 tenant-pool01:
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +030065 net: {{ os_env('TENANT_ADDRESS_POOL01', '10.80.0.0/16:24') }}
Tatyana Leontovich38be41b2017-04-12 14:45:23 +030066 params:
67 ip_reserved:
68 gateway: +1
69 l2_network_device: +1
70 default_{{ HOSTNAME_CFG01 }}: +100
71 default_{{ HOSTNAME_CTL01 }}: +101
72 default_{{ HOSTNAME_CTL02 }}: +102
73 default_{{ HOSTNAME_CTL03 }}: +103
74 default_{{ HOSTNAME_CMP01 }}: +105
75 default_{{ HOSTNAME_CMP02 }}: +106
76 default_{{ HOSTNAME_GTW01 }}: +110
77 default_{{ HOSTNAME_PRX01 }}: +121
78 ip_ranges:
79 dhcp: [+10, -10]
80
81 external-pool01:
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +030082 net: {{ os_env('EXTERNAL_ADDRESS_POOL01', '10.90.0.0/16:24') }}
Tatyana Leontovich38be41b2017-04-12 14:45:23 +030083 params:
84 ip_reserved:
85 gateway: +1
86 l2_network_device: +1
87 default_{{ HOSTNAME_CFG01 }}: +100
88 default_{{ HOSTNAME_CTL01 }}: +101
89 default_{{ HOSTNAME_CTL02 }}: +102
90 default_{{ HOSTNAME_CTL03 }}: +103
91 default_{{ HOSTNAME_CMP01 }}: +105
92 default_{{ HOSTNAME_CMP02 }}: +106
93 default_{{ HOSTNAME_GTW01 }}: +110
94 default_{{ HOSTNAME_PRX01 }}: +121
95 ip_ranges:
96 dhcp: [+10, -10]
97
98
99 groups:
100 - name: default
101 driver:
102 name: devops.driver.libvirt
103 params:
104 connection_string: !os_env CONNECTION_STRING, qemu:///system
105 storage_pool_name: !os_env STORAGE_POOL_NAME, default
106 stp: False
107 hpet: False
108 enable_acpi: true
109 use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true
Dennis Dmitrievb3fc4242017-07-14 16:01:51 +0300110 use_hugepages: !os_env DRIVER_USE_HUGEPAGES, false
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300111
112 network_pools:
113 admin: admin-pool01
114 private: private-pool01
115 tenant: tenant-pool01
116 external: external-pool01
117
118 l2_network_devices:
119 private:
120 address_pool: private-pool01
121 dhcp: true
122
123 admin:
124 address_pool: admin-pool01
125 dhcp: true
126 forward:
127 mode: nat
128
129 tenant:
130 address_pool: tenant-pool01
131 dhcp: true
132
133 external:
134 address_pool: external-pool01
135 dhcp: true
136 forward:
137 mode: nat
138
139
140 group_volumes:
141 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
142 source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img or
143 # http://apt.tcpcloud.eu/images/ubuntu-16-04-x64-201608231004.qcow2
144 format: qcow2
145
146 nodes:
147 - name: {{ HOSTNAME_CFG01 }}
148 role: salt_master
149 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300150 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300151 memory: !os_env SLAVE_NODE_MEMORY, 2048
152 boot:
153 - hd
154 cloud_init_volume_name: iso
155 cloud_init_iface_up: ens3
156 volumes:
157 - name: system
158 capacity: !os_env NODE_VOLUME_SIZE, 150
159 backing_store: cloudimage1604
160 format: qcow2
161 - name: iso # Volume with name 'iso' will be used
162 # for store image with cloud-init metadata.
163 capacity: 1
164 format: raw
165 device: cdrom
166 bus: ide
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +0300167 cloudinit_meta_data: *cloudinit_meta_data
168 cloudinit_user_data: *cloudinit_user_data_cfg01
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300169
170 interfaces:
171 - label: ens3
172 l2_network_device: admin
173 interface_model: *interface_model
174 - label: ens4
175 l2_network_device: private
176 interface_model: *interface_model
177 network_config:
178 ens3:
179 networks:
180 - admin
181 ens4:
182 networks:
183 - private
184
185 - name: {{ HOSTNAME_CTL01 }}
186 role: salt_minion
187 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300188 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300189 memory: !os_env SLAVE_NODE_MEMORY, 8192
190 boot:
191 - hd
192 cloud_init_volume_name: iso
193 cloud_init_iface_up: ens3
194 volumes:
195 - name: system
196 capacity: !os_env NODE_VOLUME_SIZE, 150
197 backing_store: cloudimage1604
198 format: qcow2
199 - name: cinder
200 capacity: 50
201 format: qcow2
202 - name: iso # Volume with name 'iso' will be used
203 # for store image with cloud-init metadata.
204 capacity: 1
205 format: raw
206 device: cdrom
207 bus: ide
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +0300208 cloudinit_meta_data: *cloudinit_meta_data
209 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300210
211 interfaces: &interfaces
212 - label: ens3
213 l2_network_device: admin
214 interface_model: *interface_model
215 - label: ens4
216 l2_network_device: private
217 interface_model: *interface_model
218 network_config: &network_config
219 ens3:
220 networks:
221 - admin
222 ens4:
223 networks:
224 - private
225
226 - name: {{ HOSTNAME_CTL02 }}
227 role: salt_minion
228 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300229 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300230 memory: !os_env SLAVE_NODE_MEMORY, 8192
231 boot:
232 - hd
233 cloud_init_volume_name: iso
234 cloud_init_iface_up: ens3
235 volumes:
236 - name: system
237 capacity: !os_env NODE_VOLUME_SIZE, 150
238 backing_store: cloudimage1604
239 format: qcow2
240 - name: cinder
241 capacity: 50
242 format: qcow2
243 - name: iso # Volume with name 'iso' will be used
244 # for store image with cloud-init metadata.
245 capacity: 1
246 format: raw
247 device: cdrom
248 bus: ide
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +0300249 cloudinit_meta_data: *cloudinit_meta_data
250 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300251
252 interfaces: *interfaces
253 network_config: *network_config
254
255 - name: {{ HOSTNAME_CTL03 }}
256 role: salt_minion
257 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300258 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300259 memory: !os_env SLAVE_NODE_MEMORY, 8192
260 boot:
261 - hd
262 cloud_init_volume_name: iso
263 cloud_init_iface_up: ens3
264 volumes:
265 - name: system
266 capacity: !os_env NODE_VOLUME_SIZE, 150
267 backing_store: cloudimage1604
268 format: qcow2
269 - name: cinder
270 capacity: 50
271 format: qcow2
272 - name: iso # Volume with name 'iso' will be used
273 # for store image with cloud-init metadata.
274 capacity: 1
275 format: raw
276 device: cdrom
277 bus: ide
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +0300278 cloudinit_meta_data: *cloudinit_meta_data
279 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300280
281 interfaces: *interfaces
282 network_config: *network_config
283
284 - name: {{ HOSTNAME_PRX01 }}
285 role: salt_minion
286 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300287 vcpu: !os_env SLAVE_NODE_CPU, 1
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300288 memory: !os_env SLAVE_NODE_MEMORY, 8192
289 boot:
290 - hd
291 cloud_init_volume_name: iso
292 cloud_init_iface_up: ens3
293 volumes:
294 - name: system
295 capacity: !os_env NODE_VOLUME_SIZE, 150
296 backing_store: cloudimage1604
297 format: qcow2
298 - name: cinder
299 capacity: 50
300 format: qcow2
301 - name: iso # Volume with name 'iso' will be used
302 # for store image with cloud-init metadata.
303 capacity: 1
304 format: raw
305 device: cdrom
306 bus: ide
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +0300307 cloudinit_meta_data: *cloudinit_meta_data
308 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300309
310 interfaces: *interfaces
311 network_config: *network_config
312
313
314 - name: {{ HOSTNAME_CMP01 }}
315 role: salt_minion
316 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300317 vcpu: !os_env SLAVE_NODE_CPU, 3
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300318 memory: !os_env SLAVE_NODE_MEMORY, 4096
319 boot:
320 - hd
321 cloud_init_volume_name: iso
322 cloud_init_iface_up: ens3
323 volumes:
324 - name: system
325 capacity: !os_env NODE_VOLUME_SIZE, 150
326 backing_store: cloudimage1604
327 format: qcow2
328 - name: iso # Volume with name 'iso' will be used
329 # for store image with cloud-init metadata.
330 capacity: 1
331 format: raw
332 device: cdrom
333 bus: ide
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +0300334 cloudinit_meta_data: *cloudinit_meta_data
335 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300336
337
338 interfaces: &all_interfaces
339 - label: ens3
340 l2_network_device: admin
341 interface_model: *interface_model
342 - label: ens4
343 l2_network_device: private
344 interface_model: *interface_model
345 - label: ens5
346 l2_network_device: tenant
347 interface_model: *interface_model
348 - label: ens6
349 l2_network_device: external
350 interface_model: *interface_model
351 network_config: &all_network_config
352 ens3:
353 networks:
354 - admin
355 ens4:
356 networks:
357 - private
358 ens5:
359 networks:
360 - tenant
361 ens6:
362 networks:
363 - external
364
365 - name: {{ HOSTNAME_CMP02 }}
366 role: salt_minion
367 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300368 vcpu: !os_env SLAVE_NODE_CPU, 3
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300369 memory: !os_env SLAVE_NODE_MEMORY, 4096
370 boot:
371 - hd
372 cloud_init_volume_name: iso
373 cloud_init_iface_up: ens3
374 volumes:
375 - name: system
376 capacity: !os_env NODE_VOLUME_SIZE, 150
377 backing_store: cloudimage1604
378 format: qcow2
379 - name: iso # Volume with name 'iso' will be used
380 # for store image with cloud-init metadata.
381 capacity: 1
382 format: raw
383 device: cdrom
384 bus: ide
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +0300385 cloudinit_meta_data: *cloudinit_meta_data
386 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300387
388 interfaces: *all_interfaces
389 network_config: *all_network_config
390
391 - name: {{ HOSTNAME_GTW01 }}
392 role: salt_minion
393 params:
394 vcpu: !os_env SLAVE_NODE_CPU, 1
395 memory: !os_env SLAVE_NODE_MEMORY, 2048
396 boot:
397 - hd
398 cloud_init_volume_name: iso
399 cloud_init_iface_up: ens3
400 volumes:
401 - name: system
402 capacity: !os_env NODE_VOLUME_SIZE, 150
403 backing_store: cloudimage1604
404 format: qcow2
405 - name: iso # Volume with name 'iso' will be used
406 # for store image with cloud-init metadata.
407 capacity: 1
408 format: raw
409 device: cdrom
410 bus: ide
Dennis Dmitriev4ab889c2017-04-27 14:11:04 +0300411 cloudinit_meta_data: *cloudinit_meta_data
412 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovich38be41b2017-04-12 14:45:23 +0300413
414 interfaces: *all_interfaces
415 network_config: *all_network_config