blob: 240b50b91834f2269a06fc98f3a14b794dba7868 [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
Dennis Dmitriev5ec4d572017-09-27 00:47:54 +030017{% set LAB_CONFIG_NAME = os_env('LAB_CONFIG_NAME', 'virtual-mcp11-k8s-contrail') %}
18{% set DOMAIN_NAME = os_env('DOMAIN_NAME', LAB_CONFIG_NAME) + '.local' %}
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +030019{% set HOSTNAME_CFG01 = os_env('HOSTNAME_CFG01', 'cfg01.' + DOMAIN_NAME) %}
20{% set HOSTNAME_CTL01 = os_env('HOSTNAME_CTL01', 'ctl01.' + DOMAIN_NAME) %}
21{% set HOSTNAME_CTL02 = os_env('HOSTNAME_CTL02', 'ctl02.' + DOMAIN_NAME) %}
22{% set HOSTNAME_CTL03 = os_env('HOSTNAME_CTL03', 'ctl03.' + DOMAIN_NAME) %}
23{% set HOSTNAME_CMP01 = os_env('HOSTNAME_CMP01', 'cmp01.' + DOMAIN_NAME) %}
24{% set HOSTNAME_CMP02 = os_env('HOSTNAME_CMP02', 'cmp02.' + DOMAIN_NAME) %}
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +020025{% set HOSTNAME_MON01 = os_env('HOSTNAME_MON01', 'mon01.' + DOMAIN_NAME) %}
26{% set HOSTNAME_MON02 = os_env('HOSTNAME_MON02', 'mon02.' + DOMAIN_NAME) %}
27{% set HOSTNAME_MON03 = os_env('HOSTNAME_MON03', 'mon03.' + DOMAIN_NAME) %}
28{% set HOSTNAME_NTW01 = os_env('HOSTNAME_NTW01', 'ntw01.' + DOMAIN_NAME) %}
29{% set HOSTNAME_NTW02 = os_env('HOSTNAME_NTW02', 'ntw02.' + DOMAIN_NAME) %}
30{% set HOSTNAME_NTW03 = os_env('HOSTNAME_NTW03', 'ntw03.' + DOMAIN_NAME) %}
31{% set HOSTNAME_PRX01 = os_env('HOSTNAME_PRX01', 'prx01.' + DOMAIN_NAME) %}
Dennis Dmitriev1e9f7ac2017-08-11 09:56:43 +030032{% set HOSTNAME_VSRX01 = os_env('HOSTNAME_VSRX01', 'vsrx01.' + DOMAIN_NAME) %}
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +030033
34template:
35 devops_settings:
36 env_name: {{ os_env('ENV_NAME', 'virtual-mcp11-k8s-contrail_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }}
37
38 address_pools:
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +030039
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +020040 private-pool01:
41 net: {{ os_env('PRIVATE_ADDRESS_POOL01', '172.16.10.0/24:24') }}
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +030042 params:
43 ip_reserved:
44 gateway: +1
45 l2_network_device: +1
46 default_{{ HOSTNAME_CFG01 }}: +100
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +020047 default_{{ HOSTNAME_CTL01 }}: +101
48 default_{{ HOSTNAME_CTL02 }}: +102
49 default_{{ HOSTNAME_CTL03 }}: +103
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +030050 default_{{ HOSTNAME_CMP01 }}: +105
51 default_{{ HOSTNAME_CMP02 }}: +106
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +020052 default_{{ HOSTNAME_MON01 }}: +107
53 default_{{ HOSTNAME_MON02 }}: +108
54 default_{{ HOSTNAME_MON03 }}: +109
55 default_{{ HOSTNAME_NTW01 }}: +110
56 default_{{ HOSTNAME_NTW02 }}: +111
57 default_{{ HOSTNAME_NTW03 }}: +112
58 default_{{ HOSTNAME_PRX01 }}: +121
59 default_{{ HOSTNAME_VSRX01 }}: +90
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +030060 ip_ranges:
61 dhcp: [+90, -10]
62
Sergii Golovatiukc504a392017-05-22 21:41:06 +020063 public-pool01:
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +020064 net: {{ os_env('PUBLIC_ADDRESS_POOL01', '192.168.10.0/24:24') }}
Sergii Golovatiukc504a392017-05-22 21:41:06 +020065 params:
66 ip_reserved:
67 gateway: +1
68 l2_network_device: +1
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +020069 default_{{ HOSTNAME_CFG01 }}: +100
70 default_{{ HOSTNAME_CTL01 }}: +101
71 default_{{ HOSTNAME_CTL02 }}: +102
72 default_{{ HOSTNAME_CTL03 }}: +103
73 default_{{ HOSTNAME_CMP01 }}: +105
74 default_{{ HOSTNAME_CMP02 }}: +106
75 default_{{ HOSTNAME_MON01 }}: +107
76 default_{{ HOSTNAME_MON02 }}: +108
77 default_{{ HOSTNAME_MON03 }}: +109
78 default_{{ HOSTNAME_NTW01 }}: +110
79 default_{{ HOSTNAME_NTW02 }}: +111
80 default_{{ HOSTNAME_NTW03 }}: +112
81 default_{{ HOSTNAME_PRX01 }}: +121
82 default_{{ HOSTNAME_VSRX01 }}: +90
83 ip_ranges:
84 dhcp: [+90, -10]
85
86 admin-pool01:
87 net: {{ os_env('ADMIN_ADDRESS_POOL01', '10.70.0.0/24:24') }}
88 params:
89 ip_reserved:
90 gateway: +1
91 l2_network_device: +1
Tatyana Leontovich3424bf62017-09-15 12:13:54 +030092 default_{{ HOSTNAME_CFG01 }}: +15
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +020093 default_{{ HOSTNAME_CTL01 }}: +101
94 default_{{ HOSTNAME_CTL02 }}: +102
95 default_{{ HOSTNAME_CTL03 }}: +103
96 default_{{ HOSTNAME_CMP01 }}: +105
97 default_{{ HOSTNAME_CMP02 }}: +106
98 default_{{ HOSTNAME_MON01 }}: +107
99 default_{{ HOSTNAME_MON02 }}: +108
100 default_{{ HOSTNAME_MON03 }}: +109
101 default_{{ HOSTNAME_NTW01 }}: +110
102 default_{{ HOSTNAME_NTW02 }}: +111
103 default_{{ HOSTNAME_NTW03 }}: +112
104 default_{{ HOSTNAME_PRX01 }}: +121
Tatyana Leontovich3424bf62017-09-15 12:13:54 +0300105 default_{{ HOSTNAME_VSRX01 }}: +90
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200106 ip_ranges:
Tatyana Leontovich3424bf62017-09-15 12:13:54 +0300107 dhcp: [+10, -10]
Sergii Golovatiukc504a392017-05-22 21:41:06 +0200108
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300109 groups:
110 - name: default
111 driver:
112 name: devops.driver.libvirt
113 params:
114 connection_string: !os_env CONNECTION_STRING, qemu:///system
115 storage_pool_name: !os_env STORAGE_POOL_NAME, default
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200116 stp: True
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300117 hpet: False
118 enable_acpi: true
119 use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true
Dennis Dmitrievb3fc4242017-07-14 16:01:51 +0300120 use_hugepages: !os_env DRIVER_USE_HUGEPAGES, false
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300121
122 network_pools:
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300123 private: private-pool01
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200124 public: public-pool01
125 admin: admin-pool01
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300126
127 l2_network_devices:
128 private:
129 address_pool: private-pool01
130 dhcp: true
131
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200132 public:
133 address_pool: public-pool01
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300134 dhcp: true
135 forward:
136 mode: nat
137
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200138 admin:
139 address_pool: admin-pool01
140 dhcp: true
Sergii Golovatiukc504a392017-05-22 21:41:06 +0200141
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300142 group_volumes:
143 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
144 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 +0200145 format: qcow2
146
147 - name: cloudimage1404
148 source_image: !os_env IMAGE_PATH1404
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300149 format: qcow2
150
Sergii Golovatiukc504a392017-05-22 21:41:06 +0200151 - name: vsrx_image
152 source_image: !os_env IMAGE_VSRX
153 format: qcow2
154
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300155 nodes:
156 - name: {{ HOSTNAME_CFG01 }}
157 role: salt_master
158 params:
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200159 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300160 memory: !os_env SLAVE_NODE_MEMORY, 2048
161 boot:
162 - hd
163 cloud_init_volume_name: iso
164 cloud_init_iface_up: ens3
165 volumes:
166 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200167 capacity: !os_env NODE_VOLUME_SIZE, 20
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300168 backing_store: cloudimage1604
169 format: qcow2
170 - name: iso # Volume with name 'iso' will be used
171 # for store image with cloud-init metadata.
172 capacity: 1
173 format: raw
174 device: cdrom
175 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300176 cloudinit_meta_data: *cloudinit_meta_data
177 cloudinit_user_data: *cloudinit_user_data_cfg01
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300178
179 interfaces:
180 - label: ens3
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200181 l2_network_device: public
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300182 interface_model: *interface_model
183 - label: ens4
184 l2_network_device: private
185 interface_model: *interface_model
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200186 - label: ens5
187 l2_network_device: admin
188 interface_model: *interface_model
189
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300190 network_config:
191 ens3:
192 networks:
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200193 - public
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300194 ens4:
195 networks:
196 - private
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200197 ens5:
198 networks:
199 - admin
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300200
201 - name: {{ HOSTNAME_CTL01 }}
202 role: salt_minion
203 params:
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200204 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovich3424bf62017-09-15 12:13:54 +0300205 memory: !os_env SLAVE_NODE_MEMORY, 2048
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300206 boot:
207 - hd
208 cloud_init_volume_name: iso
209 cloud_init_iface_up: ens3
210 volumes:
211 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200212 capacity: !os_env NODE_VOLUME_SIZE, 20
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300213 backing_store: cloudimage1604
214 format: qcow2
215 - name: cinder
216 capacity: 50
217 format: qcow2
218 - name: iso # Volume with name 'iso' will be used
219 # for store image with cloud-init metadata.
220 capacity: 1
221 format: raw
222 device: cdrom
223 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300224 cloudinit_meta_data: *cloudinit_meta_data
225 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300226
227 interfaces: &interfaces
228 - label: ens3
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200229 l2_network_device: public
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300230 interface_model: *interface_model
231 - label: ens4
232 l2_network_device: private
233 interface_model: *interface_model
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200234 - label: ens5
235 l2_network_device: admin
236 interface_model: *interface_model
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300237 network_config: &network_config
238 ens3:
239 networks:
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200240 - public
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300241 ens4:
242 networks:
243 - private
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200244 ens5:
245 networks:
246 - admin
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300247
248 - name: {{ HOSTNAME_CTL02 }}
249 role: salt_minion
250 params:
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200251 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovich3424bf62017-09-15 12:13:54 +0300252 memory: !os_env SLAVE_NODE_MEMORY, 2048
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300253 boot:
254 - hd
255 cloud_init_volume_name: iso
256 cloud_init_iface_up: ens3
257 volumes:
258 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200259 capacity: !os_env NODE_VOLUME_SIZE, 20
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300260 backing_store: cloudimage1604
261 format: qcow2
262 - name: cinder
263 capacity: 50
264 format: qcow2
265 - name: iso # Volume with name 'iso' will be used
266 # for store image with cloud-init metadata.
267 capacity: 1
268 format: raw
269 device: cdrom
270 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300271 cloudinit_meta_data: *cloudinit_meta_data
272 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300273
274 interfaces: *interfaces
275 network_config: *network_config
276
277 - name: {{ HOSTNAME_CTL03 }}
278 role: salt_minion
279 params:
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200280 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovich3424bf62017-09-15 12:13:54 +0300281 memory: !os_env SLAVE_NODE_MEMORY, 2048
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300282 boot:
283 - hd
284 cloud_init_volume_name: iso
285 cloud_init_iface_up: ens3
286 volumes:
287 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200288 capacity: !os_env NODE_VOLUME_SIZE, 20
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300289 backing_store: cloudimage1604
290 format: qcow2
291 - name: cinder
292 capacity: 50
293 format: qcow2
294 - name: iso # Volume with name 'iso' will be used
295 # for store image with cloud-init metadata.
296 capacity: 1
297 format: raw
298 device: cdrom
299 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300300 cloudinit_meta_data: *cloudinit_meta_data
301 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300302
303 interfaces: *interfaces
304 network_config: *network_config
305
306 - name: {{ HOSTNAME_CMP01 }}
307 role: salt_minion
308 params:
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200309 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovich3424bf62017-09-15 12:13:54 +0300310 memory: !os_env SLAVE_NODE_MEMORY, 2048
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300311 boot:
312 - hd
313 cloud_init_volume_name: iso
314 cloud_init_iface_up: ens3
315 volumes:
316 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200317 capacity: !os_env NODE_VOLUME_SIZE, 20
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300318 backing_store: cloudimage1604
319 format: qcow2
320 - name: iso # Volume with name 'iso' will be used
321 # for store image with cloud-init metadata.
322 capacity: 1
323 format: raw
324 device: cdrom
325 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300326 cloudinit_meta_data: *cloudinit_meta_data
327 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300328
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200329 interfaces: *interfaces
330 network_config: *network_config
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300331
332 - name: {{ HOSTNAME_CMP02 }}
333 role: salt_minion
334 params:
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200335 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovich3424bf62017-09-15 12:13:54 +0300336 memory: !os_env SLAVE_NODE_MEMORY, 2048
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300337 boot:
338 - hd
339 cloud_init_volume_name: iso
340 cloud_init_iface_up: ens3
341 volumes:
342 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200343 capacity: !os_env NODE_VOLUME_SIZE, 20
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300344 backing_store: cloudimage1604
345 format: qcow2
346 - name: iso # Volume with name 'iso' will be used
347 # for store image with cloud-init metadata.
348 capacity: 1
349 format: raw
350 device: cdrom
351 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300352 cloudinit_meta_data: *cloudinit_meta_data
353 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300354
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200355 interfaces: *interfaces
356 network_config: *network_config
357
358 - name: {{ HOSTNAME_MON01 }}
359 role: salt_minion
360 params:
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200361 vcpu: !os_env SLAVE_NODE_CPU, 1
Tatyana Leontovich0690eae2017-08-01 13:07:57 +0300362 memory: !os_env SLAVE_NODE_MEMORY, 3072
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200363 boot:
364 - hd
365 cloud_init_volume_name: iso
366 cloud_init_iface_up: ens3
367 volumes:
368 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200369 capacity: !os_env NODE_VOLUME_SIZE, 20
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200370 backing_store: cloudimage1604
371 format: qcow2
372 - name: iso # Volume with name 'iso' will be used
373 # for store image with cloud-init metadata.
374 capacity: 1
375 format: raw
376 device: cdrom
377 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300378 cloudinit_meta_data: *cloudinit_meta_data
379 cloudinit_user_data: *cloudinit_user_data_1604
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200380
381 interfaces: *interfaces
382 network_config: *network_config
383
384 - name: {{ HOSTNAME_MON02 }}
385 role: salt_minion
386 params:
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200387 vcpu: !os_env SLAVE_NODE_CPU, 1
Tatyana Leontovich0690eae2017-08-01 13:07:57 +0300388 memory: !os_env SLAVE_NODE_MEMORY, 3072
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200389 boot:
390 - hd
391 cloud_init_volume_name: iso
392 cloud_init_iface_up: ens3
393 volumes:
394 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200395 capacity: !os_env NODE_VOLUME_SIZE, 20
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200396 backing_store: cloudimage1604
397 format: qcow2
398 - name: iso # Volume with name 'iso' will be used
399 # for store image with cloud-init metadata.
400 capacity: 1
401 format: raw
402 device: cdrom
403 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300404 cloudinit_meta_data: *cloudinit_meta_data
405 cloudinit_user_data: *cloudinit_user_data_1604
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200406
407 interfaces: *interfaces
408 network_config: *network_config
409
410 - name: {{ HOSTNAME_MON03 }}
411 role: salt_minion
412 params:
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200413 vcpu: !os_env SLAVE_NODE_CPU, 1
Tatyana Leontovich0690eae2017-08-01 13:07:57 +0300414 memory: !os_env SLAVE_NODE_MEMORY, 3072
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200415 boot:
416 - hd
417 cloud_init_volume_name: iso
418 cloud_init_iface_up: ens3
419 volumes:
420 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200421 capacity: !os_env NODE_VOLUME_SIZE, 20
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200422 backing_store: cloudimage1604
423 format: qcow2
424 - name: iso # Volume with name 'iso' will be used
425 # for store image with cloud-init metadata.
426 capacity: 1
427 format: raw
428 device: cdrom
429 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300430 cloudinit_meta_data: *cloudinit_meta_data
431 cloudinit_user_data: *cloudinit_user_data_1604
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200432
433 interfaces: *interfaces
434 network_config: *network_config
435
436 - name: {{ HOSTNAME_NTW01 }}
437 role: salt_minion
438 params:
Dennis Dmitrievd8275e02017-08-11 13:34:34 +0300439 vcpu: !os_env SLAVE_NODE_CPU, 2
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200440 memory: !os_env SLAVE_NODE_MEMORY, 8192
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200441 boot:
442 - hd
443 cloud_init_volume_name: iso
444 cloud_init_iface_up: ens3
445 volumes:
446 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200447 capacity: !os_env NODE_VOLUME_SIZE, 20
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200448 backing_store: cloudimage1404
449 format: qcow2
450 - name: iso # Volume with name 'iso' will be used
451 # for store image with cloud-init metadata.
452 capacity: 1
453 format: raw
454 device: cdrom
455 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300456 cloudinit_meta_data: *cloudinit_meta_data
457 cloudinit_user_data: *cloudinit_user_data_1404
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200458
459 interfaces: *interfaces
460 network_config: *network_config
461
462 - name: {{ HOSTNAME_NTW02 }}
463 role: salt_minion
464 params:
Dennis Dmitrievd8275e02017-08-11 13:34:34 +0300465 vcpu: !os_env SLAVE_NODE_CPU, 2
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200466 memory: !os_env SLAVE_NODE_MEMORY, 8192
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200467 boot:
468 - hd
469 cloud_init_volume_name: iso
470 cloud_init_iface_up: ens3
471 volumes:
472 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200473 capacity: !os_env NODE_VOLUME_SIZE, 20
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200474 backing_store: cloudimage1404
475 format: qcow2
476 - name: iso # Volume with name 'iso' will be used
477 # for store image with cloud-init metadata.
478 capacity: 1
479 format: raw
480 device: cdrom
481 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300482 cloudinit_meta_data: *cloudinit_meta_data
483 cloudinit_user_data: *cloudinit_user_data_1404
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200484
485 interfaces: *interfaces
486 network_config: *network_config
487
488 - name: {{ HOSTNAME_NTW03 }}
489 role: salt_minion
490 params:
Dennis Dmitrievd8275e02017-08-11 13:34:34 +0300491 vcpu: !os_env SLAVE_NODE_CPU, 2
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200492 memory: !os_env SLAVE_NODE_MEMORY, 8192
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200493 boot:
494 - hd
495 cloud_init_volume_name: iso
496 cloud_init_iface_up: ens3
497 volumes:
498 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200499 capacity: !os_env NODE_VOLUME_SIZE, 20
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200500 backing_store: cloudimage1404
501 format: qcow2
502 - name: iso # Volume with name 'iso' will be used
503 # for store image with cloud-init metadata.
504 capacity: 1
505 format: raw
506 device: cdrom
507 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300508 cloudinit_meta_data: *cloudinit_meta_data
509 cloudinit_user_data: *cloudinit_user_data_1404
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200510
511 interfaces: *interfaces
512 network_config: *network_config
513
514 - name: {{ HOSTNAME_PRX01 }}
515 role: salt_minion
516 params:
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200517 vcpu: !os_env SLAVE_NODE_CPU, 2
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200518 memory: !os_env SLAVE_NODE_MEMORY, 1024
519 boot:
520 - hd
521 cloud_init_volume_name: iso
522 cloud_init_iface_up: ens3
523 volumes:
524 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200525 capacity: !os_env NODE_VOLUME_SIZE, 20
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200526 backing_store: cloudimage1604
527 format: qcow2
528 - name: iso # Volume with name 'iso' will be used
529 # for store image with cloud-init metadata.
530 capacity: 1
531 format: raw
532 device: cdrom
533 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300534 cloudinit_meta_data: *cloudinit_meta_data
535 cloudinit_user_data: *cloudinit_user_data_1604
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200536
537 interfaces: *interfaces
538 network_config: *network_config
Sergii Golovatiukc504a392017-05-22 21:41:06 +0200539
540 - name: {{ HOSTNAME_VSRX01 }}
541 role: vsrx
542 params:
Dennis Dmitrievcad2b5b2017-08-11 13:58:11 +0300543 vcpu: !os_env SLAVE_NODE_CPU, 2
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200544 memory: !os_env SLAVE_NODE_MEMORY, 512
Sergii Golovatiukc504a392017-05-22 21:41:06 +0200545 boot:
546 - hd
547 volumes:
548 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200549 capacity: !os_env NODE_VOLUME_SIZE, 10
Sergii Golovatiukc504a392017-05-22 21:41:06 +0200550 backing_store: vsrx_image
551 format: qcow2
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200552 #- name: iso
553 #- capacity: 1
554 #- format: raw
555 #- device: cdrom
556 #- bus: ide
557 #- cloudinit_user_data: !include juniper.conf
558
Sergii Golovatiukc504a392017-05-22 21:41:06 +0200559 interfaces:
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200560 - label: ge-0/0/0
561 l2_network_device: private
Sergii Golovatiuk6fd1bde2017-06-23 13:39:11 +0200562 interface_model: *interface_model
Sergii Golovatiukc504a392017-05-22 21:41:06 +0200563 mac_address: 52:54:00:4e:b4:36
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200564 - label: ge-0/0/1
565 l2_network_device: public
Sergii Golovatiuk6fd1bde2017-06-23 13:39:11 +0200566 interface_model: *interface_model
Sergii Golovatiukc504a392017-05-22 21:41:06 +0200567 mac_address: 52:54:00:e1:44:9d
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200568 - label: ge-0/0/2
569 l2_network_device: admin
Sergii Golovatiuk6fd1bde2017-06-23 13:39:11 +0200570 interface_model: *interface_model
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200571 mac_address: 52:54:00:72:08:77