blob: 522855085bed72f5b0c1579f2d47b0e3f4706228 [file] [log] [blame]
Tatyana Leontovichc8b8ca22017-05-19 13:37:05 +03001# Set the repository suite, one of the: 'nightly', 'testing', 'stable', or any other required
Dennis Dmitriev492813e2017-08-09 15:08:58 +03002{% set REPOSITORY_SUITE = os_env('REPOSITORY_SUITE', 'testing') %}
Tatyana Leontovichc8b8ca22017-05-19 13:37:05 +03003
4{% import 'virtual-mcp11-k8s-calico/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %}
5{% import 'virtual-mcp11-k8s-calico/underlay--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 with context %}
6{% import 'virtual-mcp11-k8s-calico/underlay--user-data1604.yaml' as CLOUDINIT_USER_DATA_1604 with context %}
7
Sergii Golovatiuk57bb8e72017-05-16 19:49:49 +02008---
9aliases:
Tatyana Leontovichc8b8ca22017-05-19 13:37:05 +030010 - &interface_model {{ os_env('INTERFACE_MODEL', 'virtio') }}
11 - &cloudinit_meta_data {{ CLOUDINIT_META_DATA }}
12 - &cloudinit_user_data_cfg01 {{ CLOUDINIT_USER_DATA_CFG01 }}
13 - &cloudinit_user_data_1604 {{ CLOUDINIT_USER_DATA_1604 }}
Sergii Golovatiuk57bb8e72017-05-16 19:49:49 +020014
15{% set DOMAIN_NAME = os_env('LAB_CONFIG_NAME', 'virtual-mcp11-k8s-calico.local') + '.local' %}
16{% set HOSTNAME_CFG01 = os_env('HOSTNAME_CFG01', 'cfg01.' + DOMAIN_NAME) %}
17{% set HOSTNAME_CTL01 = os_env('HOSTNAME_CTL01', 'ctl01.' + DOMAIN_NAME) %}
18{% set HOSTNAME_CTL02 = os_env('HOSTNAME_CTL02', 'ctl02.' + DOMAIN_NAME) %}
19{% set HOSTNAME_CTL03 = os_env('HOSTNAME_CTL03', 'ctl03.' + DOMAIN_NAME) %}
20{% set HOSTNAME_CMP01 = os_env('HOSTNAME_CMP01', 'cmp01.' + DOMAIN_NAME) %}
21{% set HOSTNAME_CMP02 = os_env('HOSTNAME_CMP02', 'cmp02.' + DOMAIN_NAME) %}
22{% set HOSTNAME_MON01 = os_env('HOSTNAME_MON01', 'mon01.' + DOMAIN_NAME) %}
23{% set HOSTNAME_MON02 = os_env('HOSTNAME_MON02', 'mon02.' + DOMAIN_NAME) %}
24{% set HOSTNAME_MON03 = os_env('HOSTNAME_MON03', 'mon03.' + DOMAIN_NAME) %}
25{% set HOSTNAME_PRX01 = os_env('HOSTNAME_PRX01', 'prx01.' + DOMAIN_NAME) %}
26
27template:
28 devops_settings:
Tatyana Leontovichc8b8ca22017-05-19 13:37:05 +030029 env_name: {{ os_env('ENV_NAME', 'virtual-mcp11-k8s-calico_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }}
Sergii Golovatiuk57bb8e72017-05-16 19:49:49 +020030
31 address_pools:
32 admin-pool01:
Tatyana Leontoviche4fe5312017-05-19 14:40:06 +030033 net: {{ os_env('ADMIN_ADDRESS_POOL01', '10.70.0.0/16:24') }}
Sergii Golovatiuk57bb8e72017-05-16 19:49:49 +020034 params:
35 ip_reserved:
36 gateway: +1
37 l2_network_device: +1
38 default_{{ HOSTNAME_CFG01 }}: +100
39 default_{{ HOSTNAME_CTL01 }}: +101
40 default_{{ HOSTNAME_CTL02 }}: +102
41 default_{{ HOSTNAME_CTL03 }}: +103
42 default_{{ HOSTNAME_CMP01 }}: +105
43 default_{{ HOSTNAME_CMP02 }}: +106
44 default_{{ HOSTNAME_MON01 }}: +107
45 default_{{ HOSTNAME_MON02 }}: +108
46 default_{{ HOSTNAME_MON03 }}: +109
47 default_{{ HOSTNAME_PRX01 }}: +110
48 ip_ranges:
49 dhcp: [+90, -10]
50
51 private-pool01:
Tatyana Leontoviche4fe5312017-05-19 14:40:06 +030052 net: {{ os_env('PRIVATE_ADDRESS_POOL01', '10.60.0.0/16:24') }}
Sergii Golovatiuk57bb8e72017-05-16 19:49:49 +020053 params:
54 ip_reserved:
55 gateway: +1
56 l2_network_device: +1
57 default_{{ HOSTNAME_CFG01 }}: +100
58 default_{{ HOSTNAME_CTL01 }}: +101
59 default_{{ HOSTNAME_CTL02 }}: +102
60 default_{{ HOSTNAME_CTL03 }}: +103
61 default_{{ HOSTNAME_CMP01 }}: +105
62 default_{{ HOSTNAME_CMP02 }}: +106
63 default_{{ HOSTNAME_MON01 }}: +107
64 default_{{ HOSTNAME_MON02 }}: +108
65 default_{{ HOSTNAME_MON03 }}: +109
66 default_{{ HOSTNAME_PRX01 }}: +110
67 ip_ranges:
68 dhcp: [+90, -10]
69
70 groups:
71 - name: default
72 driver:
73 name: devops.driver.libvirt
74 params:
75 connection_string: !os_env CONNECTION_STRING, qemu:///system
76 storage_pool_name: !os_env STORAGE_POOL_NAME, default
77 stp: False
78 hpet: False
79 enable_acpi: true
80 use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true
Dennis Dmitrievb3fc4242017-07-14 16:01:51 +030081 use_hugepages: !os_env DRIVER_USE_HUGEPAGES, false
Sergii Golovatiuk57bb8e72017-05-16 19:49:49 +020082
83 network_pools:
84 admin: admin-pool01
85 private: private-pool01
86
87 l2_network_devices:
88 private:
89 address_pool: private-pool01
90 dhcp: true
91
92 admin:
93 address_pool: admin-pool01
94 dhcp: true
95 forward:
96 mode: nat
97
98 group_volumes:
Sergii Golovatiuk57bb8e72017-05-16 19:49:49 +020099 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
100 source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img or
101 # http://apt.tcpcloud.eu/images/ubuntu-16-04-x64-201608231004.qcow2
102 format: qcow2
103
104 nodes:
105 - name: {{ HOSTNAME_CFG01 }}
106 role: salt_master
107 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300108 vcpu: !os_env SLAVE_NODE_CPU, 2
Sergii Golovatiuk57bb8e72017-05-16 19:49:49 +0200109 memory: !os_env SLAVE_NODE_MEMORY, 1536
110 boot:
111 - hd
112 cloud_init_volume_name: iso
113 cloud_init_iface_up: ens3
114 volumes:
115 - name: system
116 capacity: !os_env NODE_VOLUME_SIZE, 150
117 backing_store: cloudimage1604
118 format: qcow2
119 - name: iso # Volume with name 'iso' will be used
120 # for store image with cloud-init metadata.
121 capacity: 1
122 format: raw
123 device: cdrom
124 bus: ide
125 cloudinit_meta_data: !include underlay--meta-data.yaml
126 cloudinit_user_data: !include underlay--user-data-cfg01.yaml
127
128 interfaces:
129 - label: ens3
130 l2_network_device: admin
131 interface_model: *interface_model
132 - label: ens4
133 l2_network_device: private
134 interface_model: *interface_model
135 network_config:
136 ens3:
137 networks:
138 - admin
139 ens4:
140 networks:
141 - private
142
143 - name: {{ HOSTNAME_CTL01 }}
144 role: salt_minion
145 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300146 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovich64126da2017-06-12 15:28:11 +0300147 memory: !os_env SLAVE_NODE_MEMORY, 2048
Sergii Golovatiuk57bb8e72017-05-16 19:49:49 +0200148 boot:
149 - hd
150 cloud_init_volume_name: iso
151 cloud_init_iface_up: ens3
152 volumes:
153 - name: system
154 capacity: !os_env NODE_VOLUME_SIZE, 150
155 backing_store: cloudimage1604
156 format: qcow2
157 - name: cinder
158 capacity: 50
159 format: qcow2
160 - name: iso # Volume with name 'iso' will be used
161 # for store image with cloud-init metadata.
162 capacity: 1
163 format: raw
164 device: cdrom
165 bus: ide
166 cloudinit_meta_data: !include underlay--meta-data.yaml
167 cloudinit_user_data: !include underlay--user-data1604.yaml
168
169 interfaces: &interfaces
170 - label: ens3
171 l2_network_device: admin
172 interface_model: *interface_model
173 - label: ens4
174 l2_network_device: private
175 interface_model: *interface_model
176 network_config: &network_config
177 ens3:
178 networks:
179 - admin
180 ens4:
181 networks:
182 - private
183
184 - name: {{ HOSTNAME_CTL02 }}
vrovachev99228d32017-06-08 19:46:10 +0400185 role: k8s_virtlet
Sergii Golovatiuk57bb8e72017-05-16 19:49:49 +0200186 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300187 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovich64126da2017-06-12 15:28:11 +0300188 memory: !os_env SLAVE_NODE_MEMORY, 2048
Sergii Golovatiuk57bb8e72017-05-16 19:49:49 +0200189 boot:
190 - hd
191 cloud_init_volume_name: iso
192 cloud_init_iface_up: ens3
193 volumes:
194 - name: system
195 capacity: !os_env NODE_VOLUME_SIZE, 150
196 backing_store: cloudimage1604
197 format: qcow2
198 - name: cinder
199 capacity: 50
200 format: qcow2
201 - name: iso # Volume with name 'iso' will be used
202 # for store image with cloud-init metadata.
203 capacity: 1
204 format: raw
205 device: cdrom
206 bus: ide
207 cloudinit_meta_data: !include underlay--meta-data.yaml
208 cloudinit_user_data: !include underlay--user-data1604.yaml
209
210 interfaces: *interfaces
211 network_config: *network_config
212
213 - name: {{ HOSTNAME_CTL03 }}
214 role: salt_minion
215 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300216 vcpu: !os_env SLAVE_NODE_CPU, 2
Tatyana Leontovich64126da2017-06-12 15:28:11 +0300217 memory: !os_env SLAVE_NODE_MEMORY, 2048
Sergii Golovatiuk57bb8e72017-05-16 19:49:49 +0200218 boot:
219 - hd
220 cloud_init_volume_name: iso
221 cloud_init_iface_up: ens3
222 volumes:
223 - name: system
224 capacity: !os_env NODE_VOLUME_SIZE, 150
225 backing_store: cloudimage1604
226 format: qcow2
227 - name: cinder
228 capacity: 50
229 format: qcow2
230 - name: iso # Volume with name 'iso' will be used
231 # for store image with cloud-init metadata.
232 capacity: 1
233 format: raw
234 device: cdrom
235 bus: ide
236 cloudinit_meta_data: !include underlay--meta-data.yaml
237 cloudinit_user_data: !include underlay--user-data1604.yaml
238
239 interfaces: *interfaces
240 network_config: *network_config
241
242 - name: {{ HOSTNAME_CMP01 }}
243 role: salt_minion
244 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300245 vcpu: !os_env SLAVE_NODE_CPU, 3
Sergii Golovatiuk57bb8e72017-05-16 19:49:49 +0200246 memory: !os_env SLAVE_NODE_MEMORY, 2048
247 boot:
248 - hd
249 cloud_init_volume_name: iso
250 cloud_init_iface_up: ens3
251 volumes:
252 - name: system
253 capacity: !os_env NODE_VOLUME_SIZE, 150
254 backing_store: cloudimage1604
255 format: qcow2
256 - name: iso # Volume with name 'iso' will be used
257 # for store image with cloud-init metadata.
258 capacity: 1
259 format: raw
260 device: cdrom
261 bus: ide
262 cloudinit_meta_data: !include underlay--meta-data.yaml
263 cloudinit_user_data: !include underlay--user-data1604.yaml
264
265 interfaces: &all_interfaces
266 - label: ens3
267 l2_network_device: admin
268 interface_model: *interface_model
269 - label: ens4
270 l2_network_device: private
271 interface_model: *interface_model
272 network_config: &all_network_config
273 ens3:
274 networks:
275 - admin
276 ens4:
277 networks:
278 - private
279
280 - name: {{ HOSTNAME_CMP02 }}
281 role: salt_minion
282 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300283 vcpu: !os_env SLAVE_NODE_CPU, 3
Sergii Golovatiuk57bb8e72017-05-16 19:49:49 +0200284 memory: !os_env SLAVE_NODE_MEMORY, 2048
285 boot:
286 - hd
287 cloud_init_volume_name: iso
288 cloud_init_iface_up: ens3
289 volumes:
290 - name: system
291 capacity: !os_env NODE_VOLUME_SIZE, 150
292 backing_store: cloudimage1604
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
300 cloudinit_meta_data: !include underlay--meta-data.yaml
301 cloudinit_user_data: !include underlay--user-data1604.yaml
302
303 interfaces: *interfaces
304 network_config: *network_config
305
306 - name: {{ HOSTNAME_MON01 }}
307 role: salt_minion
308 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300309 vcpu: !os_env SLAVE_NODE_CPU, 3
Tatyana Leontovich64126da2017-06-12 15:28:11 +0300310 memory: !os_env SLAVE_NODE_MEMORY, 4096
Sergii Golovatiuk57bb8e72017-05-16 19:49:49 +0200311 boot:
312 - hd
313 cloud_init_volume_name: iso
314 cloud_init_iface_up: ens3
315 volumes:
316 - name: system
317 capacity: !os_env NODE_VOLUME_SIZE, 150
318 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
326 cloudinit_meta_data: !include underlay--meta-data.yaml
327 cloudinit_user_data: !include underlay--user-data1604.yaml
328
329 interfaces: *interfaces
330 network_config: *network_config
331
332 - name: {{ HOSTNAME_MON02 }}
333 role: salt_minion
334 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300335 vcpu: !os_env SLAVE_NODE_CPU, 3
Tatyana Leontovich64126da2017-06-12 15:28:11 +0300336 memory: !os_env SLAVE_NODE_MEMORY, 4096
Sergii Golovatiuk57bb8e72017-05-16 19:49:49 +0200337 boot:
338 - hd
339 cloud_init_volume_name: iso
340 cloud_init_iface_up: ens3
341 volumes:
342 - name: system
343 capacity: !os_env NODE_VOLUME_SIZE, 150
344 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
352 cloudinit_meta_data: !include underlay--meta-data.yaml
353 cloudinit_user_data: !include underlay--user-data1604.yaml
354
355 interfaces: *interfaces
356 network_config: *network_config
357
358 - name: {{ HOSTNAME_MON03 }}
359 role: salt_minion
360 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300361 vcpu: !os_env SLAVE_NODE_CPU, 3
Tatyana Leontovich64126da2017-06-12 15:28:11 +0300362 memory: !os_env SLAVE_NODE_MEMORY, 4096
Sergii Golovatiuk57bb8e72017-05-16 19:49:49 +0200363 boot:
364 - hd
365 cloud_init_volume_name: iso
366 cloud_init_iface_up: ens3
367 volumes:
368 - name: system
369 capacity: !os_env NODE_VOLUME_SIZE, 150
370 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
378 cloudinit_meta_data: !include underlay--meta-data.yaml
379 cloudinit_user_data: !include underlay--user-data1604.yaml
380
381 interfaces: *interfaces
382 network_config: *network_config
383
384 - name: {{ HOSTNAME_PRX01 }}
385 role: salt_minion
386 params:
Dennis Dmitriev5b0e5f32017-07-22 11:30:26 +0300387 vcpu: !os_env SLAVE_NODE_CPU, 1
Sergii Golovatiuk57bb8e72017-05-16 19:49:49 +0200388 memory: !os_env SLAVE_NODE_MEMORY, 1024
389 boot:
390 - hd
391 cloud_init_volume_name: iso
392 cloud_init_iface_up: ens3
393 volumes:
394 - name: system
395 capacity: !os_env NODE_VOLUME_SIZE, 150
396 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
404 cloudinit_meta_data: !include underlay--meta-data.yaml
405 cloudinit_user_data: !include underlay--user-data1604.yaml
406
407 interfaces: *interfaces
408 network_config: *network_config