blob: 8801146dcd39a19b6436f8cabcbb37ab102b0eb6 [file] [log] [blame]
Tatyana Leontovich055b5062017-04-03 13:17:25 +03001---
2aliases:
3 default_interface_model:
4 - &interface_model !os_env INTERFACE_MODEL, virtio
5
Tatyana Leontovich6d6b1872017-04-05 13:25:31 +03006{% set DOMAIN_NAME = os_env('LAB_CONFIG_NAME', 'virtual-mcp10-ovs') + '.local' %}
Tatyana Leontovich055b5062017-04-03 13:17:25 +03007{% set HOSTNAME_CFG01 = os_env('HOSTNAME_CFG01', 'cfg01.' + DOMAIN_NAME) %}
8{% set HOSTNAME_CTL01 = os_env('HOSTNAME_CTL01', 'ctl01.' + DOMAIN_NAME) %}
9{% set HOSTNAME_CTL02 = os_env('HOSTNAME_CTL02', 'ctl02.' + DOMAIN_NAME) %}
10{% set HOSTNAME_CTL03 = os_env('HOSTNAME_CTL03', 'ctl03.' + DOMAIN_NAME) %}
11{% set HOSTNAME_CMP01 = os_env('HOSTNAME_CMP01', 'cmp01.' + DOMAIN_NAME) %}
12{% set HOSTNAME_CMP02 = os_env('HOSTNAME_CMP02', 'cmp02.' + DOMAIN_NAME) %}
13{% set HOSTNAME_GTW01 = os_env('HOSTNAME_GTW01', 'gtw01.' + DOMAIN_NAME) %}
Tatyana Leontovich8938d2c2017-04-03 14:59:12 +030014{% set HOSTNAME_PRX01 = os_env('HOSTNAME_PRX01', 'prx01.' + DOMAIN_NAME) %}
Tatyana Leontovich055b5062017-04-03 13:17:25 +030015
16template:
17 devops_settings:
Tatyana Leontovichef147782017-04-05 16:05:11 +030018 env_name: {{ os_env('ENV_NAME', 'virtual-mcp10-ovs') }}
Tatyana Leontovich055b5062017-04-03 13:17:25 +030019
20 address_pools:
Tatyana Leontovichebc49cb2017-04-06 15:23:15 +030021 private-pool01:
Tatyana Leontovich055b5062017-04-03 13:17:25 +030022 net: 172.16.10.0/24:24
23 params:
24 ip_reserved:
25 gateway: +1
26 l2_network_device: +1
27 default_{{ HOSTNAME_CFG01 }}: +100
28 default_{{ HOSTNAME_CTL01 }}: +101
29 default_{{ HOSTNAME_CTL02 }}: +102
30 default_{{ HOSTNAME_CTL03 }}: +103
31 default_{{ HOSTNAME_CMP01 }}: +105
32 default_{{ HOSTNAME_CMP02 }}: +106
33 default_{{ HOSTNAME_GTW01 }}: +110
34 default_{{ HOSTNAME_PRX01 }}: +121
35 ip_ranges:
36 dhcp: [+90, -10]
37
Tatyana Leontovichebc49cb2017-04-06 15:23:15 +030038 admin-pool01:
Tatyana Leontovich055b5062017-04-03 13:17:25 +030039 net: 192.168.10.0/24:24
40 params:
41 ip_reserved:
42 gateway: +1
43 l2_network_device: +1
Tatyana Leontoviche0286ed2017-09-12 11:55:06 +030044 default_{{ HOSTNAME_CFG01 }}: +90
Tatyana Leontovich055b5062017-04-03 13:17:25 +030045 default_{{ HOSTNAME_CTL01 }}: +101
46 default_{{ HOSTNAME_CTL02 }}: +102
47 default_{{ HOSTNAME_CTL03 }}: +103
48 default_{{ HOSTNAME_CMP01 }}: +105
49 default_{{ HOSTNAME_CMP02 }}: +106
50 default_{{ HOSTNAME_GTW01 }}: +110
51 default_{{ HOSTNAME_PRX01 }}: +121
52 ip_ranges:
53 dhcp: [+90, -10]
54
55 tenant-pool01:
56 net: 10.1.0.0/24:24
57 params:
58 ip_reserved:
59 gateway: +1
60 l2_network_device: +1
61 default_{{ HOSTNAME_CFG01 }}: +100
62 default_{{ HOSTNAME_CTL01 }}: +101
63 default_{{ HOSTNAME_CTL02 }}: +102
64 default_{{ HOSTNAME_CTL03 }}: +103
65 default_{{ HOSTNAME_CMP01 }}: +105
66 default_{{ HOSTNAME_CMP02 }}: +106
67 default_{{ HOSTNAME_GTW01 }}: +110
68 default_{{ HOSTNAME_PRX01 }}: +121
69 ip_ranges:
70 dhcp: [+10, -10]
71
72 external-pool01:
73 net: 10.16.0.0/24:24
74 params:
75 ip_reserved:
76 gateway: +1
77 l2_network_device: +1
78 default_{{ HOSTNAME_CFG01 }}: +100
79 default_{{ HOSTNAME_CTL01 }}: +101
80 default_{{ HOSTNAME_CTL02 }}: +102
81 default_{{ HOSTNAME_CTL03 }}: +103
82 default_{{ HOSTNAME_CMP01 }}: +105
83 default_{{ HOSTNAME_CMP02 }}: +106
84 default_{{ HOSTNAME_GTW01 }}: +110
85 default_{{ HOSTNAME_PRX01 }}: +121
86 ip_ranges:
87 dhcp: [+10, -10]
88
89
90 groups:
91 - name: default
92 driver:
93 name: devops.driver.libvirt
94 params:
95 connection_string: !os_env CONNECTION_STRING, qemu:///system
96 storage_pool_name: !os_env STORAGE_POOL_NAME, default
97 stp: False
98 hpet: False
99 enable_acpi: true
100 use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true
Dennis Dmitrievb3fc4242017-07-14 16:01:51 +0300101 use_hugepages: !os_env DRIVER_USE_HUGEPAGES, false
Tatyana Leontovich055b5062017-04-03 13:17:25 +0300102
103 network_pools:
104 admin: admin-pool01
105 private: private-pool01
106 tenant: tenant-pool01
107 external: external-pool01
108
109 l2_network_devices:
110 private:
111 address_pool: private-pool01
Tatyana Leontoviche12e5e62017-04-06 18:30:03 +0300112 dhcp: true
Tatyana Leontovich055b5062017-04-03 13:17:25 +0300113
114 admin:
115 address_pool: admin-pool01
116 dhcp: true
Tatyana Leontovichb2fddb32017-04-06 18:23:49 +0300117 forward:
118 mode: nat
Tatyana Leontovich055b5062017-04-03 13:17:25 +0300119
120 tenant:
121 address_pool: tenant-pool01
122 dhcp: true
123
124 external:
125 address_pool: external-pool01
126 dhcp: true
127 forward:
128 mode: nat
129
130
131 group_volumes:
132 - name: cloudimage1404 # This name is used for 'backing_store' option for node volumes.
133 source_image: !os_env IMAGE_PATH1404 # https://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64-disk1.img or
134 # http://apt.tcpcloud.eu/images/ubuntu-14-04-x64-201608231134.qcow2
135 format: qcow2
136 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
137 source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img or
138 # http://apt.tcpcloud.eu/images/ubuntu-16-04-x64-201608231004.qcow2
139 format: qcow2
140
141 nodes:
142 - name: {{ HOSTNAME_CFG01 }}
143 role: salt_master
144 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300145 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovich055b5062017-04-03 13:17:25 +0300146 memory: !os_env SLAVE_NODE_MEMORY, 2048
147 boot:
148 - hd
149 cloud_init_volume_name: iso
150 cloud_init_iface_up: ens3
151 volumes:
152 - name: system
153 capacity: !os_env NODE_VOLUME_SIZE, 150
154 backing_store: cloudimage1604
155 format: qcow2
156 - name: iso # Volume with name 'iso' will be used
157 # for store image with cloud-init metadata.
158 capacity: 1
159 format: raw
160 device: cdrom
161 bus: ide
Dennis Dmitrievab83ea42017-05-12 16:52:45 +0300162 cloudinit_meta_data: !include underlay--meta-data.yaml
163 cloudinit_user_data: !include underlay--user-data-cfg01.yaml
Tatyana Leontovich055b5062017-04-03 13:17:25 +0300164
165 interfaces:
166 - label: ens3
Tatyana Leontovich4ef67a42017-04-06 16:18:29 +0300167 l2_network_device: admin
Tatyana Leontovich055b5062017-04-03 13:17:25 +0300168 interface_model: *interface_model
169 - label: ens4
Tatyana Leontovich4ef67a42017-04-06 16:18:29 +0300170 l2_network_device: private
Tatyana Leontovich055b5062017-04-03 13:17:25 +0300171 interface_model: *interface_model
172 network_config:
173 ens3:
174 networks:
Tatyana Leontovich4ef67a42017-04-06 16:18:29 +0300175 - admin
Tatyana Leontovich055b5062017-04-03 13:17:25 +0300176 ens4:
177 networks:
Tatyana Leontovich4ef67a42017-04-06 16:18:29 +0300178 - private
Tatyana Leontovich055b5062017-04-03 13:17:25 +0300179
180 - name: {{ HOSTNAME_CTL01 }}
181 role: salt_minion
182 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300183 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovich055b5062017-04-03 13:17:25 +0300184 memory: !os_env SLAVE_NODE_MEMORY, 8192
185 boot:
186 - hd
187 cloud_init_volume_name: iso
188 cloud_init_iface_up: eth0
189 volumes:
190 - name: system
191 capacity: !os_env NODE_VOLUME_SIZE, 150
192 backing_store: cloudimage1404
193 format: qcow2
194 - name: cinder
195 capacity: 50
196 format: qcow2
197 - name: iso # Volume with name 'iso' will be used
198 # for store image with cloud-init metadata.
199 capacity: 1
200 format: raw
201 device: cdrom
202 bus: ide
Dennis Dmitrievab83ea42017-05-12 16:52:45 +0300203 cloudinit_meta_data: !include underlay--meta-data.yaml
204 cloudinit_user_data: !include underlay--user-data1404.yaml
Tatyana Leontovich055b5062017-04-03 13:17:25 +0300205
206 interfaces: &interfaces
207 - label: eth0
Tatyana Leontovich4ef67a42017-04-06 16:18:29 +0300208 l2_network_device: admin
Tatyana Leontovich055b5062017-04-03 13:17:25 +0300209 interface_model: *interface_model
210 - label: eth1
Tatyana Leontovich4ef67a42017-04-06 16:18:29 +0300211 l2_network_device: private
Tatyana Leontovich055b5062017-04-03 13:17:25 +0300212 interface_model: *interface_model
213 network_config: &network_config
214 eth0:
215 networks:
Tatyana Leontovich4ef67a42017-04-06 16:18:29 +0300216 - admin
Tatyana Leontovich055b5062017-04-03 13:17:25 +0300217 eth1:
218 networks:
Tatyana Leontovich4ef67a42017-04-06 16:18:29 +0300219 - private
Tatyana Leontovich055b5062017-04-03 13:17:25 +0300220
221 - name: {{ HOSTNAME_CTL02 }}
222 role: salt_minion
223 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300224 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovich055b5062017-04-03 13:17:25 +0300225 memory: !os_env SLAVE_NODE_MEMORY, 8192
226 boot:
227 - hd
228 cloud_init_volume_name: iso
229 cloud_init_iface_up: eth0
230 volumes:
231 - name: system
232 capacity: !os_env NODE_VOLUME_SIZE, 150
233 backing_store: cloudimage1404
234 format: qcow2
235 - name: cinder
236 capacity: 50
237 format: qcow2
238 - name: iso # Volume with name 'iso' will be used
239 # for store image with cloud-init metadata.
240 capacity: 1
241 format: raw
242 device: cdrom
243 bus: ide
Dennis Dmitrievab83ea42017-05-12 16:52:45 +0300244 cloudinit_meta_data: !include underlay--meta-data.yaml
245 cloudinit_user_data: !include underlay--user-data1404.yaml
Tatyana Leontovich055b5062017-04-03 13:17:25 +0300246
247 interfaces: *interfaces
248 network_config: *network_config
249
250 - name: {{ HOSTNAME_CTL03 }}
251 role: salt_minion
252 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300253 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovich055b5062017-04-03 13:17:25 +0300254 memory: !os_env SLAVE_NODE_MEMORY, 8192
255 boot:
256 - hd
257 cloud_init_volume_name: iso
258 cloud_init_iface_up: eth0
259 volumes:
260 - name: system
261 capacity: !os_env NODE_VOLUME_SIZE, 150
262 backing_store: cloudimage1404
263 format: qcow2
264 - name: cinder
265 capacity: 50
266 format: qcow2
267 - name: iso # Volume with name 'iso' will be used
268 # for store image with cloud-init metadata.
269 capacity: 1
270 format: raw
271 device: cdrom
272 bus: ide
Dennis Dmitrievab83ea42017-05-12 16:52:45 +0300273 cloudinit_meta_data: !include underlay--meta-data.yaml
274 cloudinit_user_data: !include underlay--user-data1404.yaml
Tatyana Leontovich055b5062017-04-03 13:17:25 +0300275
276 interfaces: *interfaces
277 network_config: *network_config
278
279 - name: {{ HOSTNAME_PRX01 }}
280 role: salt_minion
281 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300282 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovich055b5062017-04-03 13:17:25 +0300283 memory: !os_env SLAVE_NODE_MEMORY, 8192
284 boot:
285 - hd
286 cloud_init_volume_name: iso
287 cloud_init_iface_up: eth0
288 volumes:
289 - name: system
290 capacity: !os_env NODE_VOLUME_SIZE, 150
291 backing_store: cloudimage1404
292 format: qcow2
293 - name: cinder
294 capacity: 50
295 format: qcow2
296 - name: iso # Volume with name 'iso' will be used
297 # for store image with cloud-init metadata.
298 capacity: 1
299 format: raw
300 device: cdrom
301 bus: ide
Dennis Dmitrievab83ea42017-05-12 16:52:45 +0300302 cloudinit_meta_data: !include underlay--meta-data.yaml
303 cloudinit_user_data: !include underlay--user-data1404.yaml
Tatyana Leontovich055b5062017-04-03 13:17:25 +0300304
305 interfaces: *interfaces
306 network_config: *network_config
307
308
309 - name: {{ HOSTNAME_CMP01 }}
310 role: salt_minion
311 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300312 vcpu: !os_env SLAVE_NODE_CPU, 3
Tatyana Leontovich055b5062017-04-03 13:17:25 +0300313 memory: !os_env SLAVE_NODE_MEMORY, 4096
314 boot:
315 - hd
316 cloud_init_volume_name: iso
Tatyana Leontovich6e520782017-04-03 16:00:32 +0300317 cloud_init_iface_up: ens3
Tatyana Leontovich055b5062017-04-03 13:17:25 +0300318 volumes:
319 - name: system
320 capacity: !os_env NODE_VOLUME_SIZE, 150
321 backing_store: cloudimage1604
322 format: qcow2
323 - name: iso # Volume with name 'iso' will be used
324 # for store image with cloud-init metadata.
325 capacity: 1
326 format: raw
327 device: cdrom
328 bus: ide
Dennis Dmitrievab83ea42017-05-12 16:52:45 +0300329 cloudinit_meta_data: !include underlay--meta-data.yaml
330 cloudinit_user_data: !include underlay--user-data1604.yaml
Tatyana Leontovich055b5062017-04-03 13:17:25 +0300331
332
333 interfaces: &all_interfaces
334 - label: ens3
Tatyana Leontovich4ef67a42017-04-06 16:18:29 +0300335 l2_network_device: admin
Tatyana Leontovich055b5062017-04-03 13:17:25 +0300336 interface_model: *interface_model
337 - label: ens4
Tatyana Leontovich4ef67a42017-04-06 16:18:29 +0300338 l2_network_device: private
Tatyana Leontovich055b5062017-04-03 13:17:25 +0300339 interface_model: *interface_model
340 - label: ens5
341 l2_network_device: tenant
342 interface_model: *interface_model
343 - label: ens6
344 l2_network_device: external
345 interface_model: *interface_model
346 network_config: &all_network_config
347 ens3:
348 networks:
Tatyana Leontovich4ef67a42017-04-06 16:18:29 +0300349 - admin
Tatyana Leontovich055b5062017-04-03 13:17:25 +0300350 ens4:
351 networks:
Tatyana Leontovich4ef67a42017-04-06 16:18:29 +0300352 - private
Tatyana Leontovich055b5062017-04-03 13:17:25 +0300353 ens5:
354 networks:
355 - tenant
356 ens6:
357 networks:
358 - external
359
360 - name: {{ HOSTNAME_CMP02 }}
361 role: salt_minion
362 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300363 vcpu: !os_env SLAVE_NODE_CPU, 3
Tatyana Leontovich055b5062017-04-03 13:17:25 +0300364 memory: !os_env SLAVE_NODE_MEMORY, 4096
365 boot:
366 - hd
367 cloud_init_volume_name: iso
Tatyana Leontovich6e520782017-04-03 16:00:32 +0300368 cloud_init_iface_up: ens3
Tatyana Leontovich055b5062017-04-03 13:17:25 +0300369 volumes:
370 - name: system
371 capacity: !os_env NODE_VOLUME_SIZE, 150
372 backing_store: cloudimage1604
373 format: qcow2
374 - name: iso # Volume with name 'iso' will be used
375 # for store image with cloud-init metadata.
376 capacity: 1
377 format: raw
378 device: cdrom
379 bus: ide
Dennis Dmitrievab83ea42017-05-12 16:52:45 +0300380 cloudinit_meta_data: !include underlay--meta-data.yaml
381 cloudinit_user_data: !include underlay--user-data1604.yaml
Tatyana Leontovich055b5062017-04-03 13:17:25 +0300382
383 interfaces: *all_interfaces
384 network_config: *all_network_config
385
386 - name: {{ HOSTNAME_GTW01 }}
387 role: salt_minion
388 params:
389 vcpu: !os_env SLAVE_NODE_CPU, 1
390 memory: !os_env SLAVE_NODE_MEMORY, 2048
391 boot:
392 - hd
393 cloud_init_volume_name: iso
Tatyana Leontovich6e520782017-04-03 16:00:32 +0300394 cloud_init_iface_up: ens3
Tatyana Leontovich055b5062017-04-03 13:17:25 +0300395 volumes:
396 - name: system
397 capacity: !os_env NODE_VOLUME_SIZE, 150
398 backing_store: cloudimage1604
399 format: qcow2
400 - name: iso # Volume with name 'iso' will be used
401 # for store image with cloud-init metadata.
402 capacity: 1
403 format: raw
404 device: cdrom
405 bus: ide
Dennis Dmitrievab83ea42017-05-12 16:52:45 +0300406 cloudinit_meta_data: !include underlay--meta-data.yaml
407 cloudinit_user_data: !include underlay--user-data1604.yaml
Tatyana Leontovich055b5062017-04-03 13:17:25 +0300408
409 interfaces: *all_interfaces
410 network_config: *all_network_config