Dennis Dmitriev | b4b5c10 | 2017-05-10 17:09:06 +0300 | [diff] [blame] | 1 | # Set the repository suite, one of the: 'nightly', 'testing', 'stable', or any other required |
| 2 | {% set REPOSITORY_SUITE = os_env('REPOSITORY_SUITE', 'stable') %} |
| 3 | |
Dennis Dmitriev | ab83ea4 | 2017-05-12 16:52:45 +0300 | [diff] [blame] | 4 | {% import 'virtual-mcp-ocata-dvr/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %} |
| 5 | {% import 'virtual-mcp-ocata-dvr/underlay--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 with context %} |
| 6 | {% import 'virtual-mcp-ocata-dvr/underlay--user-data1604.yaml' as CLOUDINIT_USER_DATA_1604 with context %} |
Dennis Dmitriev | 4ab889c | 2017-04-27 14:11:04 +0300 | [diff] [blame] | 7 | |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 8 | --- |
| 9 | aliases: |
Dennis Dmitriev | 4ab889c | 2017-04-27 14:11:04 +0300 | [diff] [blame] | 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 }} |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 14 | |
Dennis Dmitriev | ab83ea4 | 2017-05-12 16:52:45 +0300 | [diff] [blame] | 15 | {% set DOMAIN_NAME = os_env('LAB_CONFIG_NAME', 'virtual-mcp-ocata-dvr') + '.local' %} |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 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_GTW01 = os_env('HOSTNAME_GTW01', 'gtw01.' + DOMAIN_NAME) %} |
| 23 | {% set HOSTNAME_PRX01 = os_env('HOSTNAME_PRX01', 'prx01.' + DOMAIN_NAME) %} |
| 24 | |
| 25 | template: |
| 26 | devops_settings: |
Dennis Dmitriev | ab83ea4 | 2017-05-12 16:52:45 +0300 | [diff] [blame] | 27 | env_name: {{ os_env('ENV_NAME', 'virtual-mcp-ocata-dvr_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }} |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 28 | |
| 29 | address_pools: |
| 30 | private-pool01: |
Dennis Dmitriev | 4ab889c | 2017-04-27 14:11:04 +0300 | [diff] [blame] | 31 | net: {{ os_env('PRIVATE_ADDRESS_POOL01', '10.60.0.0/16:24') }} |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 32 | params: |
| 33 | ip_reserved: |
| 34 | gateway: +1 |
| 35 | l2_network_device: +1 |
| 36 | default_{{ HOSTNAME_CFG01 }}: +100 |
| 37 | default_{{ HOSTNAME_CTL01 }}: +101 |
| 38 | default_{{ HOSTNAME_CTL02 }}: +102 |
| 39 | default_{{ HOSTNAME_CTL03 }}: +103 |
| 40 | default_{{ HOSTNAME_CMP01 }}: +105 |
| 41 | default_{{ HOSTNAME_CMP02 }}: +106 |
| 42 | default_{{ HOSTNAME_GTW01 }}: +110 |
| 43 | default_{{ HOSTNAME_PRX01 }}: +121 |
| 44 | ip_ranges: |
| 45 | dhcp: [+90, -10] |
| 46 | |
| 47 | admin-pool01: |
Dennis Dmitriev | 4ab889c | 2017-04-27 14:11:04 +0300 | [diff] [blame] | 48 | net: {{ os_env('ADMIN_ADDRESS_POOL01', '10.70.0.0/16:24') }} |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 49 | params: |
| 50 | ip_reserved: |
| 51 | gateway: +1 |
| 52 | l2_network_device: +1 |
| 53 | default_{{ HOSTNAME_CFG01 }}: +100 |
| 54 | default_{{ HOSTNAME_CTL01 }}: +101 |
| 55 | default_{{ HOSTNAME_CTL02 }}: +102 |
| 56 | default_{{ HOSTNAME_CTL03 }}: +103 |
| 57 | default_{{ HOSTNAME_CMP01 }}: +105 |
| 58 | default_{{ HOSTNAME_CMP02 }}: +106 |
| 59 | default_{{ HOSTNAME_GTW01 }}: +110 |
| 60 | default_{{ HOSTNAME_PRX01 }}: +121 |
| 61 | ip_ranges: |
| 62 | dhcp: [+90, -10] |
| 63 | |
| 64 | tenant-pool01: |
Dennis Dmitriev | 4ab889c | 2017-04-27 14:11:04 +0300 | [diff] [blame] | 65 | net: {{ os_env('TENANT_ADDRESS_POOL01', '10.80.0.0/16:24') }} |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 66 | params: |
| 67 | ip_reserved: |
| 68 | gateway: +1 |
| 69 | l2_network_device: +1 |
| 70 | default_{{ HOSTNAME_CFG01 }}: +100 |
| 71 | default_{{ HOSTNAME_CTL01 }}: +101 |
| 72 | default_{{ HOSTNAME_CTL02 }}: +102 |
| 73 | default_{{ HOSTNAME_CTL03 }}: +103 |
| 74 | default_{{ HOSTNAME_CMP01 }}: +105 |
| 75 | default_{{ HOSTNAME_CMP02 }}: +106 |
| 76 | default_{{ HOSTNAME_GTW01 }}: +110 |
| 77 | default_{{ HOSTNAME_PRX01 }}: +121 |
| 78 | ip_ranges: |
| 79 | dhcp: [+10, -10] |
| 80 | |
| 81 | external-pool01: |
Dennis Dmitriev | 4ab889c | 2017-04-27 14:11:04 +0300 | [diff] [blame] | 82 | net: {{ os_env('EXTERNAL_ADDRESS_POOL01', '10.90.0.0/16:24') }} |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 83 | params: |
| 84 | ip_reserved: |
| 85 | gateway: +1 |
| 86 | l2_network_device: +1 |
| 87 | default_{{ HOSTNAME_CFG01 }}: +100 |
| 88 | default_{{ HOSTNAME_CTL01 }}: +101 |
| 89 | default_{{ HOSTNAME_CTL02 }}: +102 |
| 90 | default_{{ HOSTNAME_CTL03 }}: +103 |
| 91 | default_{{ HOSTNAME_CMP01 }}: +105 |
| 92 | default_{{ HOSTNAME_CMP02 }}: +106 |
| 93 | default_{{ HOSTNAME_GTW01 }}: +110 |
| 94 | default_{{ HOSTNAME_PRX01 }}: +121 |
| 95 | ip_ranges: |
| 96 | dhcp: [+10, -10] |
| 97 | |
| 98 | |
| 99 | groups: |
| 100 | - name: default |
| 101 | driver: |
| 102 | name: devops.driver.libvirt |
| 103 | params: |
| 104 | connection_string: !os_env CONNECTION_STRING, qemu:///system |
| 105 | storage_pool_name: !os_env STORAGE_POOL_NAME, default |
| 106 | stp: False |
| 107 | hpet: False |
| 108 | enable_acpi: true |
| 109 | use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true |
| 110 | |
| 111 | network_pools: |
| 112 | admin: admin-pool01 |
| 113 | private: private-pool01 |
| 114 | tenant: tenant-pool01 |
| 115 | external: external-pool01 |
| 116 | |
| 117 | l2_network_devices: |
| 118 | private: |
| 119 | address_pool: private-pool01 |
| 120 | dhcp: true |
| 121 | |
| 122 | admin: |
| 123 | address_pool: admin-pool01 |
| 124 | dhcp: true |
| 125 | forward: |
| 126 | mode: nat |
| 127 | |
| 128 | tenant: |
| 129 | address_pool: tenant-pool01 |
| 130 | dhcp: true |
| 131 | |
| 132 | external: |
| 133 | address_pool: external-pool01 |
| 134 | dhcp: true |
| 135 | forward: |
| 136 | mode: nat |
| 137 | |
| 138 | |
| 139 | group_volumes: |
| 140 | - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes. |
| 141 | source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img or |
| 142 | # http://apt.tcpcloud.eu/images/ubuntu-16-04-x64-201608231004.qcow2 |
| 143 | format: qcow2 |
| 144 | |
| 145 | nodes: |
| 146 | - name: {{ HOSTNAME_CFG01 }} |
| 147 | role: salt_master |
| 148 | params: |
| 149 | vcpu: !os_env SLAVE_NODE_CPU, 4 |
| 150 | memory: !os_env SLAVE_NODE_MEMORY, 2048 |
| 151 | boot: |
| 152 | - hd |
| 153 | cloud_init_volume_name: iso |
| 154 | cloud_init_iface_up: ens3 |
| 155 | volumes: |
| 156 | - name: system |
| 157 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 158 | backing_store: cloudimage1604 |
| 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 |
Dennis Dmitriev | 4ab889c | 2017-04-27 14:11:04 +0300 | [diff] [blame] | 166 | cloudinit_meta_data: *cloudinit_meta_data |
| 167 | cloudinit_user_data: *cloudinit_user_data_cfg01 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 168 | |
| 169 | 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: |
| 177 | ens3: |
| 178 | networks: |
| 179 | - admin |
| 180 | ens4: |
| 181 | networks: |
| 182 | - private |
| 183 | |
| 184 | - name: {{ HOSTNAME_CTL01 }} |
| 185 | role: salt_minion |
| 186 | params: |
| 187 | vcpu: !os_env SLAVE_NODE_CPU, 4 |
| 188 | memory: !os_env SLAVE_NODE_MEMORY, 8192 |
| 189 | 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 |
Dennis Dmitriev | 4ab889c | 2017-04-27 14:11:04 +0300 | [diff] [blame] | 207 | cloudinit_meta_data: *cloudinit_meta_data |
| 208 | cloudinit_user_data: *cloudinit_user_data_1604 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 209 | |
| 210 | interfaces: &interfaces |
| 211 | - label: ens3 |
| 212 | l2_network_device: admin |
| 213 | interface_model: *interface_model |
| 214 | - label: ens4 |
| 215 | l2_network_device: private |
| 216 | interface_model: *interface_model |
| 217 | network_config: &network_config |
| 218 | ens3: |
| 219 | networks: |
| 220 | - admin |
| 221 | ens4: |
| 222 | networks: |
| 223 | - private |
| 224 | |
| 225 | - name: {{ HOSTNAME_CTL02 }} |
| 226 | role: salt_minion |
| 227 | params: |
| 228 | vcpu: !os_env SLAVE_NODE_CPU, 4 |
| 229 | memory: !os_env SLAVE_NODE_MEMORY, 8192 |
| 230 | boot: |
| 231 | - hd |
| 232 | cloud_init_volume_name: iso |
| 233 | cloud_init_iface_up: ens3 |
| 234 | volumes: |
| 235 | - name: system |
| 236 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 237 | backing_store: cloudimage1604 |
| 238 | format: qcow2 |
| 239 | - name: cinder |
| 240 | capacity: 50 |
| 241 | format: qcow2 |
| 242 | - name: iso # Volume with name 'iso' will be used |
| 243 | # for store image with cloud-init metadata. |
| 244 | capacity: 1 |
| 245 | format: raw |
| 246 | device: cdrom |
| 247 | bus: ide |
Dennis Dmitriev | 4ab889c | 2017-04-27 14:11:04 +0300 | [diff] [blame] | 248 | cloudinit_meta_data: *cloudinit_meta_data |
| 249 | cloudinit_user_data: *cloudinit_user_data_1604 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 250 | |
| 251 | interfaces: *interfaces |
| 252 | network_config: *network_config |
| 253 | |
| 254 | - name: {{ HOSTNAME_CTL03 }} |
| 255 | role: salt_minion |
| 256 | params: |
| 257 | vcpu: !os_env SLAVE_NODE_CPU, 4 |
| 258 | memory: !os_env SLAVE_NODE_MEMORY, 8192 |
| 259 | boot: |
| 260 | - hd |
| 261 | cloud_init_volume_name: iso |
| 262 | cloud_init_iface_up: ens3 |
| 263 | volumes: |
| 264 | - name: system |
| 265 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 266 | backing_store: cloudimage1604 |
| 267 | format: qcow2 |
| 268 | - name: cinder |
| 269 | capacity: 50 |
| 270 | format: qcow2 |
| 271 | - name: iso # Volume with name 'iso' will be used |
| 272 | # for store image with cloud-init metadata. |
| 273 | capacity: 1 |
| 274 | format: raw |
| 275 | device: cdrom |
| 276 | bus: ide |
Dennis Dmitriev | 4ab889c | 2017-04-27 14:11:04 +0300 | [diff] [blame] | 277 | cloudinit_meta_data: *cloudinit_meta_data |
| 278 | cloudinit_user_data: *cloudinit_user_data_1604 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 279 | |
| 280 | interfaces: *interfaces |
| 281 | network_config: *network_config |
| 282 | |
| 283 | - name: {{ HOSTNAME_PRX01 }} |
| 284 | role: salt_minion |
| 285 | params: |
| 286 | vcpu: !os_env SLAVE_NODE_CPU, 4 |
| 287 | memory: !os_env SLAVE_NODE_MEMORY, 8192 |
| 288 | boot: |
| 289 | - hd |
| 290 | cloud_init_volume_name: iso |
| 291 | cloud_init_iface_up: ens3 |
| 292 | volumes: |
| 293 | - name: system |
| 294 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 295 | backing_store: cloudimage1604 |
| 296 | format: qcow2 |
| 297 | - name: cinder |
| 298 | capacity: 50 |
| 299 | format: qcow2 |
| 300 | - name: iso # Volume with name 'iso' will be used |
| 301 | # for store image with cloud-init metadata. |
| 302 | capacity: 1 |
| 303 | format: raw |
| 304 | device: cdrom |
| 305 | bus: ide |
Dennis Dmitriev | 4ab889c | 2017-04-27 14:11:04 +0300 | [diff] [blame] | 306 | cloudinit_meta_data: *cloudinit_meta_data |
| 307 | cloudinit_user_data: *cloudinit_user_data_1604 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 308 | |
| 309 | interfaces: *interfaces |
| 310 | network_config: *network_config |
| 311 | |
| 312 | |
| 313 | - name: {{ HOSTNAME_CMP01 }} |
| 314 | role: salt_minion |
| 315 | params: |
| 316 | vcpu: !os_env SLAVE_NODE_CPU, 4 |
| 317 | memory: !os_env SLAVE_NODE_MEMORY, 4096 |
| 318 | boot: |
| 319 | - hd |
| 320 | cloud_init_volume_name: iso |
| 321 | cloud_init_iface_up: ens3 |
| 322 | volumes: |
| 323 | - name: system |
| 324 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 325 | 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 Dmitriev | 4ab889c | 2017-04-27 14:11:04 +0300 | [diff] [blame] | 333 | cloudinit_meta_data: *cloudinit_meta_data |
| 334 | cloudinit_user_data: *cloudinit_user_data_1604 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 335 | |
| 336 | |
| 337 | interfaces: &all_interfaces |
| 338 | - label: ens3 |
| 339 | l2_network_device: admin |
| 340 | interface_model: *interface_model |
| 341 | - label: ens4 |
| 342 | l2_network_device: private |
| 343 | interface_model: *interface_model |
| 344 | - label: ens5 |
| 345 | l2_network_device: tenant |
| 346 | interface_model: *interface_model |
| 347 | - label: ens6 |
| 348 | l2_network_device: external |
| 349 | interface_model: *interface_model |
| 350 | network_config: &all_network_config |
| 351 | ens3: |
| 352 | networks: |
| 353 | - admin |
| 354 | ens4: |
| 355 | networks: |
| 356 | - private |
| 357 | ens5: |
| 358 | networks: |
| 359 | - tenant |
| 360 | ens6: |
| 361 | networks: |
| 362 | - external |
| 363 | |
| 364 | - name: {{ HOSTNAME_CMP02 }} |
| 365 | role: salt_minion |
| 366 | params: |
| 367 | vcpu: !os_env SLAVE_NODE_CPU, 4 |
| 368 | memory: !os_env SLAVE_NODE_MEMORY, 4096 |
| 369 | boot: |
| 370 | - hd |
| 371 | cloud_init_volume_name: iso |
| 372 | cloud_init_iface_up: ens3 |
| 373 | volumes: |
| 374 | - name: system |
| 375 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 376 | backing_store: cloudimage1604 |
| 377 | format: qcow2 |
| 378 | - name: iso # Volume with name 'iso' will be used |
| 379 | # for store image with cloud-init metadata. |
| 380 | capacity: 1 |
| 381 | format: raw |
| 382 | device: cdrom |
| 383 | bus: ide |
Dennis Dmitriev | 4ab889c | 2017-04-27 14:11:04 +0300 | [diff] [blame] | 384 | cloudinit_meta_data: *cloudinit_meta_data |
| 385 | cloudinit_user_data: *cloudinit_user_data_1604 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 386 | |
| 387 | interfaces: *all_interfaces |
| 388 | network_config: *all_network_config |
| 389 | |
| 390 | - name: {{ HOSTNAME_GTW01 }} |
| 391 | role: salt_minion |
| 392 | params: |
| 393 | vcpu: !os_env SLAVE_NODE_CPU, 1 |
| 394 | memory: !os_env SLAVE_NODE_MEMORY, 2048 |
| 395 | boot: |
| 396 | - hd |
| 397 | cloud_init_volume_name: iso |
| 398 | cloud_init_iface_up: ens3 |
| 399 | volumes: |
| 400 | - name: system |
| 401 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 402 | backing_store: cloudimage1604 |
| 403 | format: qcow2 |
| 404 | - name: iso # Volume with name 'iso' will be used |
| 405 | # for store image with cloud-init metadata. |
| 406 | capacity: 1 |
| 407 | format: raw |
| 408 | device: cdrom |
| 409 | bus: ide |
Dennis Dmitriev | 4ab889c | 2017-04-27 14:11:04 +0300 | [diff] [blame] | 410 | cloudinit_meta_data: *cloudinit_meta_data |
| 411 | cloudinit_user_data: *cloudinit_user_data_1604 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 412 | |
| 413 | interfaces: *all_interfaces |
| 414 | network_config: *all_network_config |