blob: 132510844ac8dcda6c914573676f1e06e0982670 [file] [log] [blame]
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +03001# Set the repository suite, one of the: 'nightly', 'testing', 'stable', or any other required
2{% set REPOSITORY_SUITE = os_env('REPOSITORY_SUITE', 'stable') %}
3
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 %}
7
8---
9aliases:
10 - &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 }}
14
15{% set DOMAIN_NAME = os_env('LAB_CONFIG_NAME', 'virtual-mcp11-k8s-contrail') + '.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) %}
Sergii Golovatiukc504a392017-05-22 21:41:06 +020022{% set HOSTNAME_VSRX01 = os_env('HOSTNAME_VSRX01', 'vsrx01' + DOMAIN_NAME) %}
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +030023
24template:
25 devops_settings:
26 env_name: {{ os_env('ENV_NAME', 'virtual-mcp11-k8s-contrail_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }}
27
28 address_pools:
29 private-pool01:
30 net: {{ os_env('PRIVATE_ADDRESS_POOL01', '10.60.0.0/16:24') }}
31 params:
32 ip_reserved:
33 gateway: +1
34 l2_network_device: +1
35 default_{{ HOSTNAME_CFG01 }}: +100
36 default_{{ HOSTNAME_CTL01 }}: +107
37 default_{{ HOSTNAME_CTL02 }}: +108
38 default_{{ HOSTNAME_CTL03 }}: +109
39 default_{{ HOSTNAME_CMP01 }}: +105
40 default_{{ HOSTNAME_CMP02 }}: +106
Sergii Golovatiukc504a392017-05-22 21:41:06 +020041 default_{{ HOSTNAME_VSRX01 }}: +250
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +030042 ip_ranges:
43 dhcp: [+90, -10]
44
45 admin-pool01:
46 net: {{ os_env('ADMIN_ADDRESS_POOL01', '10.70.0.0/16:24') }}
47 params:
48 ip_reserved:
49 gateway: +1
50 l2_network_device: +1
51 default_{{ HOSTNAME_CFG01 }}: +100
52 default_{{ HOSTNAME_CTL01 }}: +107
53 default_{{ HOSTNAME_CTL02 }}: +108
54 default_{{ HOSTNAME_CTL03 }}: +109
55 default_{{ HOSTNAME_CMP01 }}: +105
56 default_{{ HOSTNAME_CMP02 }}: +106
Sergii Golovatiukc504a392017-05-22 21:41:06 +020057 default_{{ HOSTNAME_VSRX01 }}: +250
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +030058 ip_ranges:
59 dhcp: [+90, -10]
60
Sergii Golovatiukc504a392017-05-22 21:41:06 +020061 public-pool01:
62 net: {{ os_env('PUBLIC_ADDRESS_POOL01', '10.80.0.0/16:24') }}
63 params:
64 ip_reserved:
65 gateway: +1
66 l2_network_device: +1
67 default_{{ HOSTNAME_VSRX01 }}: +250
68
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +030069 groups:
70 - name: default
71 driver:
72 name: devops.driver.libvirt
73 params:
74 connection_string: !os_env CONNECTION_STRING, qemu:///system
75 storage_pool_name: !os_env STORAGE_POOL_NAME, default
76 stp: False
77 hpet: False
78 enable_acpi: true
79 use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true
80
81 network_pools:
82 admin: admin-pool01
83 private: private-pool01
84
85 l2_network_devices:
86 private:
87 address_pool: private-pool01
88 dhcp: true
89
90 admin:
91 address_pool: admin-pool01
92 dhcp: true
93 forward:
94 mode: nat
95
Sergii Golovatiukc504a392017-05-22 21:41:06 +020096 public:
97 address_pool: public-pool01
98 forward:
99 mode: nat
100
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300101 group_volumes:
102 - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes.
103 source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img or
104 # http://apt.tcpcloud.eu/images/ubuntu-16-04-x64-201608231004.qcow2
105 format: qcow2
106
Sergii Golovatiukc504a392017-05-22 21:41:06 +0200107 - name: vsrx_image
108 source_image: !os_env IMAGE_VSRX
109 format: qcow2
110
Tatyana Leontovichbb6d1a72017-05-17 14:10:38 +0300111 nodes:
112 - name: {{ HOSTNAME_CFG01 }}
113 role: salt_master
114 params:
115 vcpu: !os_env SLAVE_NODE_CPU, 4
116 memory: !os_env SLAVE_NODE_MEMORY, 2048
117 boot:
118 - hd
119 cloud_init_volume_name: iso
120 cloud_init_iface_up: ens3
121 volumes:
122 - name: system
123 capacity: !os_env NODE_VOLUME_SIZE, 150
124 backing_store: cloudimage1604
125 format: qcow2
126 - name: iso # Volume with name 'iso' will be used
127 # for store image with cloud-init metadata.
128 capacity: 1
129 format: raw
130 device: cdrom
131 bus: ide
132 cloudinit_meta_data: !include underlay--meta-data.yaml
133 cloudinit_user_data: !include underlay--user-data-cfg01.yaml
134
135 interfaces:
136 - label: ens3
137 l2_network_device: admin
138 interface_model: *interface_model
139 - label: ens4
140 l2_network_device: private
141 interface_model: *interface_model
142 network_config:
143 ens3:
144 networks:
145 - admin
146 ens4:
147 networks:
148 - private
149
150 - name: {{ HOSTNAME_CTL01 }}
151 role: salt_minion
152 params:
153 vcpu: !os_env SLAVE_NODE_CPU, 4
154 memory: !os_env SLAVE_NODE_MEMORY, 8192
155 boot:
156 - hd
157 cloud_init_volume_name: iso
158 cloud_init_iface_up: ens3
159 volumes:
160 - name: system
161 capacity: !os_env NODE_VOLUME_SIZE, 150
162 backing_store: cloudimage1604
163 format: qcow2
164 - name: cinder
165 capacity: 50
166 format: qcow2
167 - name: iso # Volume with name 'iso' will be used
168 # for store image with cloud-init metadata.
169 capacity: 1
170 format: raw
171 device: cdrom
172 bus: ide
173 cloudinit_meta_data: !include underlay--meta-data.yaml
174 cloudinit_user_data: !include underlay--user-data1604.yaml
175
176 interfaces: &interfaces
177 - label: ens3
178 l2_network_device: admin
179 interface_model: *interface_model
180 - label: ens4
181 l2_network_device: private
182 interface_model: *interface_model
183 network_config: &network_config
184 ens3:
185 networks:
186 - admin
187 ens4:
188 networks:
189 - private
190
191 - name: {{ HOSTNAME_CTL02 }}
192 role: salt_minion
193 params:
194 vcpu: !os_env SLAVE_NODE_CPU, 4
195 memory: !os_env SLAVE_NODE_MEMORY, 8192
196 boot:
197 - hd
198 cloud_init_volume_name: iso
199 cloud_init_iface_up: ens3
200 volumes:
201 - name: system
202 capacity: !os_env NODE_VOLUME_SIZE, 150
203 backing_store: cloudimage1604
204 format: qcow2
205 - name: cinder
206 capacity: 50
207 format: qcow2
208 - name: iso # Volume with name 'iso' will be used
209 # for store image with cloud-init metadata.
210 capacity: 1
211 format: raw
212 device: cdrom
213 bus: ide
214 cloudinit_meta_data: !include underlay--meta-data.yaml
215 cloudinit_user_data: !include underlay--user-data1604.yaml
216
217 interfaces: *interfaces
218 network_config: *network_config
219
220 - name: {{ HOSTNAME_CTL03 }}
221 role: salt_minion
222 params:
223 vcpu: !os_env SLAVE_NODE_CPU, 4
224 memory: !os_env SLAVE_NODE_MEMORY, 8192
225 boot:
226 - hd
227 cloud_init_volume_name: iso
228 cloud_init_iface_up: ens3
229 volumes:
230 - name: system
231 capacity: !os_env NODE_VOLUME_SIZE, 150
232 backing_store: cloudimage1604
233 format: qcow2
234 - name: cinder
235 capacity: 50
236 format: qcow2
237 - name: iso # Volume with name 'iso' will be used
238 # for store image with cloud-init metadata.
239 capacity: 1
240 format: raw
241 device: cdrom
242 bus: ide
243 cloudinit_meta_data: !include underlay--meta-data.yaml
244 cloudinit_user_data: !include underlay--user-data1604.yaml
245
246 interfaces: *interfaces
247 network_config: *network_config
248
249 - name: {{ HOSTNAME_CMP01 }}
250 role: salt_minion
251 params:
252 vcpu: !os_env SLAVE_NODE_CPU, 4
253 memory: !os_env SLAVE_NODE_MEMORY, 4096
254 boot:
255 - hd
256 cloud_init_volume_name: iso
257 cloud_init_iface_up: ens3
258 volumes:
259 - name: system
260 capacity: !os_env NODE_VOLUME_SIZE, 150
261 backing_store: cloudimage1604
262 format: qcow2
263 - name: iso # Volume with name 'iso' will be used
264 # for store image with cloud-init metadata.
265 capacity: 1
266 format: raw
267 device: cdrom
268 bus: ide
269 cloudinit_meta_data: !include underlay--meta-data.yaml
270 cloudinit_user_data: !include underlay--user-data1604.yaml
271
272
273 interfaces: &all_interfaces
274 - label: ens3
275 l2_network_device: admin
276 interface_model: *interface_model
277 - label: ens4
278 l2_network_device: private
279 interface_model: *interface_model
280 network_config: &all_network_config
281 ens3:
282 networks:
283 - admin
284 ens4:
285 networks:
286 - private
287
288 - name: {{ HOSTNAME_CMP02 }}
289 role: salt_minion
290 params:
291 vcpu: !os_env SLAVE_NODE_CPU, 4
292 memory: !os_env SLAVE_NODE_MEMORY, 4096
293 boot:
294 - hd
295 cloud_init_volume_name: iso
296 cloud_init_iface_up: ens3
297 volumes:
298 - name: system
299 capacity: !os_env NODE_VOLUME_SIZE, 150
300 backing_store: cloudimage1604
301 format: qcow2
302 - name: iso # Volume with name 'iso' will be used
303 # for store image with cloud-init metadata.
304 capacity: 1
305 format: raw
306 device: cdrom
307 bus: ide
308 cloudinit_meta_data: !include underlay--meta-data.yaml
309 cloudinit_user_data: !include underlay--user-data1604.yaml
310
311 interfaces: *all_interfaces
312 network_config: *all_network_config
Sergii Golovatiukc504a392017-05-22 21:41:06 +0200313
314 - name: {{ HOSTNAME_VSRX01 }}
315 role: vsrx
316 params:
317 vcpu: !os_env SLAVE_NODE_CPU, 2
318 memory: !os_env SLAVE_NODE_MEMORY, 2048
319 boot:
320 - hd
321 volumes:
322 - name: system
323 capacity: !os_env NODE_VOLUME_SIZE, 150
324 backing_store: vsrx_image
325 format: qcow2
326 interfaces:
327 - label: eth0
328 l2_network_device: public
329 interface_model: virtio
330 mac_address: 52:54:00:4e:b4:36
331 - label: eth1
332 l2_network_device: admin
333 interface_model: virtio
334 mac_address: 52:54:00:e1:44:9d
335