blob: 33b68d76d087fe8908a23b552c1640d99f153e4d [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:
Victor Ryzhenkind93a4482018-04-09 15:20:42 +040011# e1000 is not able to serve with multicasts, so keepalived is not
12# working correctly. in any contrail model virtio model
13# should be used.
14 - &interface_model {{ os_env('INTERFACE_MODEL', 'virtio') }}
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +030015 - &cloudinit_meta_data {{ CLOUDINIT_META_DATA }}
16 - &cloudinit_user_data_cfg01 {{ CLOUDINIT_USER_DATA_CFG01 }}
17 - &cloudinit_user_data_1604 {{ CLOUDINIT_USER_DATA_1604 }}
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +020018 - &cloudinit_user_data_1404 {{ CLOUDINIT_USER_DATA_1404 }}
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +030019
Dennis Dmitriev5ec4d572017-09-27 00:47:54 +030020{% set LAB_CONFIG_NAME = os_env('LAB_CONFIG_NAME', 'virtual-mcp11-k8s-contrail') %}
21{% set DOMAIN_NAME = os_env('DOMAIN_NAME', LAB_CONFIG_NAME) + '.local' %}
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +030022{% set HOSTNAME_CFG01 = os_env('HOSTNAME_CFG01', 'cfg01.' + DOMAIN_NAME) %}
23{% set HOSTNAME_CTL01 = os_env('HOSTNAME_CTL01', 'ctl01.' + DOMAIN_NAME) %}
24{% set HOSTNAME_CTL02 = os_env('HOSTNAME_CTL02', 'ctl02.' + DOMAIN_NAME) %}
25{% set HOSTNAME_CTL03 = os_env('HOSTNAME_CTL03', 'ctl03.' + DOMAIN_NAME) %}
26{% set HOSTNAME_CMP01 = os_env('HOSTNAME_CMP01', 'cmp01.' + DOMAIN_NAME) %}
27{% set HOSTNAME_CMP02 = os_env('HOSTNAME_CMP02', 'cmp02.' + DOMAIN_NAME) %}
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +020028{% set HOSTNAME_MON01 = os_env('HOSTNAME_MON01', 'mon01.' + DOMAIN_NAME) %}
29{% set HOSTNAME_MON02 = os_env('HOSTNAME_MON02', 'mon02.' + DOMAIN_NAME) %}
30{% set HOSTNAME_MON03 = os_env('HOSTNAME_MON03', 'mon03.' + DOMAIN_NAME) %}
31{% set HOSTNAME_NTW01 = os_env('HOSTNAME_NTW01', 'ntw01.' + DOMAIN_NAME) %}
32{% set HOSTNAME_NTW02 = os_env('HOSTNAME_NTW02', 'ntw02.' + DOMAIN_NAME) %}
33{% set HOSTNAME_NTW03 = os_env('HOSTNAME_NTW03', 'ntw03.' + DOMAIN_NAME) %}
34{% set HOSTNAME_PRX01 = os_env('HOSTNAME_PRX01', 'prx01.' + DOMAIN_NAME) %}
Dennis Dmitriev1e9f7ac2017-08-11 09:56:43 +030035{% set HOSTNAME_VSRX01 = os_env('HOSTNAME_VSRX01', 'vsrx01.' + DOMAIN_NAME) %}
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +030036
37template:
38 devops_settings:
39 env_name: {{ os_env('ENV_NAME', 'virtual-mcp11-k8s-contrail_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }}
40
41 address_pools:
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +030042
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +020043 private-pool01:
44 net: {{ os_env('PRIVATE_ADDRESS_POOL01', '172.16.10.0/24:24') }}
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +030045 params:
46 ip_reserved:
47 gateway: +1
48 l2_network_device: +1
49 default_{{ HOSTNAME_CFG01 }}: +100
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +020050 default_{{ HOSTNAME_CTL01 }}: +101
51 default_{{ HOSTNAME_CTL02 }}: +102
52 default_{{ HOSTNAME_CTL03 }}: +103
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +030053 default_{{ HOSTNAME_CMP01 }}: +105
54 default_{{ HOSTNAME_CMP02 }}: +106
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +020055 default_{{ HOSTNAME_MON01 }}: +107
56 default_{{ HOSTNAME_MON02 }}: +108
57 default_{{ HOSTNAME_MON03 }}: +109
Tatyanka Leontovichd67a38d2018-06-08 19:13:49 +000058 default_{{ HOSTNAME_NTW01 }}: +110
59 default_{{ HOSTNAME_NTW02 }}: +111
60 default_{{ HOSTNAME_NTW03 }}: +112
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +020061 default_{{ HOSTNAME_PRX01 }}: +121
62 default_{{ HOSTNAME_VSRX01 }}: +90
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +030063 ip_ranges:
64 dhcp: [+90, -10]
65
Sergii Golovatiukc504a392017-05-22 21:41:06 +020066 public-pool01:
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +020067 net: {{ os_env('PUBLIC_ADDRESS_POOL01', '192.168.10.0/24:24') }}
Sergii Golovatiukc504a392017-05-22 21:41:06 +020068 params:
69 ip_reserved:
70 gateway: +1
71 l2_network_device: +1
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +020072 default_{{ HOSTNAME_CFG01 }}: +100
73 default_{{ HOSTNAME_CTL01 }}: +101
74 default_{{ HOSTNAME_CTL02 }}: +102
75 default_{{ HOSTNAME_CTL03 }}: +103
76 default_{{ HOSTNAME_CMP01 }}: +105
77 default_{{ HOSTNAME_CMP02 }}: +106
78 default_{{ HOSTNAME_MON01 }}: +107
79 default_{{ HOSTNAME_MON02 }}: +108
80 default_{{ HOSTNAME_MON03 }}: +109
Tatyanka Leontovichd67a38d2018-06-08 19:13:49 +000081 default_{{ HOSTNAME_NTW01 }}: +110
82 default_{{ HOSTNAME_NTW02 }}: +111
83 default_{{ HOSTNAME_NTW03 }}: +112
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +020084 default_{{ HOSTNAME_PRX01 }}: +121
85 default_{{ HOSTNAME_VSRX01 }}: +90
86 ip_ranges:
87 dhcp: [+90, -10]
88
89 admin-pool01:
90 net: {{ os_env('ADMIN_ADDRESS_POOL01', '10.70.0.0/24:24') }}
91 params:
92 ip_reserved:
93 gateway: +1
94 l2_network_device: +1
Tatyana Leontovich3424bf62017-09-15 12:13:54 +030095 default_{{ HOSTNAME_CFG01 }}: +15
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +020096 default_{{ HOSTNAME_CTL01 }}: +101
97 default_{{ HOSTNAME_CTL02 }}: +102
98 default_{{ HOSTNAME_CTL03 }}: +103
99 default_{{ HOSTNAME_CMP01 }}: +105
100 default_{{ HOSTNAME_CMP02 }}: +106
101 default_{{ HOSTNAME_MON01 }}: +107
102 default_{{ HOSTNAME_MON02 }}: +108
103 default_{{ HOSTNAME_MON03 }}: +109
Tatyanka Leontovichd67a38d2018-06-08 19:13:49 +0000104 default_{{ HOSTNAME_NTW01 }}: +110
105 default_{{ HOSTNAME_NTW02 }}: +111
106 default_{{ HOSTNAME_NTW03 }}: +112
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200107 default_{{ HOSTNAME_PRX01 }}: +121
Tatyana Leontovich3424bf62017-09-15 12:13:54 +0300108 default_{{ HOSTNAME_VSRX01 }}: +90
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200109 ip_ranges:
Tatyana Leontovich3424bf62017-09-15 12:13:54 +0300110 dhcp: [+10, -10]
Sergii Golovatiukc504a392017-05-22 21:41:06 +0200111
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300112 groups:
113 - name: default
114 driver:
115 name: devops.driver.libvirt
116 params:
117 connection_string: !os_env CONNECTION_STRING, qemu:///system
118 storage_pool_name: !os_env STORAGE_POOL_NAME, default
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200119 stp: True
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300120 hpet: False
121 enable_acpi: true
122 use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true
Dennis Dmitrievb3fc4242017-07-14 16:01:51 +0300123 use_hugepages: !os_env DRIVER_USE_HUGEPAGES, false
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300124
125 network_pools:
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300126 private: private-pool01
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200127 public: public-pool01
128 admin: admin-pool01
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300129
130 l2_network_devices:
131 private:
132 address_pool: private-pool01
133 dhcp: true
134
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200135 public:
136 address_pool: public-pool01
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300137 dhcp: true
138 forward:
139 mode: nat
140
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200141 admin:
142 address_pool: admin-pool01
143 dhcp: true
Sergii Golovatiukc504a392017-05-22 21:41:06 +0200144
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300145 group_volumes:
146 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
Dennis Dmitriev6f71cfd2018-01-31 14:17:28 +0200147 # http://images.mirantis.com/ubuntu-16-04-x64-latest.qcow2 (preffered)
148 # or
149 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
150 source_image: {{ os_env('MCP_IMAGE_PATH1604', os_env('IMAGE_PATH1604')) }}
Dennis Dmitrievf00a3842018-01-24 16:44:26 +0200151 format: qcow2
152
153 - name: cfg01_day01_image # Pre-configured day01 image
154 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 +0200155 format: qcow2
156
157 - name: cloudimage1404
158 source_image: !os_env IMAGE_PATH1404
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300159 format: qcow2
160
Sergii Golovatiukc504a392017-05-22 21:41:06 +0200161 - name: vsrx_image
162 source_image: !os_env IMAGE_VSRX
163 format: qcow2
164
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300165 nodes:
166 - name: {{ HOSTNAME_CFG01 }}
167 role: salt_master
168 params:
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200169 vcpu: !os_env SLAVE_NODE_CPU, 2
Dennis Dmitriev75e250f2018-02-26 17:13:59 +0200170 memory: !os_env SLAVE_NODE_MEMORY, 8192
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300171 boot:
172 - hd
173 cloud_init_volume_name: iso
174 cloud_init_iface_up: ens3
175 volumes:
176 - name: system
Dennis Dmitrieveb466d42018-01-25 04:13:55 +0200177 capacity: !os_env NODE_VOLUME_SIZE, 150
Dennis Dmitrievf00a3842018-01-24 16:44:26 +0200178 backing_store: cfg01_day01_image
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300179 format: qcow2
180 - name: iso # Volume with name 'iso' will be used
181 # for store image with cloud-init metadata.
182 capacity: 1
183 format: raw
184 device: cdrom
185 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300186 cloudinit_meta_data: *cloudinit_meta_data
187 cloudinit_user_data: *cloudinit_user_data_cfg01
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300188
189 interfaces:
190 - label: ens3
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200191 l2_network_device: public
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300192 interface_model: *interface_model
193 - label: ens4
194 l2_network_device: private
195 interface_model: *interface_model
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200196 - label: ens5
197 l2_network_device: admin
198 interface_model: *interface_model
199
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300200 network_config:
201 ens3:
202 networks:
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200203 - public
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300204 ens4:
205 networks:
206 - private
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200207 ens5:
208 networks:
209 - admin
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300210
211 - name: {{ HOSTNAME_CTL01 }}
Victor Ryzhenkin66d39372017-09-28 19:25:48 +0400212 role: k8s_controller
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300213 params:
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200214 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovich3424bf62017-09-15 12:13:54 +0300215 memory: !os_env SLAVE_NODE_MEMORY, 2048
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300216 boot:
217 - hd
218 cloud_init_volume_name: iso
219 cloud_init_iface_up: ens3
220 volumes:
221 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200222 capacity: !os_env NODE_VOLUME_SIZE, 20
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300223 backing_store: cloudimage1604
224 format: qcow2
225 - name: cinder
226 capacity: 50
227 format: qcow2
228 - name: iso # Volume with name 'iso' will be used
229 # for store image with cloud-init metadata.
230 capacity: 1
231 format: raw
232 device: cdrom
233 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300234 cloudinit_meta_data: *cloudinit_meta_data
235 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300236
237 interfaces: &interfaces
238 - label: ens3
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200239 l2_network_device: public
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300240 interface_model: *interface_model
241 - label: ens4
242 l2_network_device: private
243 interface_model: *interface_model
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200244 - label: ens5
245 l2_network_device: admin
246 interface_model: *interface_model
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300247 network_config: &network_config
248 ens3:
249 networks:
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200250 - public
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300251 ens4:
252 networks:
253 - private
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200254 ens5:
255 networks:
256 - admin
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300257
258 - name: {{ HOSTNAME_CTL02 }}
259 role: salt_minion
260 params:
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200261 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovich3424bf62017-09-15 12:13:54 +0300262 memory: !os_env SLAVE_NODE_MEMORY, 2048
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300263 boot:
264 - hd
265 cloud_init_volume_name: iso
266 cloud_init_iface_up: ens3
267 volumes:
268 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200269 capacity: !os_env NODE_VOLUME_SIZE, 20
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300270 backing_store: cloudimage1604
271 format: qcow2
272 - name: cinder
273 capacity: 50
274 format: qcow2
275 - name: iso # Volume with name 'iso' will be used
276 # for store image with cloud-init metadata.
277 capacity: 1
278 format: raw
279 device: cdrom
280 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300281 cloudinit_meta_data: *cloudinit_meta_data
282 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300283
284 interfaces: *interfaces
285 network_config: *network_config
286
287 - name: {{ HOSTNAME_CTL03 }}
288 role: salt_minion
289 params:
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200290 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovich3424bf62017-09-15 12:13:54 +0300291 memory: !os_env SLAVE_NODE_MEMORY, 2048
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300292 boot:
293 - hd
294 cloud_init_volume_name: iso
295 cloud_init_iface_up: ens3
296 volumes:
297 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200298 capacity: !os_env NODE_VOLUME_SIZE, 20
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300299 backing_store: cloudimage1604
300 format: qcow2
301 - name: cinder
302 capacity: 50
303 format: qcow2
304 - name: iso # Volume with name 'iso' will be used
305 # for store image with cloud-init metadata.
306 capacity: 1
307 format: raw
308 device: cdrom
309 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300310 cloudinit_meta_data: *cloudinit_meta_data
311 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300312
313 interfaces: *interfaces
314 network_config: *network_config
315
316 - name: {{ HOSTNAME_CMP01 }}
317 role: salt_minion
318 params:
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200319 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovich3424bf62017-09-15 12:13:54 +0300320 memory: !os_env SLAVE_NODE_MEMORY, 2048
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300321 boot:
322 - hd
323 cloud_init_volume_name: iso
324 cloud_init_iface_up: ens3
325 volumes:
326 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200327 capacity: !os_env NODE_VOLUME_SIZE, 20
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300328 backing_store: cloudimage1604
329 format: qcow2
330 - name: iso # Volume with name 'iso' will be used
331 # for store image with cloud-init metadata.
332 capacity: 1
333 format: raw
334 device: cdrom
335 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300336 cloudinit_meta_data: *cloudinit_meta_data
337 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300338
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200339 interfaces: *interfaces
340 network_config: *network_config
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300341
342 - name: {{ HOSTNAME_CMP02 }}
343 role: salt_minion
344 params:
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200345 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovich3424bf62017-09-15 12:13:54 +0300346 memory: !os_env SLAVE_NODE_MEMORY, 2048
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300347 boot:
348 - hd
349 cloud_init_volume_name: iso
350 cloud_init_iface_up: ens3
351 volumes:
352 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200353 capacity: !os_env NODE_VOLUME_SIZE, 20
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300354 backing_store: cloudimage1604
355 format: qcow2
356 - name: iso # Volume with name 'iso' will be used
357 # for store image with cloud-init metadata.
358 capacity: 1
359 format: raw
360 device: cdrom
361 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300362 cloudinit_meta_data: *cloudinit_meta_data
363 cloudinit_user_data: *cloudinit_user_data_1604
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300364
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200365 interfaces: *interfaces
366 network_config: *network_config
367
368 - name: {{ HOSTNAME_MON01 }}
369 role: salt_minion
370 params:
Dennis Dmitriev462f8812017-11-14 14:43:21 +0200371 vcpu: {{ os_env('MON_NODE_CPU', 1) }}
Dennis Dmitriev75e250f2018-02-26 17:13:59 +0200372 memory: {{ os_env('MON_NODE_MEMORY', 8192) }}
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200373 boot:
374 - hd
375 cloud_init_volume_name: iso
376 cloud_init_iface_up: ens3
377 volumes:
378 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200379 capacity: !os_env NODE_VOLUME_SIZE, 20
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200380 backing_store: cloudimage1604
381 format: qcow2
382 - name: iso # Volume with name 'iso' will be used
383 # for store image with cloud-init metadata.
384 capacity: 1
385 format: raw
386 device: cdrom
387 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300388 cloudinit_meta_data: *cloudinit_meta_data
389 cloudinit_user_data: *cloudinit_user_data_1604
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200390
391 interfaces: *interfaces
392 network_config: *network_config
393
394 - name: {{ HOSTNAME_MON02 }}
395 role: salt_minion
396 params:
Dennis Dmitriev462f8812017-11-14 14:43:21 +0200397 vcpu: {{ os_env('MON_NODE_CPU', 1) }}
Dennis Dmitriev75e250f2018-02-26 17:13:59 +0200398 memory: {{ os_env('MON_NODE_MEMORY', 8192) }}
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200399 boot:
400 - hd
401 cloud_init_volume_name: iso
402 cloud_init_iface_up: ens3
403 volumes:
404 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200405 capacity: !os_env NODE_VOLUME_SIZE, 20
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200406 backing_store: cloudimage1604
407 format: qcow2
408 - name: iso # Volume with name 'iso' will be used
409 # for store image with cloud-init metadata.
410 capacity: 1
411 format: raw
412 device: cdrom
413 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300414 cloudinit_meta_data: *cloudinit_meta_data
415 cloudinit_user_data: *cloudinit_user_data_1604
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200416
417 interfaces: *interfaces
418 network_config: *network_config
419
420 - name: {{ HOSTNAME_MON03 }}
421 role: salt_minion
422 params:
Dennis Dmitriev462f8812017-11-14 14:43:21 +0200423 vcpu: {{ os_env('MON_NODE_CPU', 1) }}
Dennis Dmitriev75e250f2018-02-26 17:13:59 +0200424 memory: {{ os_env('MON_NODE_MEMORY', 8192) }}
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200425 boot:
426 - hd
427 cloud_init_volume_name: iso
428 cloud_init_iface_up: ens3
429 volumes:
430 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200431 capacity: !os_env NODE_VOLUME_SIZE, 20
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200432 backing_store: cloudimage1604
433 format: qcow2
434 - name: iso # Volume with name 'iso' will be used
435 # for store image with cloud-init metadata.
436 capacity: 1
437 format: raw
438 device: cdrom
439 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300440 cloudinit_meta_data: *cloudinit_meta_data
441 cloudinit_user_data: *cloudinit_user_data_1604
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200442
443 interfaces: *interfaces
444 network_config: *network_config
445
446 - name: {{ HOSTNAME_NTW01 }}
447 role: salt_minion
448 params:
Dennis Dmitrievd8275e02017-08-11 13:34:34 +0300449 vcpu: !os_env SLAVE_NODE_CPU, 2
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200450 memory: !os_env SLAVE_NODE_MEMORY, 8192
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200451 boot:
452 - hd
453 cloud_init_volume_name: iso
454 cloud_init_iface_up: ens3
455 volumes:
456 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200457 capacity: !os_env NODE_VOLUME_SIZE, 20
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200458 backing_store: cloudimage1404
459 format: qcow2
460 - name: iso # Volume with name 'iso' will be used
461 # for store image with cloud-init metadata.
462 capacity: 1
463 format: raw
464 device: cdrom
465 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300466 cloudinit_meta_data: *cloudinit_meta_data
467 cloudinit_user_data: *cloudinit_user_data_1404
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200468
469 interfaces: *interfaces
470 network_config: *network_config
471
472 - name: {{ HOSTNAME_NTW02 }}
473 role: salt_minion
474 params:
Dennis Dmitrievd8275e02017-08-11 13:34:34 +0300475 vcpu: !os_env SLAVE_NODE_CPU, 2
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200476 memory: !os_env SLAVE_NODE_MEMORY, 8192
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200477 boot:
478 - hd
479 cloud_init_volume_name: iso
480 cloud_init_iface_up: ens3
481 volumes:
482 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200483 capacity: !os_env NODE_VOLUME_SIZE, 20
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200484 backing_store: cloudimage1404
485 format: qcow2
486 - name: iso # Volume with name 'iso' will be used
487 # for store image with cloud-init metadata.
488 capacity: 1
489 format: raw
490 device: cdrom
491 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300492 cloudinit_meta_data: *cloudinit_meta_data
493 cloudinit_user_data: *cloudinit_user_data_1404
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200494
495 interfaces: *interfaces
496 network_config: *network_config
497
498 - name: {{ HOSTNAME_NTW03 }}
499 role: salt_minion
500 params:
Dennis Dmitrievd8275e02017-08-11 13:34:34 +0300501 vcpu: !os_env SLAVE_NODE_CPU, 2
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200502 memory: !os_env SLAVE_NODE_MEMORY, 8192
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200503 boot:
504 - hd
505 cloud_init_volume_name: iso
506 cloud_init_iface_up: ens3
507 volumes:
508 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200509 capacity: !os_env NODE_VOLUME_SIZE, 20
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200510 backing_store: cloudimage1404
511 format: qcow2
512 - name: iso # Volume with name 'iso' will be used
513 # for store image with cloud-init metadata.
514 capacity: 1
515 format: raw
516 device: cdrom
517 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300518 cloudinit_meta_data: *cloudinit_meta_data
519 cloudinit_user_data: *cloudinit_user_data_1404
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200520
521 interfaces: *interfaces
522 network_config: *network_config
523
524 - name: {{ HOSTNAME_PRX01 }}
525 role: salt_minion
526 params:
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200527 vcpu: !os_env SLAVE_NODE_CPU, 2
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200528 memory: !os_env SLAVE_NODE_MEMORY, 1024
529 boot:
530 - hd
531 cloud_init_volume_name: iso
532 cloud_init_iface_up: ens3
533 volumes:
534 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200535 capacity: !os_env NODE_VOLUME_SIZE, 20
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200536 backing_store: cloudimage1604
537 format: qcow2
538 - name: iso # Volume with name 'iso' will be used
539 # for store image with cloud-init metadata.
540 capacity: 1
541 format: raw
542 device: cdrom
543 bus: ide
Dennis Dmitriev80a01802017-08-11 09:49:37 +0300544 cloudinit_meta_data: *cloudinit_meta_data
545 cloudinit_user_data: *cloudinit_user_data_1604
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200546
547 interfaces: *interfaces
548 network_config: *network_config
Sergii Golovatiukc504a392017-05-22 21:41:06 +0200549
550 - name: {{ HOSTNAME_VSRX01 }}
551 role: vsrx
552 params:
Dennis Dmitrievcad2b5b2017-08-11 13:58:11 +0300553 vcpu: !os_env SLAVE_NODE_CPU, 2
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200554 memory: !os_env SLAVE_NODE_MEMORY, 512
Sergii Golovatiukc504a392017-05-22 21:41:06 +0200555 boot:
556 - hd
557 volumes:
558 - name: system
Sergii Golovatiuk8f679ab2017-06-02 13:13:53 +0200559 capacity: !os_env NODE_VOLUME_SIZE, 10
Sergii Golovatiukc504a392017-05-22 21:41:06 +0200560 backing_store: vsrx_image
561 format: qcow2
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200562 #- name: iso
563 #- capacity: 1
564 #- format: raw
565 #- device: cdrom
566 #- bus: ide
567 #- cloudinit_user_data: !include juniper.conf
568
Sergii Golovatiukc504a392017-05-22 21:41:06 +0200569 interfaces:
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200570 - label: ge-0/0/0
571 l2_network_device: private
Sergii Golovatiuk6fd1bde2017-06-23 13:39:11 +0200572 interface_model: *interface_model
Sergii Golovatiukc504a392017-05-22 21:41:06 +0200573 mac_address: 52:54:00:4e:b4:36
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200574 - label: ge-0/0/1
575 l2_network_device: public
Sergii Golovatiuk6fd1bde2017-06-23 13:39:11 +0200576 interface_model: *interface_model
Sergii Golovatiukc504a392017-05-22 21:41:06 +0200577 mac_address: 52:54:00:e1:44:9d
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200578 - label: ge-0/0/2
579 l2_network_device: admin
Sergii Golovatiuk6fd1bde2017-06-23 13:39:11 +0200580 interface_model: *interface_model
Sergii Golovatiuk5b659d42017-05-26 17:38:06 +0200581 mac_address: 52:54:00:72:08:77