blob: 9689ed8b586477c25c8738d1b781b8a797e79f32 [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.
Dennis Dmitriev492813e2017-08-09 15:08:58 +03002{% set REPOSITORY_SUITE = os_env('REPOSITORY_SUITE', 'testing') %}
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +03003
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:
Sergii Golovatiuk6fd1bde2017-06-23 13:39:11 +020011 - &interface_model {{ os_env('INTERFACE_MODEL', 'e1000') }}
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +030012 - &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) %}
Dennis Dmitriev1e9f7ac2017-08-11 09:56:43 +030031{% 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
Tatyana Leontovich3424bf62017-09-15 12:13:54 +030091 default_{{ HOSTNAME_CFG01 }}: +15
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +020092 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
Tatyana Leontovich3424bf62017-09-15 12:13:54 +0300104 default_{{ HOSTNAME_VSRX01 }}: +90
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200105 ip_ranges:
Tatyana Leontovich3424bf62017-09-15 12:13:54 +0300106 dhcp: [+10, -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
Dennis Dmitrievb3fc4242017-07-14 16:01:51 +0300119 use_hugepages: !os_env DRIVER_USE_HUGEPAGES, false
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300120
121 network_pools:
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300122 private: private-pool01
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200123 public: public-pool01
124 admin: admin-pool01
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300125
126 l2_network_devices:
127 private:
128 address_pool: private-pool01
129 dhcp: true
130
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200131 public:
132 address_pool: public-pool01
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300133 dhcp: true
134 forward:
135 mode: nat
136
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200137 admin:
138 address_pool: admin-pool01
139 dhcp: true
Sergii Golovatiukc504a392017-05-22 21:41:06 +0200140
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300141 group_volumes:
142 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
143 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 +0200144 format: qcow2
145
146 - name: cloudimage1404
147 source_image: !os_env IMAGE_PATH1404
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300148 format: qcow2
149
Sergii Golovatiukc504a392017-05-22 21:41:06 +0200150 - name: vsrx_image
151 source_image: !os_env IMAGE_VSRX
152 format: qcow2
153
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300154 nodes:
155 - name: {{ HOSTNAME_CFG01 }}
156 role: salt_master
157 params:
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200158 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300159 memory: !os_env SLAVE_NODE_MEMORY, 2048
160 boot:
161 - hd
162 cloud_init_volume_name: iso
163 cloud_init_iface_up: ens3
164 volumes:
165 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200166 capacity: !os_env NODE_VOLUME_SIZE, 20
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300167 backing_store: cloudimage1604
168 format: qcow2
169 - name: iso # Volume with name 'iso' will be used
170 # for store image with cloud-init metadata.
171 capacity: 1
172 format: raw
173 device: cdrom
174 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300175 cloudinit_meta_data: *cloudinit_meta_data
176 cloudinit_user_data: *cloudinit_user_data_cfg01
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300177
178 interfaces:
179 - label: ens3
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200180 l2_network_device: public
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300181 interface_model: *interface_model
182 - label: ens4
183 l2_network_device: private
184 interface_model: *interface_model
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200185 - label: ens5
186 l2_network_device: admin
187 interface_model: *interface_model
188
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300189 network_config:
190 ens3:
191 networks:
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200192 - public
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300193 ens4:
194 networks:
195 - private
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200196 ens5:
197 networks:
198 - admin
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300199
200 - name: {{ HOSTNAME_CTL01 }}
201 role: salt_minion
202 params:
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200203 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovich3424bf62017-09-15 12:13:54 +0300204 memory: !os_env SLAVE_NODE_MEMORY, 2048
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300205 boot:
206 - hd
207 cloud_init_volume_name: iso
208 cloud_init_iface_up: ens3
209 volumes:
210 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200211 capacity: !os_env NODE_VOLUME_SIZE, 20
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300212 backing_store: cloudimage1604
213 format: qcow2
214 - name: cinder
215 capacity: 50
216 format: qcow2
217 - name: iso # Volume with name 'iso' will be used
218 # for store image with cloud-init metadata.
219 capacity: 1
220 format: raw
221 device: cdrom
222 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300223 cloudinit_meta_data: *cloudinit_meta_data
224 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300225
226 interfaces: &interfaces
227 - label: ens3
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200228 l2_network_device: public
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300229 interface_model: *interface_model
230 - label: ens4
231 l2_network_device: private
232 interface_model: *interface_model
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200233 - label: ens5
234 l2_network_device: admin
235 interface_model: *interface_model
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300236 network_config: &network_config
237 ens3:
238 networks:
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200239 - public
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300240 ens4:
241 networks:
242 - private
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200243 ens5:
244 networks:
245 - admin
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300246
247 - name: {{ HOSTNAME_CTL02 }}
248 role: salt_minion
249 params:
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200250 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovich3424bf62017-09-15 12:13:54 +0300251 memory: !os_env SLAVE_NODE_MEMORY, 2048
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300252 boot:
253 - hd
254 cloud_init_volume_name: iso
255 cloud_init_iface_up: ens3
256 volumes:
257 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200258 capacity: !os_env NODE_VOLUME_SIZE, 20
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300259 backing_store: cloudimage1604
260 format: qcow2
261 - name: cinder
262 capacity: 50
263 format: qcow2
264 - name: iso # Volume with name 'iso' will be used
265 # for store image with cloud-init metadata.
266 capacity: 1
267 format: raw
268 device: cdrom
269 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300270 cloudinit_meta_data: *cloudinit_meta_data
271 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300272
273 interfaces: *interfaces
274 network_config: *network_config
275
276 - name: {{ HOSTNAME_CTL03 }}
277 role: salt_minion
278 params:
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200279 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovich3424bf62017-09-15 12:13:54 +0300280 memory: !os_env SLAVE_NODE_MEMORY, 2048
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300281 boot:
282 - hd
283 cloud_init_volume_name: iso
284 cloud_init_iface_up: ens3
285 volumes:
286 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200287 capacity: !os_env NODE_VOLUME_SIZE, 20
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300288 backing_store: cloudimage1604
289 format: qcow2
290 - name: cinder
291 capacity: 50
292 format: qcow2
293 - name: iso # Volume with name 'iso' will be used
294 # for store image with cloud-init metadata.
295 capacity: 1
296 format: raw
297 device: cdrom
298 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300299 cloudinit_meta_data: *cloudinit_meta_data
300 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300301
302 interfaces: *interfaces
303 network_config: *network_config
304
305 - name: {{ HOSTNAME_CMP01 }}
306 role: salt_minion
307 params:
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200308 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovich3424bf62017-09-15 12:13:54 +0300309 memory: !os_env SLAVE_NODE_MEMORY, 2048
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300310 boot:
311 - hd
312 cloud_init_volume_name: iso
313 cloud_init_iface_up: ens3
314 volumes:
315 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200316 capacity: !os_env NODE_VOLUME_SIZE, 20
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300317 backing_store: cloudimage1604
318 format: qcow2
319 - name: iso # Volume with name 'iso' will be used
320 # for store image with cloud-init metadata.
321 capacity: 1
322 format: raw
323 device: cdrom
324 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300325 cloudinit_meta_data: *cloudinit_meta_data
326 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300327
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200328 interfaces: *interfaces
329 network_config: *network_config
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300330
331 - name: {{ HOSTNAME_CMP02 }}
332 role: salt_minion
333 params:
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200334 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovich3424bf62017-09-15 12:13:54 +0300335 memory: !os_env SLAVE_NODE_MEMORY, 2048
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300336 boot:
337 - hd
338 cloud_init_volume_name: iso
339 cloud_init_iface_up: ens3
340 volumes:
341 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200342 capacity: !os_env NODE_VOLUME_SIZE, 20
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300343 backing_store: cloudimage1604
344 format: qcow2
345 - name: iso # Volume with name 'iso' will be used
346 # for store image with cloud-init metadata.
347 capacity: 1
348 format: raw
349 device: cdrom
350 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300351 cloudinit_meta_data: *cloudinit_meta_data
352 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300353
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200354 interfaces: *interfaces
355 network_config: *network_config
356
357 - name: {{ HOSTNAME_MON01 }}
358 role: salt_minion
359 params:
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200360 vcpu: !os_env SLAVE_NODE_CPU, 1
Tatyana Leontovich0690eae2017-08-01 13:07:57 +0300361 memory: !os_env SLAVE_NODE_MEMORY, 3072
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200362 boot:
363 - hd
364 cloud_init_volume_name: iso
365 cloud_init_iface_up: ens3
366 volumes:
367 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200368 capacity: !os_env NODE_VOLUME_SIZE, 20
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200369 backing_store: cloudimage1604
370 format: qcow2
371 - name: iso # Volume with name 'iso' will be used
372 # for store image with cloud-init metadata.
373 capacity: 1
374 format: raw
375 device: cdrom
376 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300377 cloudinit_meta_data: *cloudinit_meta_data
378 cloudinit_user_data: *cloudinit_user_data_1604
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200379
380 interfaces: *interfaces
381 network_config: *network_config
382
383 - name: {{ HOSTNAME_MON02 }}
384 role: salt_minion
385 params:
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200386 vcpu: !os_env SLAVE_NODE_CPU, 1
Tatyana Leontovich0690eae2017-08-01 13:07:57 +0300387 memory: !os_env SLAVE_NODE_MEMORY, 3072
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200388 boot:
389 - hd
390 cloud_init_volume_name: iso
391 cloud_init_iface_up: ens3
392 volumes:
393 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200394 capacity: !os_env NODE_VOLUME_SIZE, 20
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200395 backing_store: cloudimage1604
396 format: qcow2
397 - name: iso # Volume with name 'iso' will be used
398 # for store image with cloud-init metadata.
399 capacity: 1
400 format: raw
401 device: cdrom
402 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300403 cloudinit_meta_data: *cloudinit_meta_data
404 cloudinit_user_data: *cloudinit_user_data_1604
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200405
406 interfaces: *interfaces
407 network_config: *network_config
408
409 - name: {{ HOSTNAME_MON03 }}
410 role: salt_minion
411 params:
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200412 vcpu: !os_env SLAVE_NODE_CPU, 1
Tatyana Leontovich0690eae2017-08-01 13:07:57 +0300413 memory: !os_env SLAVE_NODE_MEMORY, 3072
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200414 boot:
415 - hd
416 cloud_init_volume_name: iso
417 cloud_init_iface_up: ens3
418 volumes:
419 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200420 capacity: !os_env NODE_VOLUME_SIZE, 20
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200421 backing_store: cloudimage1604
422 format: qcow2
423 - name: iso # Volume with name 'iso' will be used
424 # for store image with cloud-init metadata.
425 capacity: 1
426 format: raw
427 device: cdrom
428 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300429 cloudinit_meta_data: *cloudinit_meta_data
430 cloudinit_user_data: *cloudinit_user_data_1604
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200431
432 interfaces: *interfaces
433 network_config: *network_config
434
435 - name: {{ HOSTNAME_NTW01 }}
436 role: salt_minion
437 params:
Dennis Dmitrievd8275e02017-08-11 13:34:34 +0300438 vcpu: !os_env SLAVE_NODE_CPU, 2
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200439 memory: !os_env SLAVE_NODE_MEMORY, 8192
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200440 boot:
441 - hd
442 cloud_init_volume_name: iso
443 cloud_init_iface_up: ens3
444 volumes:
445 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200446 capacity: !os_env NODE_VOLUME_SIZE, 20
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200447 backing_store: cloudimage1404
448 format: qcow2
449 - name: iso # Volume with name 'iso' will be used
450 # for store image with cloud-init metadata.
451 capacity: 1
452 format: raw
453 device: cdrom
454 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300455 cloudinit_meta_data: *cloudinit_meta_data
456 cloudinit_user_data: *cloudinit_user_data_1404
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200457
458 interfaces: *interfaces
459 network_config: *network_config
460
461 - name: {{ HOSTNAME_NTW02 }}
462 role: salt_minion
463 params:
Dennis Dmitrievd8275e02017-08-11 13:34:34 +0300464 vcpu: !os_env SLAVE_NODE_CPU, 2
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200465 memory: !os_env SLAVE_NODE_MEMORY, 8192
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200466 boot:
467 - hd
468 cloud_init_volume_name: iso
469 cloud_init_iface_up: ens3
470 volumes:
471 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200472 capacity: !os_env NODE_VOLUME_SIZE, 20
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200473 backing_store: cloudimage1404
474 format: qcow2
475 - name: iso # Volume with name 'iso' will be used
476 # for store image with cloud-init metadata.
477 capacity: 1
478 format: raw
479 device: cdrom
480 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300481 cloudinit_meta_data: *cloudinit_meta_data
482 cloudinit_user_data: *cloudinit_user_data_1404
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200483
484 interfaces: *interfaces
485 network_config: *network_config
486
487 - name: {{ HOSTNAME_NTW03 }}
488 role: salt_minion
489 params:
Dennis Dmitrievd8275e02017-08-11 13:34:34 +0300490 vcpu: !os_env SLAVE_NODE_CPU, 2
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200491 memory: !os_env SLAVE_NODE_MEMORY, 8192
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200492 boot:
493 - hd
494 cloud_init_volume_name: iso
495 cloud_init_iface_up: ens3
496 volumes:
497 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200498 capacity: !os_env NODE_VOLUME_SIZE, 20
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200499 backing_store: cloudimage1404
500 format: qcow2
501 - name: iso # Volume with name 'iso' will be used
502 # for store image with cloud-init metadata.
503 capacity: 1
504 format: raw
505 device: cdrom
506 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300507 cloudinit_meta_data: *cloudinit_meta_data
508 cloudinit_user_data: *cloudinit_user_data_1404
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200509
510 interfaces: *interfaces
511 network_config: *network_config
512
513 - name: {{ HOSTNAME_PRX01 }}
514 role: salt_minion
515 params:
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200516 vcpu: !os_env SLAVE_NODE_CPU, 2
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200517 memory: !os_env SLAVE_NODE_MEMORY, 1024
518 boot:
519 - hd
520 cloud_init_volume_name: iso
521 cloud_init_iface_up: ens3
522 volumes:
523 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200524 capacity: !os_env NODE_VOLUME_SIZE, 20
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200525 backing_store: cloudimage1604
526 format: qcow2
527 - name: iso # Volume with name 'iso' will be used
528 # for store image with cloud-init metadata.
529 capacity: 1
530 format: raw
531 device: cdrom
532 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300533 cloudinit_meta_data: *cloudinit_meta_data
534 cloudinit_user_data: *cloudinit_user_data_1604
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200535
536 interfaces: *interfaces
537 network_config: *network_config
Sergii Golovatiukc504a392017-05-22 21:41:06 +0200538
539 - name: {{ HOSTNAME_VSRX01 }}
540 role: vsrx
541 params:
Dennis Dmitrievcad2b5b2017-08-11 13:58:11 +0300542 vcpu: !os_env SLAVE_NODE_CPU, 2
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200543 memory: !os_env SLAVE_NODE_MEMORY, 512
Sergii Golovatiukc504a392017-05-22 21:41:06 +0200544 boot:
545 - hd
546 volumes:
547 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200548 capacity: !os_env NODE_VOLUME_SIZE, 10
Sergii Golovatiukc504a392017-05-22 21:41:06 +0200549 backing_store: vsrx_image
550 format: qcow2
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200551 #- name: iso
552 #- capacity: 1
553 #- format: raw
554 #- device: cdrom
555 #- bus: ide
556 #- cloudinit_user_data: !include juniper.conf
557
Sergii Golovatiukc504a392017-05-22 21:41:06 +0200558 interfaces:
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200559 - label: ge-0/0/0
560 l2_network_device: private
Sergii Golovatiuk6fd1bde2017-06-23 13:39:11 +0200561 interface_model: *interface_model
Sergii Golovatiukc504a392017-05-22 21:41:06 +0200562 mac_address: 52:54:00:4e:b4:36
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200563 - label: ge-0/0/1
564 l2_network_device: public
Sergii Golovatiuk6fd1bde2017-06-23 13:39:11 +0200565 interface_model: *interface_model
Sergii Golovatiukc504a392017-05-22 21:41:06 +0200566 mac_address: 52:54:00:e1:44:9d
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200567 - label: ge-0/0/2
568 l2_network_device: admin
Sergii Golovatiuk6fd1bde2017-06-23 13:39:11 +0200569 interface_model: *interface_model
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200570 mac_address: 52:54:00:72:08:77