blob: 8187fb965cf399a3e813aca6f76bbd05465982b5 [file] [log] [blame]
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +02001# This environment requires 50.5 GB of RAM and 270GB of Storage. Run with caution.
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +03002{% set REPOSITORY_SUITE = os_env('REPOSITORY_SUITE', 'stable') %}
3
4{% import 'virtual-mcp11-k8s-contrail/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %}
5{% import 'virtual-mcp11-k8s-contrail/underlay--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 with context %}
6{% import 'virtual-mcp11-k8s-contrail/underlay--user-data1604.yaml' as CLOUDINIT_USER_DATA_1604 with context %}
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +02007{% import 'virtual-mcp11-k8s-contrail/underlay--user-data1404.yaml' as CLOUDINIT_USER_DATA_1404 with context %}
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +03008
9---
10aliases:
11 - &interface_model {{ os_env('INTERFACE_MODEL', 'virtio') }}
12 - &cloudinit_meta_data {{ CLOUDINIT_META_DATA }}
13 - &cloudinit_user_data_cfg01 {{ CLOUDINIT_USER_DATA_CFG01 }}
14 - &cloudinit_user_data_1604 {{ CLOUDINIT_USER_DATA_1604 }}
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +020015 - &cloudinit_user_data_1404 {{ CLOUDINIT_USER_DATA_1404 }}
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +030016
17{% set DOMAIN_NAME = os_env('LAB_CONFIG_NAME', 'virtual-mcp11-k8s-contrail') + '.local' %}
18{% set HOSTNAME_CFG01 = os_env('HOSTNAME_CFG01', 'cfg01.' + DOMAIN_NAME) %}
19{% set HOSTNAME_CTL01 = os_env('HOSTNAME_CTL01', 'ctl01.' + DOMAIN_NAME) %}
20{% set HOSTNAME_CTL02 = os_env('HOSTNAME_CTL02', 'ctl02.' + DOMAIN_NAME) %}
21{% set HOSTNAME_CTL03 = os_env('HOSTNAME_CTL03', 'ctl03.' + DOMAIN_NAME) %}
22{% set HOSTNAME_CMP01 = os_env('HOSTNAME_CMP01', 'cmp01.' + DOMAIN_NAME) %}
23{% set HOSTNAME_CMP02 = os_env('HOSTNAME_CMP02', 'cmp02.' + DOMAIN_NAME) %}
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +020024{% set HOSTNAME_MON01 = os_env('HOSTNAME_MON01', 'mon01.' + DOMAIN_NAME) %}
25{% set HOSTNAME_MON02 = os_env('HOSTNAME_MON02', 'mon02.' + DOMAIN_NAME) %}
26{% set HOSTNAME_MON03 = os_env('HOSTNAME_MON03', 'mon03.' + DOMAIN_NAME) %}
27{% set HOSTNAME_NTW01 = os_env('HOSTNAME_NTW01', 'ntw01.' + DOMAIN_NAME) %}
28{% set HOSTNAME_NTW02 = os_env('HOSTNAME_NTW02', 'ntw02.' + DOMAIN_NAME) %}
29{% set HOSTNAME_NTW03 = os_env('HOSTNAME_NTW03', 'ntw03.' + DOMAIN_NAME) %}
30{% set HOSTNAME_PRX01 = os_env('HOSTNAME_PRX01', 'prx01.' + DOMAIN_NAME) %}
Sergii Golovatiukc504a392017-05-22 21:41:06 +020031{% set HOSTNAME_VSRX01 = os_env('HOSTNAME_VSRX01', 'vsrx01' + DOMAIN_NAME) %}
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +030032
33template:
34 devops_settings:
35 env_name: {{ os_env('ENV_NAME', 'virtual-mcp11-k8s-contrail_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }}
36
37 address_pools:
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +030038
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +020039 private-pool01:
40 net: {{ os_env('PRIVATE_ADDRESS_POOL01', '172.16.10.0/24:24') }}
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +030041 params:
42 ip_reserved:
43 gateway: +1
44 l2_network_device: +1
45 default_{{ HOSTNAME_CFG01 }}: +100
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +020046 default_{{ HOSTNAME_CTL01 }}: +101
47 default_{{ HOSTNAME_CTL02 }}: +102
48 default_{{ HOSTNAME_CTL03 }}: +103
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +030049 default_{{ HOSTNAME_CMP01 }}: +105
50 default_{{ HOSTNAME_CMP02 }}: +106
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +020051 default_{{ HOSTNAME_MON01 }}: +107
52 default_{{ HOSTNAME_MON02 }}: +108
53 default_{{ HOSTNAME_MON03 }}: +109
54 default_{{ HOSTNAME_NTW01 }}: +110
55 default_{{ HOSTNAME_NTW02 }}: +111
56 default_{{ HOSTNAME_NTW03 }}: +112
57 default_{{ HOSTNAME_PRX01 }}: +121
58 default_{{ HOSTNAME_VSRX01 }}: +90
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +030059 ip_ranges:
60 dhcp: [+90, -10]
61
Sergii Golovatiukc504a392017-05-22 21:41:06 +020062 public-pool01:
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +020063 net: {{ os_env('PUBLIC_ADDRESS_POOL01', '192.168.10.0/24:24') }}
Sergii Golovatiukc504a392017-05-22 21:41:06 +020064 params:
65 ip_reserved:
66 gateway: +1
67 l2_network_device: +1
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +020068 default_{{ HOSTNAME_CFG01 }}: +100
69 default_{{ HOSTNAME_CTL01 }}: +101
70 default_{{ HOSTNAME_CTL02 }}: +102
71 default_{{ HOSTNAME_CTL03 }}: +103
72 default_{{ HOSTNAME_CMP01 }}: +105
73 default_{{ HOSTNAME_CMP02 }}: +106
74 default_{{ HOSTNAME_MON01 }}: +107
75 default_{{ HOSTNAME_MON02 }}: +108
76 default_{{ HOSTNAME_MON03 }}: +109
77 default_{{ HOSTNAME_NTW01 }}: +110
78 default_{{ HOSTNAME_NTW02 }}: +111
79 default_{{ HOSTNAME_NTW03 }}: +112
80 default_{{ HOSTNAME_PRX01 }}: +121
81 default_{{ HOSTNAME_VSRX01 }}: +90
82 ip_ranges:
83 dhcp: [+90, -10]
84
85 admin-pool01:
86 net: {{ os_env('ADMIN_ADDRESS_POOL01', '10.70.0.0/24:24') }}
87 params:
88 ip_reserved:
89 gateway: +1
90 l2_network_device: +1
91 default_{{ HOSTNAME_CFG01 }}: +100
92 default_{{ HOSTNAME_CTL01 }}: +101
93 default_{{ HOSTNAME_CTL02 }}: +102
94 default_{{ HOSTNAME_CTL03 }}: +103
95 default_{{ HOSTNAME_CMP01 }}: +105
96 default_{{ HOSTNAME_CMP02 }}: +106
97 default_{{ HOSTNAME_MON01 }}: +107
98 default_{{ HOSTNAME_MON02 }}: +108
99 default_{{ HOSTNAME_MON03 }}: +109
100 default_{{ HOSTNAME_NTW01 }}: +110
101 default_{{ HOSTNAME_NTW02 }}: +111
102 default_{{ HOSTNAME_NTW03 }}: +112
103 default_{{ HOSTNAME_PRX01 }}: +121
104 default_{{ HOSTNAME_VSRX01 }}: +90
105 ip_ranges:
106 dhcp: [+90, -10]
Sergii Golovatiukc504a392017-05-22 21:41:06 +0200107
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300108 groups:
109 - name: default
110 driver:
111 name: devops.driver.libvirt
112 params:
113 connection_string: !os_env CONNECTION_STRING, qemu:///system
114 storage_pool_name: !os_env STORAGE_POOL_NAME, default
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200115 stp: True
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300116 hpet: False
117 enable_acpi: true
118 use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true
119
120 network_pools:
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300121 private: private-pool01
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200122 public: public-pool01
123 admin: admin-pool01
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300124
125 l2_network_devices:
126 private:
127 address_pool: private-pool01
128 dhcp: true
129
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200130 public:
131 address_pool: public-pool01
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300132 dhcp: true
133 forward:
134 mode: nat
135
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200136 admin:
137 address_pool: admin-pool01
138 dhcp: true
Sergii Golovatiukc504a392017-05-22 21:41:06 +0200139
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300140 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
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200143 format: qcow2
144
145 - name: cloudimage1404
146 source_image: !os_env IMAGE_PATH1404
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300147 format: qcow2
148
Sergii Golovatiukc504a392017-05-22 21:41:06 +0200149 - name: vsrx_image
150 source_image: !os_env IMAGE_VSRX
151 format: qcow2
152
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300153 nodes:
154 - name: {{ HOSTNAME_CFG01 }}
155 role: salt_master
156 params:
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200157 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300158 memory: !os_env SLAVE_NODE_MEMORY, 2048
159 boot:
160 - hd
161 cloud_init_volume_name: iso
162 cloud_init_iface_up: ens3
163 volumes:
164 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200165 capacity: !os_env NODE_VOLUME_SIZE, 20
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300166 backing_store: cloudimage1604
167 format: qcow2
168 - name: iso # Volume with name 'iso' will be used
169 # for store image with cloud-init metadata.
170 capacity: 1
171 format: raw
172 device: cdrom
173 bus: ide
174 cloudinit_meta_data: !include underlay--meta-data.yaml
175 cloudinit_user_data: !include underlay--user-data-cfg01.yaml
176
177 interfaces:
178 - label: ens3
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200179 l2_network_device: public
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300180 interface_model: *interface_model
181 - label: ens4
182 l2_network_device: private
183 interface_model: *interface_model
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200184 - label: ens5
185 l2_network_device: admin
186 interface_model: *interface_model
187
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300188 network_config:
189 ens3:
190 networks:
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200191 - public
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300192 ens4:
193 networks:
194 - private
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200195 ens5:
196 networks:
197 - admin
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300198
199 - name: {{ HOSTNAME_CTL01 }}
200 role: salt_minion
201 params:
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200202 vcpu: !os_env SLAVE_NODE_CPU, 2
203 memory: !os_env SLAVE_NODE_MEMORY, 4096
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300204 boot:
205 - hd
206 cloud_init_volume_name: iso
207 cloud_init_iface_up: ens3
208 volumes:
209 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200210 capacity: !os_env NODE_VOLUME_SIZE, 20
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300211 backing_store: cloudimage1604
212 format: qcow2
213 - name: cinder
214 capacity: 50
215 format: qcow2
216 - name: iso # Volume with name 'iso' will be used
217 # for store image with cloud-init metadata.
218 capacity: 1
219 format: raw
220 device: cdrom
221 bus: ide
222 cloudinit_meta_data: !include underlay--meta-data.yaml
223 cloudinit_user_data: !include underlay--user-data1604.yaml
224
225 interfaces: &interfaces
226 - label: ens3
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200227 l2_network_device: public
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300228 interface_model: *interface_model
229 - label: ens4
230 l2_network_device: private
231 interface_model: *interface_model
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200232 - label: ens5
233 l2_network_device: admin
234 interface_model: *interface_model
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300235 network_config: &network_config
236 ens3:
237 networks:
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200238 - public
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300239 ens4:
240 networks:
241 - private
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200242 ens5:
243 networks:
244 - admin
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300245
246 - name: {{ HOSTNAME_CTL02 }}
247 role: salt_minion
248 params:
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200249 vcpu: !os_env SLAVE_NODE_CPU, 2
250 memory: !os_env SLAVE_NODE_MEMORY, 4096
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300251 boot:
252 - hd
253 cloud_init_volume_name: iso
254 cloud_init_iface_up: ens3
255 volumes:
256 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200257 capacity: !os_env NODE_VOLUME_SIZE, 20
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300258 backing_store: cloudimage1604
259 format: qcow2
260 - name: cinder
261 capacity: 50
262 format: qcow2
263 - name: iso # Volume with name 'iso' will be used
264 # for store image with cloud-init metadata.
265 capacity: 1
266 format: raw
267 device: cdrom
268 bus: ide
269 cloudinit_meta_data: !include underlay--meta-data.yaml
270 cloudinit_user_data: !include underlay--user-data1604.yaml
271
272 interfaces: *interfaces
273 network_config: *network_config
274
275 - name: {{ HOSTNAME_CTL03 }}
276 role: salt_minion
277 params:
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200278 vcpu: !os_env SLAVE_NODE_CPU, 2
279 memory: !os_env SLAVE_NODE_MEMORY, 4096
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300280 boot:
281 - hd
282 cloud_init_volume_name: iso
283 cloud_init_iface_up: ens3
284 volumes:
285 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200286 capacity: !os_env NODE_VOLUME_SIZE, 20
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300287 backing_store: cloudimage1604
288 format: qcow2
289 - name: cinder
290 capacity: 50
291 format: qcow2
292 - name: iso # Volume with name 'iso' will be used
293 # for store image with cloud-init metadata.
294 capacity: 1
295 format: raw
296 device: cdrom
297 bus: ide
298 cloudinit_meta_data: !include underlay--meta-data.yaml
299 cloudinit_user_data: !include underlay--user-data1604.yaml
300
301 interfaces: *interfaces
302 network_config: *network_config
303
304 - name: {{ HOSTNAME_CMP01 }}
305 role: salt_minion
306 params:
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200307 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300308 memory: !os_env SLAVE_NODE_MEMORY, 4096
309 boot:
310 - hd
311 cloud_init_volume_name: iso
312 cloud_init_iface_up: ens3
313 volumes:
314 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200315 capacity: !os_env NODE_VOLUME_SIZE, 20
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300316 backing_store: cloudimage1604
317 format: qcow2
318 - name: iso # Volume with name 'iso' will be used
319 # for store image with cloud-init metadata.
320 capacity: 1
321 format: raw
322 device: cdrom
323 bus: ide
324 cloudinit_meta_data: !include underlay--meta-data.yaml
325 cloudinit_user_data: !include underlay--user-data1604.yaml
326
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200327 interfaces: *interfaces
328 network_config: *network_config
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300329
330 - name: {{ HOSTNAME_CMP02 }}
331 role: salt_minion
332 params:
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200333 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300334 memory: !os_env SLAVE_NODE_MEMORY, 4096
335 boot:
336 - hd
337 cloud_init_volume_name: iso
338 cloud_init_iface_up: ens3
339 volumes:
340 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200341 capacity: !os_env NODE_VOLUME_SIZE, 20
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300342 backing_store: cloudimage1604
343 format: qcow2
344 - name: iso # Volume with name 'iso' will be used
345 # for store image with cloud-init metadata.
346 capacity: 1
347 format: raw
348 device: cdrom
349 bus: ide
350 cloudinit_meta_data: !include underlay--meta-data.yaml
351 cloudinit_user_data: !include underlay--user-data1604.yaml
352
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200353 interfaces: *interfaces
354 network_config: *network_config
355
356 - name: {{ HOSTNAME_MON01 }}
357 role: salt_minion
358 params:
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200359 vcpu: !os_env SLAVE_NODE_CPU, 1
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200360 memory: !os_env SLAVE_NODE_MEMORY, 1024
361 boot:
362 - hd
363 cloud_init_volume_name: iso
364 cloud_init_iface_up: ens3
365 volumes:
366 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200367 capacity: !os_env NODE_VOLUME_SIZE, 20
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200368 backing_store: cloudimage1604
369 format: qcow2
370 - name: iso # Volume with name 'iso' will be used
371 # for store image with cloud-init metadata.
372 capacity: 1
373 format: raw
374 device: cdrom
375 bus: ide
376 cloudinit_meta_data: !include underlay--meta-data.yaml
377 cloudinit_user_data: !include underlay--user-data1604.yaml
378
379 interfaces: *interfaces
380 network_config: *network_config
381
382 - name: {{ HOSTNAME_MON02 }}
383 role: salt_minion
384 params:
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200385 vcpu: !os_env SLAVE_NODE_CPU, 1
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200386 memory: !os_env SLAVE_NODE_MEMORY, 1024
387 boot:
388 - hd
389 cloud_init_volume_name: iso
390 cloud_init_iface_up: ens3
391 volumes:
392 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200393 capacity: !os_env NODE_VOLUME_SIZE, 20
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200394 backing_store: cloudimage1604
395 format: qcow2
396 - name: iso # Volume with name 'iso' will be used
397 # for store image with cloud-init metadata.
398 capacity: 1
399 format: raw
400 device: cdrom
401 bus: ide
402 cloudinit_meta_data: !include underlay--meta-data.yaml
403 cloudinit_user_data: !include underlay--user-data1604.yaml
404
405 interfaces: *interfaces
406 network_config: *network_config
407
408 - name: {{ HOSTNAME_MON03 }}
409 role: salt_minion
410 params:
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200411 vcpu: !os_env SLAVE_NODE_CPU, 1
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200412 memory: !os_env SLAVE_NODE_MEMORY, 1024
413 boot:
414 - hd
415 cloud_init_volume_name: iso
416 cloud_init_iface_up: ens3
417 volumes:
418 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200419 capacity: !os_env NODE_VOLUME_SIZE, 20
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200420 backing_store: cloudimage1604
421 format: qcow2
422 - name: iso # Volume with name 'iso' will be used
423 # for store image with cloud-init metadata.
424 capacity: 1
425 format: raw
426 device: cdrom
427 bus: ide
428 cloudinit_meta_data: !include underlay--meta-data.yaml
429 cloudinit_user_data: !include underlay--user-data1604.yaml
430
431 interfaces: *interfaces
432 network_config: *network_config
433
434 - name: {{ HOSTNAME_NTW01 }}
435 role: salt_minion
436 params:
437 vcpu: !os_env SLAVE_NODE_CPU, 4
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200438 memory: !os_env SLAVE_NODE_MEMORY, 8192
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200439 boot:
440 - hd
441 cloud_init_volume_name: iso
442 cloud_init_iface_up: ens3
443 volumes:
444 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200445 capacity: !os_env NODE_VOLUME_SIZE, 20
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200446 backing_store: cloudimage1404
447 format: qcow2
448 - name: iso # Volume with name 'iso' will be used
449 # for store image with cloud-init metadata.
450 capacity: 1
451 format: raw
452 device: cdrom
453 bus: ide
454 cloudinit_meta_data: !include underlay--meta-data.yaml
455 cloudinit_user_data: !include underlay--user-data1404.yaml
456
457 interfaces: *interfaces
458 network_config: *network_config
459
460 - name: {{ HOSTNAME_NTW02 }}
461 role: salt_minion
462 params:
463 vcpu: !os_env SLAVE_NODE_CPU, 4
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200464 memory: !os_env SLAVE_NODE_MEMORY, 8192
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200465 boot:
466 - hd
467 cloud_init_volume_name: iso
468 cloud_init_iface_up: ens3
469 volumes:
470 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200471 capacity: !os_env NODE_VOLUME_SIZE, 20
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200472 backing_store: cloudimage1404
473 format: qcow2
474 - name: iso # Volume with name 'iso' will be used
475 # for store image with cloud-init metadata.
476 capacity: 1
477 format: raw
478 device: cdrom
479 bus: ide
480 cloudinit_meta_data: !include underlay--meta-data.yaml
481 cloudinit_user_data: !include underlay--user-data1404.yaml
482
483 interfaces: *interfaces
484 network_config: *network_config
485
486 - name: {{ HOSTNAME_NTW03 }}
487 role: salt_minion
488 params:
489 vcpu: !os_env SLAVE_NODE_CPU, 4
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200490 memory: !os_env SLAVE_NODE_MEMORY, 8192
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200491 boot:
492 - hd
493 cloud_init_volume_name: iso
494 cloud_init_iface_up: ens3
495 volumes:
496 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200497 capacity: !os_env NODE_VOLUME_SIZE, 20
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200498 backing_store: cloudimage1404
499 format: qcow2
500 - name: iso # Volume with name 'iso' will be used
501 # for store image with cloud-init metadata.
502 capacity: 1
503 format: raw
504 device: cdrom
505 bus: ide
506 cloudinit_meta_data: !include underlay--meta-data.yaml
507 cloudinit_user_data: !include underlay--user-data1404.yaml
508
509 interfaces: *interfaces
510 network_config: *network_config
511
512 - name: {{ HOSTNAME_PRX01 }}
513 role: salt_minion
514 params:
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200515 vcpu: !os_env SLAVE_NODE_CPU, 2
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200516 memory: !os_env SLAVE_NODE_MEMORY, 1024
517 boot:
518 - hd
519 cloud_init_volume_name: iso
520 cloud_init_iface_up: ens3
521 volumes:
522 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200523 capacity: !os_env NODE_VOLUME_SIZE, 20
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200524 backing_store: cloudimage1604
525 format: qcow2
526 - name: iso # Volume with name 'iso' will be used
527 # for store image with cloud-init metadata.
528 capacity: 1
529 format: raw
530 device: cdrom
531 bus: ide
532 cloudinit_meta_data: !include underlay--meta-data.yaml
533 cloudinit_user_data: !include underlay--user-data1604.yaml
534
535 interfaces: *interfaces
536 network_config: *network_config
Sergii Golovatiukc504a392017-05-22 21:41:06 +0200537
538 - name: {{ HOSTNAME_VSRX01 }}
539 role: vsrx
540 params:
541 vcpu: !os_env SLAVE_NODE_CPU, 2
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200542 memory: !os_env SLAVE_NODE_MEMORY, 512
Sergii Golovatiukc504a392017-05-22 21:41:06 +0200543 boot:
544 - hd
545 volumes:
546 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200547 capacity: !os_env NODE_VOLUME_SIZE, 10
Sergii Golovatiukc504a392017-05-22 21:41:06 +0200548 backing_store: vsrx_image
549 format: qcow2
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200550 #- name: iso
551 #- capacity: 1
552 #- format: raw
553 #- device: cdrom
554 #- bus: ide
555 #- cloudinit_user_data: !include juniper.conf
556
Sergii Golovatiukc504a392017-05-22 21:41:06 +0200557 interfaces:
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200558 - label: ge-0/0/0
559 l2_network_device: private
Sergii Golovatiukc504a392017-05-22 21:41:06 +0200560 interface_model: virtio
561 mac_address: 52:54:00:4e:b4:36
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200562 - label: ge-0/0/1
563 l2_network_device: public
Sergii Golovatiukc504a392017-05-22 21:41:06 +0200564 interface_model: virtio
565 mac_address: 52:54:00:e1:44:9d
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200566 - label: ge-0/0/2
567 l2_network_device: admin
568 interface_model: virtio
569 mac_address: 52:54:00:72:08:77