blob: 60094c7928d710a2c049dfc8070f394f10b8505d [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.
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200144 # http://images.mirantis.com/ubuntu-16-04-x64-latest.qcow2 (preffered)
145 # or
146 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
147 source_image: {{ os_env('MCP_IMAGE_PATH1604', os_env('IMAGE_PATH1604')) }}
Dennis Dmitrievf00a3842018-01-24 16:44:26 +0200148 format: qcow2
149
150 - name: cfg01_day01_image # Pre-configured day01 image
151 source_image: {{ os_env('IMAGE_PATH_CFG01_DAY01', os_env('IMAGE_PATH1604')) }} # http://images.mirantis.com/cfg01-day01.qcow2 or fallback to IMAGE_PATH1604
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200152 format: qcow2
153
154 - name: cloudimage1404
155 source_image: !os_env IMAGE_PATH1404
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300156 format: qcow2
157
Sergii Golovatiukc504a392017-05-22 21:41:06 +0200158 - name: vsrx_image
159 source_image: !os_env IMAGE_VSRX
160 format: qcow2
161
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300162 nodes:
163 - name: {{ HOSTNAME_CFG01 }}
164 role: salt_master
165 params:
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200166 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitrievb1822792017-10-24 18:22:23 +0300167 memory: !os_env SLAVE_NODE_MEMORY, 4096
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300168 boot:
169 - hd
170 cloud_init_volume_name: iso
171 cloud_init_iface_up: ens3
172 volumes:
173 - name: system
Dennis Dmitrieveb466d42018-01-25 04:13:55 +0200174 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitrievf00a3842018-01-24 16:44:26 +0200175 backing_store: cfg01_day01_image
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300176 format: qcow2
177 - name: iso # Volume with name 'iso' will be used
178 # for store image with cloud-init metadata.
179 capacity: 1
180 format: raw
181 device: cdrom
182 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300183 cloudinit_meta_data: *cloudinit_meta_data
184 cloudinit_user_data: *cloudinit_user_data_cfg01
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300185
186 interfaces:
187 - label: ens3
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200188 l2_network_device: public
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300189 interface_model: *interface_model
190 - label: ens4
191 l2_network_device: private
192 interface_model: *interface_model
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200193 - label: ens5
194 l2_network_device: admin
195 interface_model: *interface_model
196
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300197 network_config:
198 ens3:
199 networks:
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200200 - public
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300201 ens4:
202 networks:
203 - private
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200204 ens5:
205 networks:
206 - admin
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300207
208 - name: {{ HOSTNAME_CTL01 }}
Victor Ryzhenkin66d39372017-09-28 19:25:48 +0400209 role: k8s_controller
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300210 params:
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200211 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovich3424bf62017-09-15 12:13:54 +0300212 memory: !os_env SLAVE_NODE_MEMORY, 2048
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300213 boot:
214 - hd
215 cloud_init_volume_name: iso
216 cloud_init_iface_up: ens3
217 volumes:
218 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200219 capacity: !os_env NODE_VOLUME_SIZE, 20
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300220 backing_store: cloudimage1604
221 format: qcow2
222 - name: cinder
223 capacity: 50
224 format: qcow2
225 - name: iso # Volume with name 'iso' will be used
226 # for store image with cloud-init metadata.
227 capacity: 1
228 format: raw
229 device: cdrom
230 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300231 cloudinit_meta_data: *cloudinit_meta_data
232 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300233
234 interfaces: &interfaces
235 - label: ens3
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200236 l2_network_device: public
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300237 interface_model: *interface_model
238 - label: ens4
239 l2_network_device: private
240 interface_model: *interface_model
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200241 - label: ens5
242 l2_network_device: admin
243 interface_model: *interface_model
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300244 network_config: &network_config
245 ens3:
246 networks:
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200247 - public
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300248 ens4:
249 networks:
250 - private
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200251 ens5:
252 networks:
253 - admin
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300254
255 - name: {{ HOSTNAME_CTL02 }}
256 role: salt_minion
257 params:
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200258 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovich3424bf62017-09-15 12:13:54 +0300259 memory: !os_env SLAVE_NODE_MEMORY, 2048
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300260 boot:
261 - hd
262 cloud_init_volume_name: iso
263 cloud_init_iface_up: ens3
264 volumes:
265 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200266 capacity: !os_env NODE_VOLUME_SIZE, 20
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300267 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 Dmitriev80a01802017-08-11 09:49:37 +0300278 cloudinit_meta_data: *cloudinit_meta_data
279 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300280
281 interfaces: *interfaces
282 network_config: *network_config
283
284 - name: {{ HOSTNAME_CTL03 }}
285 role: salt_minion
286 params:
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200287 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovich3424bf62017-09-15 12:13:54 +0300288 memory: !os_env SLAVE_NODE_MEMORY, 2048
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300289 boot:
290 - hd
291 cloud_init_volume_name: iso
292 cloud_init_iface_up: ens3
293 volumes:
294 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200295 capacity: !os_env NODE_VOLUME_SIZE, 20
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300296 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 Dmitriev80a01802017-08-11 09:49:37 +0300307 cloudinit_meta_data: *cloudinit_meta_data
308 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300309
310 interfaces: *interfaces
311 network_config: *network_config
312
313 - name: {{ HOSTNAME_CMP01 }}
314 role: salt_minion
315 params:
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200316 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovich3424bf62017-09-15 12:13:54 +0300317 memory: !os_env SLAVE_NODE_MEMORY, 2048
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300318 boot:
319 - hd
320 cloud_init_volume_name: iso
321 cloud_init_iface_up: ens3
322 volumes:
323 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200324 capacity: !os_env NODE_VOLUME_SIZE, 20
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300325 backing_store: cloudimage1604
326 format: qcow2
327 - name: iso # Volume with name 'iso' will be used
328 # for store image with cloud-init metadata.
329 capacity: 1
330 format: raw
331 device: cdrom
332 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300333 cloudinit_meta_data: *cloudinit_meta_data
334 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300335
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200336 interfaces: *interfaces
337 network_config: *network_config
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300338
339 - name: {{ HOSTNAME_CMP02 }}
340 role: salt_minion
341 params:
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200342 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovich3424bf62017-09-15 12:13:54 +0300343 memory: !os_env SLAVE_NODE_MEMORY, 2048
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300344 boot:
345 - hd
346 cloud_init_volume_name: iso
347 cloud_init_iface_up: ens3
348 volumes:
349 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200350 capacity: !os_env NODE_VOLUME_SIZE, 20
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300351 backing_store: cloudimage1604
352 format: qcow2
353 - name: iso # Volume with name 'iso' will be used
354 # for store image with cloud-init metadata.
355 capacity: 1
356 format: raw
357 device: cdrom
358 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300359 cloudinit_meta_data: *cloudinit_meta_data
360 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300361
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200362 interfaces: *interfaces
363 network_config: *network_config
364
365 - name: {{ HOSTNAME_MON01 }}
366 role: salt_minion
367 params:
Dennis Dmitriev462f8812017-11-14 14:43:21 +0200368 vcpu: {{ os_env('MON_NODE_CPU', 1) }}
369 memory: {{ os_env('MON_NODE_MEMORY', 3072) }}
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200370 boot:
371 - hd
372 cloud_init_volume_name: iso
373 cloud_init_iface_up: ens3
374 volumes:
375 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200376 capacity: !os_env NODE_VOLUME_SIZE, 20
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200377 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 Dmitriev80a01802017-08-11 09:49:37 +0300385 cloudinit_meta_data: *cloudinit_meta_data
386 cloudinit_user_data: *cloudinit_user_data_1604
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200387
388 interfaces: *interfaces
389 network_config: *network_config
390
391 - name: {{ HOSTNAME_MON02 }}
392 role: salt_minion
393 params:
Dennis Dmitriev462f8812017-11-14 14:43:21 +0200394 vcpu: {{ os_env('MON_NODE_CPU', 1) }}
395 memory: {{ os_env('MON_NODE_MEMORY', 3072) }}
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200396 boot:
397 - hd
398 cloud_init_volume_name: iso
399 cloud_init_iface_up: ens3
400 volumes:
401 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200402 capacity: !os_env NODE_VOLUME_SIZE, 20
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200403 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 Dmitriev80a01802017-08-11 09:49:37 +0300411 cloudinit_meta_data: *cloudinit_meta_data
412 cloudinit_user_data: *cloudinit_user_data_1604
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200413
414 interfaces: *interfaces
415 network_config: *network_config
416
417 - name: {{ HOSTNAME_MON03 }}
418 role: salt_minion
419 params:
Dennis Dmitriev462f8812017-11-14 14:43:21 +0200420 vcpu: {{ os_env('MON_NODE_CPU', 1) }}
421 memory: {{ os_env('MON_NODE_MEMORY', 3072) }}
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200422 boot:
423 - hd
424 cloud_init_volume_name: iso
425 cloud_init_iface_up: ens3
426 volumes:
427 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200428 capacity: !os_env NODE_VOLUME_SIZE, 20
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200429 backing_store: cloudimage1604
430 format: qcow2
431 - name: iso # Volume with name 'iso' will be used
432 # for store image with cloud-init metadata.
433 capacity: 1
434 format: raw
435 device: cdrom
436 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300437 cloudinit_meta_data: *cloudinit_meta_data
438 cloudinit_user_data: *cloudinit_user_data_1604
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200439
440 interfaces: *interfaces
441 network_config: *network_config
442
443 - name: {{ HOSTNAME_NTW01 }}
444 role: salt_minion
445 params:
Dennis Dmitrievd8275e02017-08-11 13:34:34 +0300446 vcpu: !os_env SLAVE_NODE_CPU, 2
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200447 memory: !os_env SLAVE_NODE_MEMORY, 8192
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200448 boot:
449 - hd
450 cloud_init_volume_name: iso
451 cloud_init_iface_up: ens3
452 volumes:
453 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200454 capacity: !os_env NODE_VOLUME_SIZE, 20
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200455 backing_store: cloudimage1404
456 format: qcow2
457 - name: iso # Volume with name 'iso' will be used
458 # for store image with cloud-init metadata.
459 capacity: 1
460 format: raw
461 device: cdrom
462 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300463 cloudinit_meta_data: *cloudinit_meta_data
464 cloudinit_user_data: *cloudinit_user_data_1404
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200465
466 interfaces: *interfaces
467 network_config: *network_config
468
469 - name: {{ HOSTNAME_NTW02 }}
470 role: salt_minion
471 params:
Dennis Dmitrievd8275e02017-08-11 13:34:34 +0300472 vcpu: !os_env SLAVE_NODE_CPU, 2
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200473 memory: !os_env SLAVE_NODE_MEMORY, 8192
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200474 boot:
475 - hd
476 cloud_init_volume_name: iso
477 cloud_init_iface_up: ens3
478 volumes:
479 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200480 capacity: !os_env NODE_VOLUME_SIZE, 20
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200481 backing_store: cloudimage1404
482 format: qcow2
483 - name: iso # Volume with name 'iso' will be used
484 # for store image with cloud-init metadata.
485 capacity: 1
486 format: raw
487 device: cdrom
488 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300489 cloudinit_meta_data: *cloudinit_meta_data
490 cloudinit_user_data: *cloudinit_user_data_1404
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200491
492 interfaces: *interfaces
493 network_config: *network_config
494
495 - name: {{ HOSTNAME_NTW03 }}
496 role: salt_minion
497 params:
Dennis Dmitrievd8275e02017-08-11 13:34:34 +0300498 vcpu: !os_env SLAVE_NODE_CPU, 2
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200499 memory: !os_env SLAVE_NODE_MEMORY, 8192
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200500 boot:
501 - hd
502 cloud_init_volume_name: iso
503 cloud_init_iface_up: ens3
504 volumes:
505 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200506 capacity: !os_env NODE_VOLUME_SIZE, 20
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200507 backing_store: cloudimage1404
508 format: qcow2
509 - name: iso # Volume with name 'iso' will be used
510 # for store image with cloud-init metadata.
511 capacity: 1
512 format: raw
513 device: cdrom
514 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300515 cloudinit_meta_data: *cloudinit_meta_data
516 cloudinit_user_data: *cloudinit_user_data_1404
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200517
518 interfaces: *interfaces
519 network_config: *network_config
520
521 - name: {{ HOSTNAME_PRX01 }}
522 role: salt_minion
523 params:
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200524 vcpu: !os_env SLAVE_NODE_CPU, 2
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200525 memory: !os_env SLAVE_NODE_MEMORY, 1024
526 boot:
527 - hd
528 cloud_init_volume_name: iso
529 cloud_init_iface_up: ens3
530 volumes:
531 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200532 capacity: !os_env NODE_VOLUME_SIZE, 20
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200533 backing_store: cloudimage1604
534 format: qcow2
535 - name: iso # Volume with name 'iso' will be used
536 # for store image with cloud-init metadata.
537 capacity: 1
538 format: raw
539 device: cdrom
540 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300541 cloudinit_meta_data: *cloudinit_meta_data
542 cloudinit_user_data: *cloudinit_user_data_1604
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200543
544 interfaces: *interfaces
545 network_config: *network_config
Sergii Golovatiukc504a392017-05-22 21:41:06 +0200546
547 - name: {{ HOSTNAME_VSRX01 }}
548 role: vsrx
549 params:
Dennis Dmitrievcad2b5b2017-08-11 13:58:11 +0300550 vcpu: !os_env SLAVE_NODE_CPU, 2
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200551 memory: !os_env SLAVE_NODE_MEMORY, 512
Sergii Golovatiukc504a392017-05-22 21:41:06 +0200552 boot:
553 - hd
554 volumes:
555 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200556 capacity: !os_env NODE_VOLUME_SIZE, 10
Sergii Golovatiukc504a392017-05-22 21:41:06 +0200557 backing_store: vsrx_image
558 format: qcow2
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200559 #- name: iso
560 #- capacity: 1
561 #- format: raw
562 #- device: cdrom
563 #- bus: ide
564 #- cloudinit_user_data: !include juniper.conf
565
Sergii Golovatiukc504a392017-05-22 21:41:06 +0200566 interfaces:
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200567 - label: ge-0/0/0
568 l2_network_device: private
Sergii Golovatiuk6fd1bde2017-06-23 13:39:11 +0200569 interface_model: *interface_model
Sergii Golovatiukc504a392017-05-22 21:41:06 +0200570 mac_address: 52:54:00:4e:b4:36
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200571 - label: ge-0/0/1
572 l2_network_device: public
Sergii Golovatiuk6fd1bde2017-06-23 13:39:11 +0200573 interface_model: *interface_model
Sergii Golovatiukc504a392017-05-22 21:41:06 +0200574 mac_address: 52:54:00:e1:44:9d
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200575 - label: ge-0/0/2
576 l2_network_device: admin
Sergii Golovatiuk6fd1bde2017-06-23 13:39:11 +0200577 interface_model: *interface_model
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200578 mac_address: 52:54:00:72:08:77