blob: af1b8e60073183d3ec2a4ec82beae1b63a1b37ab [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 Dmitrievf00a3842018-01-24 16:44:26 +0200144 source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
145 format: qcow2
146
147 - name: cfg01_day01_image # Pre-configured day01 image
148 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 +0200149 format: qcow2
150
151 - name: cloudimage1404
152 source_image: !os_env IMAGE_PATH1404
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300153 format: qcow2
154
Sergii Golovatiukc504a392017-05-22 21:41:06 +0200155 - name: vsrx_image
156 source_image: !os_env IMAGE_VSRX
157 format: qcow2
158
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300159 nodes:
160 - name: {{ HOSTNAME_CFG01 }}
161 role: salt_master
162 params:
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200163 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitrievb1822792017-10-24 18:22:23 +0300164 memory: !os_env SLAVE_NODE_MEMORY, 4096
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300165 boot:
166 - hd
167 cloud_init_volume_name: iso
168 cloud_init_iface_up: ens3
169 volumes:
170 - name: system
Dennis Dmitrieveb466d42018-01-25 04:13:55 +0200171 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitrievf00a3842018-01-24 16:44:26 +0200172 backing_store: cfg01_day01_image
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300173 format: qcow2
174 - name: iso # Volume with name 'iso' will be used
175 # for store image with cloud-init metadata.
176 capacity: 1
177 format: raw
178 device: cdrom
179 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300180 cloudinit_meta_data: *cloudinit_meta_data
181 cloudinit_user_data: *cloudinit_user_data_cfg01
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300182
183 interfaces:
184 - label: ens3
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200185 l2_network_device: public
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300186 interface_model: *interface_model
187 - label: ens4
188 l2_network_device: private
189 interface_model: *interface_model
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200190 - label: ens5
191 l2_network_device: admin
192 interface_model: *interface_model
193
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300194 network_config:
195 ens3:
196 networks:
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200197 - public
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300198 ens4:
199 networks:
200 - private
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200201 ens5:
202 networks:
203 - admin
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300204
205 - name: {{ HOSTNAME_CTL01 }}
Victor Ryzhenkin66d39372017-09-28 19:25:48 +0400206 role: k8s_controller
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300207 params:
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200208 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovich3424bf62017-09-15 12:13:54 +0300209 memory: !os_env SLAVE_NODE_MEMORY, 2048
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300210 boot:
211 - hd
212 cloud_init_volume_name: iso
213 cloud_init_iface_up: ens3
214 volumes:
215 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200216 capacity: !os_env NODE_VOLUME_SIZE, 20
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300217 backing_store: cloudimage1604
218 format: qcow2
219 - name: cinder
220 capacity: 50
221 format: qcow2
222 - name: iso # Volume with name 'iso' will be used
223 # for store image with cloud-init metadata.
224 capacity: 1
225 format: raw
226 device: cdrom
227 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300228 cloudinit_meta_data: *cloudinit_meta_data
229 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300230
231 interfaces: &interfaces
232 - label: ens3
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200233 l2_network_device: public
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300234 interface_model: *interface_model
235 - label: ens4
236 l2_network_device: private
237 interface_model: *interface_model
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200238 - label: ens5
239 l2_network_device: admin
240 interface_model: *interface_model
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300241 network_config: &network_config
242 ens3:
243 networks:
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200244 - public
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300245 ens4:
246 networks:
247 - private
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200248 ens5:
249 networks:
250 - admin
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300251
252 - name: {{ HOSTNAME_CTL02 }}
253 role: salt_minion
254 params:
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200255 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovich3424bf62017-09-15 12:13:54 +0300256 memory: !os_env SLAVE_NODE_MEMORY, 2048
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300257 boot:
258 - hd
259 cloud_init_volume_name: iso
260 cloud_init_iface_up: ens3
261 volumes:
262 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200263 capacity: !os_env NODE_VOLUME_SIZE, 20
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300264 backing_store: cloudimage1604
265 format: qcow2
266 - name: cinder
267 capacity: 50
268 format: qcow2
269 - name: iso # Volume with name 'iso' will be used
270 # for store image with cloud-init metadata.
271 capacity: 1
272 format: raw
273 device: cdrom
274 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300275 cloudinit_meta_data: *cloudinit_meta_data
276 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300277
278 interfaces: *interfaces
279 network_config: *network_config
280
281 - name: {{ HOSTNAME_CTL03 }}
282 role: salt_minion
283 params:
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200284 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovich3424bf62017-09-15 12:13:54 +0300285 memory: !os_env SLAVE_NODE_MEMORY, 2048
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300286 boot:
287 - hd
288 cloud_init_volume_name: iso
289 cloud_init_iface_up: ens3
290 volumes:
291 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200292 capacity: !os_env NODE_VOLUME_SIZE, 20
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300293 backing_store: cloudimage1604
294 format: qcow2
295 - name: cinder
296 capacity: 50
297 format: qcow2
298 - name: iso # Volume with name 'iso' will be used
299 # for store image with cloud-init metadata.
300 capacity: 1
301 format: raw
302 device: cdrom
303 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300304 cloudinit_meta_data: *cloudinit_meta_data
305 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300306
307 interfaces: *interfaces
308 network_config: *network_config
309
310 - name: {{ HOSTNAME_CMP01 }}
311 role: salt_minion
312 params:
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200313 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovich3424bf62017-09-15 12:13:54 +0300314 memory: !os_env SLAVE_NODE_MEMORY, 2048
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300315 boot:
316 - hd
317 cloud_init_volume_name: iso
318 cloud_init_iface_up: ens3
319 volumes:
320 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200321 capacity: !os_env NODE_VOLUME_SIZE, 20
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300322 backing_store: cloudimage1604
323 format: qcow2
324 - name: iso # Volume with name 'iso' will be used
325 # for store image with cloud-init metadata.
326 capacity: 1
327 format: raw
328 device: cdrom
329 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300330 cloudinit_meta_data: *cloudinit_meta_data
331 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300332
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200333 interfaces: *interfaces
334 network_config: *network_config
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300335
336 - name: {{ HOSTNAME_CMP02 }}
337 role: salt_minion
338 params:
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200339 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovich3424bf62017-09-15 12:13:54 +0300340 memory: !os_env SLAVE_NODE_MEMORY, 2048
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300341 boot:
342 - hd
343 cloud_init_volume_name: iso
344 cloud_init_iface_up: ens3
345 volumes:
346 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200347 capacity: !os_env NODE_VOLUME_SIZE, 20
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300348 backing_store: cloudimage1604
349 format: qcow2
350 - name: iso # Volume with name 'iso' will be used
351 # for store image with cloud-init metadata.
352 capacity: 1
353 format: raw
354 device: cdrom
355 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300356 cloudinit_meta_data: *cloudinit_meta_data
357 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300358
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200359 interfaces: *interfaces
360 network_config: *network_config
361
362 - name: {{ HOSTNAME_MON01 }}
363 role: salt_minion
364 params:
Dennis Dmitriev462f8812017-11-14 14:43:21 +0200365 vcpu: {{ os_env('MON_NODE_CPU', 1) }}
366 memory: {{ os_env('MON_NODE_MEMORY', 3072) }}
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200367 boot:
368 - hd
369 cloud_init_volume_name: iso
370 cloud_init_iface_up: ens3
371 volumes:
372 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200373 capacity: !os_env NODE_VOLUME_SIZE, 20
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200374 backing_store: cloudimage1604
375 format: qcow2
376 - name: iso # Volume with name 'iso' will be used
377 # for store image with cloud-init metadata.
378 capacity: 1
379 format: raw
380 device: cdrom
381 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300382 cloudinit_meta_data: *cloudinit_meta_data
383 cloudinit_user_data: *cloudinit_user_data_1604
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200384
385 interfaces: *interfaces
386 network_config: *network_config
387
388 - name: {{ HOSTNAME_MON02 }}
389 role: salt_minion
390 params:
Dennis Dmitriev462f8812017-11-14 14:43:21 +0200391 vcpu: {{ os_env('MON_NODE_CPU', 1) }}
392 memory: {{ os_env('MON_NODE_MEMORY', 3072) }}
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200393 boot:
394 - hd
395 cloud_init_volume_name: iso
396 cloud_init_iface_up: ens3
397 volumes:
398 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200399 capacity: !os_env NODE_VOLUME_SIZE, 20
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200400 backing_store: cloudimage1604
401 format: qcow2
402 - name: iso # Volume with name 'iso' will be used
403 # for store image with cloud-init metadata.
404 capacity: 1
405 format: raw
406 device: cdrom
407 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300408 cloudinit_meta_data: *cloudinit_meta_data
409 cloudinit_user_data: *cloudinit_user_data_1604
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200410
411 interfaces: *interfaces
412 network_config: *network_config
413
414 - name: {{ HOSTNAME_MON03 }}
415 role: salt_minion
416 params:
Dennis Dmitriev462f8812017-11-14 14:43:21 +0200417 vcpu: {{ os_env('MON_NODE_CPU', 1) }}
418 memory: {{ os_env('MON_NODE_MEMORY', 3072) }}
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200419 boot:
420 - hd
421 cloud_init_volume_name: iso
422 cloud_init_iface_up: ens3
423 volumes:
424 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200425 capacity: !os_env NODE_VOLUME_SIZE, 20
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200426 backing_store: cloudimage1604
427 format: qcow2
428 - name: iso # Volume with name 'iso' will be used
429 # for store image with cloud-init metadata.
430 capacity: 1
431 format: raw
432 device: cdrom
433 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300434 cloudinit_meta_data: *cloudinit_meta_data
435 cloudinit_user_data: *cloudinit_user_data_1604
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200436
437 interfaces: *interfaces
438 network_config: *network_config
439
440 - name: {{ HOSTNAME_NTW01 }}
441 role: salt_minion
442 params:
Dennis Dmitrievd8275e02017-08-11 13:34:34 +0300443 vcpu: !os_env SLAVE_NODE_CPU, 2
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200444 memory: !os_env SLAVE_NODE_MEMORY, 8192
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200445 boot:
446 - hd
447 cloud_init_volume_name: iso
448 cloud_init_iface_up: ens3
449 volumes:
450 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200451 capacity: !os_env NODE_VOLUME_SIZE, 20
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200452 backing_store: cloudimage1404
453 format: qcow2
454 - name: iso # Volume with name 'iso' will be used
455 # for store image with cloud-init metadata.
456 capacity: 1
457 format: raw
458 device: cdrom
459 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300460 cloudinit_meta_data: *cloudinit_meta_data
461 cloudinit_user_data: *cloudinit_user_data_1404
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200462
463 interfaces: *interfaces
464 network_config: *network_config
465
466 - name: {{ HOSTNAME_NTW02 }}
467 role: salt_minion
468 params:
Dennis Dmitrievd8275e02017-08-11 13:34:34 +0300469 vcpu: !os_env SLAVE_NODE_CPU, 2
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200470 memory: !os_env SLAVE_NODE_MEMORY, 8192
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200471 boot:
472 - hd
473 cloud_init_volume_name: iso
474 cloud_init_iface_up: ens3
475 volumes:
476 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200477 capacity: !os_env NODE_VOLUME_SIZE, 20
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200478 backing_store: cloudimage1404
479 format: qcow2
480 - name: iso # Volume with name 'iso' will be used
481 # for store image with cloud-init metadata.
482 capacity: 1
483 format: raw
484 device: cdrom
485 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300486 cloudinit_meta_data: *cloudinit_meta_data
487 cloudinit_user_data: *cloudinit_user_data_1404
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200488
489 interfaces: *interfaces
490 network_config: *network_config
491
492 - name: {{ HOSTNAME_NTW03 }}
493 role: salt_minion
494 params:
Dennis Dmitrievd8275e02017-08-11 13:34:34 +0300495 vcpu: !os_env SLAVE_NODE_CPU, 2
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200496 memory: !os_env SLAVE_NODE_MEMORY, 8192
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200497 boot:
498 - hd
499 cloud_init_volume_name: iso
500 cloud_init_iface_up: ens3
501 volumes:
502 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200503 capacity: !os_env NODE_VOLUME_SIZE, 20
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200504 backing_store: cloudimage1404
505 format: qcow2
506 - name: iso # Volume with name 'iso' will be used
507 # for store image with cloud-init metadata.
508 capacity: 1
509 format: raw
510 device: cdrom
511 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300512 cloudinit_meta_data: *cloudinit_meta_data
513 cloudinit_user_data: *cloudinit_user_data_1404
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200514
515 interfaces: *interfaces
516 network_config: *network_config
517
518 - name: {{ HOSTNAME_PRX01 }}
519 role: salt_minion
520 params:
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200521 vcpu: !os_env SLAVE_NODE_CPU, 2
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200522 memory: !os_env SLAVE_NODE_MEMORY, 1024
523 boot:
524 - hd
525 cloud_init_volume_name: iso
526 cloud_init_iface_up: ens3
527 volumes:
528 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200529 capacity: !os_env NODE_VOLUME_SIZE, 20
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200530 backing_store: cloudimage1604
531 format: qcow2
532 - name: iso # Volume with name 'iso' will be used
533 # for store image with cloud-init metadata.
534 capacity: 1
535 format: raw
536 device: cdrom
537 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300538 cloudinit_meta_data: *cloudinit_meta_data
539 cloudinit_user_data: *cloudinit_user_data_1604
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200540
541 interfaces: *interfaces
542 network_config: *network_config
Sergii Golovatiukc504a392017-05-22 21:41:06 +0200543
544 - name: {{ HOSTNAME_VSRX01 }}
545 role: vsrx
546 params:
Dennis Dmitrievcad2b5b2017-08-11 13:58:11 +0300547 vcpu: !os_env SLAVE_NODE_CPU, 2
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200548 memory: !os_env SLAVE_NODE_MEMORY, 512
Sergii Golovatiukc504a392017-05-22 21:41:06 +0200549 boot:
550 - hd
551 volumes:
552 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200553 capacity: !os_env NODE_VOLUME_SIZE, 10
Sergii Golovatiukc504a392017-05-22 21:41:06 +0200554 backing_store: vsrx_image
555 format: qcow2
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200556 #- name: iso
557 #- capacity: 1
558 #- format: raw
559 #- device: cdrom
560 #- bus: ide
561 #- cloudinit_user_data: !include juniper.conf
562
Sergii Golovatiukc504a392017-05-22 21:41:06 +0200563 interfaces:
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200564 - label: ge-0/0/0
565 l2_network_device: private
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:4e:b4:36
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200568 - label: ge-0/0/1
569 l2_network_device: public
Sergii Golovatiuk6fd1bde2017-06-23 13:39:11 +0200570 interface_model: *interface_model
Sergii Golovatiukc504a392017-05-22 21:41:06 +0200571 mac_address: 52:54:00:e1:44:9d
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200572 - label: ge-0/0/2
573 l2_network_device: admin
Sergii Golovatiuk6fd1bde2017-06-23 13:39:11 +0200574 interface_model: *interface_model
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200575 mac_address: 52:54:00:72:08:77