Tatyana Leontovich | 56005da | 2017-12-11 13:16:51 +0200 | [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', 'testing') %} |
| 3 | |
Tatyana Leontovich | b0b68d9 | 2018-01-11 13:27:08 +0200 | [diff] [blame^] | 4 | {% import 'virtual-mcp-pike-ovs/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %} |
| 5 | {% import 'virtual-mcp-pike-ovs/underlay--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 with context %} |
| 6 | {% import 'virtual-mcp-pike-ovs/underlay--user-data1604.yaml' as CLOUDINIT_USER_DATA_1604 with context %} |
Tatyana Leontovich | 56005da | 2017-12-11 13:16:51 +0200 | [diff] [blame] | 7 | |
| 8 | --- |
| 9 | aliases: |
| 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 | |
Tatyana Leontovich | b0b68d9 | 2018-01-11 13:27:08 +0200 | [diff] [blame^] | 15 | {% set LAB_CONFIG_NAME = os_env('LAB_CONFIG_NAME', 'virtual-mcp-pike-ovs') %} |
Tatyana Leontovich | 56005da | 2017-12-11 13:16:51 +0200 | [diff] [blame] | 16 | {% set DOMAIN_NAME = os_env('DOMAIN_NAME', LAB_CONFIG_NAME) + '.local' %} |
| 17 | {% set HOSTNAME_CFG01 = os_env('HOSTNAME_CFG01', 'cfg01.' + DOMAIN_NAME) %} |
| 18 | {% set HOSTNAME_CTL01 = os_env('HOSTNAME_CTL01', 'ctl01.' + DOMAIN_NAME) %} |
| 19 | {% set HOSTNAME_CTL02 = os_env('HOSTNAME_CTL02', 'ctl02.' + DOMAIN_NAME) %} |
| 20 | {% set HOSTNAME_CTL03 = os_env('HOSTNAME_CTL03', 'ctl03.' + DOMAIN_NAME) %} |
| 21 | {% set HOSTNAME_CMP01 = os_env('HOSTNAME_CMP01', 'cmp01.' + DOMAIN_NAME) %} |
| 22 | {% set HOSTNAME_CMP02 = os_env('HOSTNAME_CMP02', 'cmp02.' + DOMAIN_NAME) %} |
Tatyana Leontovich | b0b68d9 | 2018-01-11 13:27:08 +0200 | [diff] [blame^] | 23 | {% set HOSTNAME_MON01 = os_env('HOSTNAME_MON01', 'mon01.' + DOMAIN_NAME) %} |
| 24 | {% set HOSTNAME_MON02 = os_env('HOSTNAME_MON02', 'mon02.' + DOMAIN_NAME) %} |
| 25 | {% set HOSTNAME_MON03 = os_env('HOSTNAME_MON03', 'mon03.' + DOMAIN_NAME) %} |
Tatyana Leontovich | 56005da | 2017-12-11 13:16:51 +0200 | [diff] [blame] | 26 | {% set HOSTNAME_GTW01 = os_env('HOSTNAME_GTW01', 'gtw01.' + DOMAIN_NAME) %} |
| 27 | {% set HOSTNAME_PRX01 = os_env('HOSTNAME_PRX01', 'prx01.' + DOMAIN_NAME) %} |
| 28 | |
| 29 | template: |
| 30 | devops_settings: |
Tatyana Leontovich | b0b68d9 | 2018-01-11 13:27:08 +0200 | [diff] [blame^] | 31 | env_name: {{ os_env('ENV_NAME', 'virtual-mcp-pike-ovs_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }} |
Tatyana Leontovich | 56005da | 2017-12-11 13:16:51 +0200 | [diff] [blame] | 32 | |
| 33 | address_pools: |
| 34 | private-pool01: |
| 35 | net: {{ os_env('PRIVATE_ADDRESS_POOL01', '10.60.0.0/16:24') }} |
| 36 | params: |
| 37 | ip_reserved: |
| 38 | gateway: +1 |
| 39 | l2_network_device: +1 |
| 40 | default_{{ HOSTNAME_CFG01 }}: +100 |
| 41 | default_{{ HOSTNAME_CTL01 }}: +101 |
| 42 | default_{{ HOSTNAME_CTL02 }}: +102 |
| 43 | default_{{ HOSTNAME_CTL03 }}: +103 |
| 44 | default_{{ HOSTNAME_CMP01 }}: +105 |
| 45 | default_{{ HOSTNAME_CMP02 }}: +106 |
Tatyana Leontovich | b0b68d9 | 2018-01-11 13:27:08 +0200 | [diff] [blame^] | 46 | default_{{ HOSTNAME_MON01 }}: +107 |
| 47 | default_{{ HOSTNAME_MON02 }}: +108 |
| 48 | default_{{ HOSTNAME_MON03 }}: +109 |
Tatyana Leontovich | 56005da | 2017-12-11 13:16:51 +0200 | [diff] [blame] | 49 | default_{{ HOSTNAME_GTW01 }}: +110 |
| 50 | default_{{ HOSTNAME_PRX01 }}: +121 |
| 51 | ip_ranges: |
Tatyana Leontovich | b0b68d9 | 2018-01-11 13:27:08 +0200 | [diff] [blame^] | 52 | dhcp: [+90, -10] |
Tatyana Leontovich | 56005da | 2017-12-11 13:16:51 +0200 | [diff] [blame] | 53 | |
| 54 | admin-pool01: |
| 55 | net: {{ os_env('ADMIN_ADDRESS_POOL01', '10.70.0.0/16:24') }} |
| 56 | params: |
| 57 | ip_reserved: |
| 58 | gateway: +1 |
| 59 | l2_network_device: +1 |
| 60 | default_{{ HOSTNAME_CFG01 }}: +90 |
| 61 | default_{{ HOSTNAME_CTL01 }}: +101 |
| 62 | default_{{ HOSTNAME_CTL02 }}: +102 |
| 63 | default_{{ HOSTNAME_CTL03 }}: +103 |
| 64 | default_{{ HOSTNAME_CMP01 }}: +105 |
| 65 | default_{{ HOSTNAME_CMP02 }}: +106 |
Tatyana Leontovich | b0b68d9 | 2018-01-11 13:27:08 +0200 | [diff] [blame^] | 66 | default_{{ HOSTNAME_MON01 }}: +107 |
| 67 | default_{{ HOSTNAME_MON02 }}: +108 |
| 68 | default_{{ HOSTNAME_MON03 }}: +109 |
Tatyana Leontovich | 56005da | 2017-12-11 13:16:51 +0200 | [diff] [blame] | 69 | default_{{ HOSTNAME_GTW01 }}: +110 |
| 70 | default_{{ HOSTNAME_PRX01 }}: +121 |
| 71 | ip_ranges: |
Tatyana Leontovich | b0b68d9 | 2018-01-11 13:27:08 +0200 | [diff] [blame^] | 72 | dhcp: [+90, -10] |
Tatyana Leontovich | 56005da | 2017-12-11 13:16:51 +0200 | [diff] [blame] | 73 | |
| 74 | tenant-pool01: |
| 75 | net: {{ os_env('TENANT_ADDRESS_POOL01', '10.80.0.0/16:24') }} |
| 76 | params: |
| 77 | ip_reserved: |
| 78 | gateway: +1 |
| 79 | l2_network_device: +1 |
| 80 | default_{{ HOSTNAME_CFG01 }}: +100 |
| 81 | default_{{ HOSTNAME_CTL01 }}: +101 |
| 82 | default_{{ HOSTNAME_CTL02 }}: +102 |
| 83 | default_{{ HOSTNAME_CTL03 }}: +103 |
| 84 | default_{{ HOSTNAME_CMP01 }}: +105 |
| 85 | default_{{ HOSTNAME_CMP02 }}: +106 |
Tatyana Leontovich | b0b68d9 | 2018-01-11 13:27:08 +0200 | [diff] [blame^] | 86 | default_{{ HOSTNAME_MON01 }}: +107 |
| 87 | default_{{ HOSTNAME_MON02 }}: +108 |
| 88 | default_{{ HOSTNAME_MON03 }}: +109 |
Tatyana Leontovich | 56005da | 2017-12-11 13:16:51 +0200 | [diff] [blame] | 89 | default_{{ HOSTNAME_GTW01 }}: +110 |
| 90 | default_{{ HOSTNAME_PRX01 }}: +121 |
| 91 | ip_ranges: |
| 92 | dhcp: [+10, -10] |
| 93 | |
| 94 | external-pool01: |
| 95 | net: {{ os_env('EXTERNAL_ADDRESS_POOL01', '10.90.0.0/16:24') }} |
| 96 | params: |
| 97 | ip_reserved: |
| 98 | gateway: +1 |
| 99 | l2_network_device: +1 |
| 100 | default_{{ HOSTNAME_CFG01 }}: +100 |
| 101 | default_{{ HOSTNAME_CTL01 }}: +101 |
| 102 | default_{{ HOSTNAME_CTL02 }}: +102 |
| 103 | default_{{ HOSTNAME_CTL03 }}: +103 |
| 104 | default_{{ HOSTNAME_CMP01 }}: +105 |
| 105 | default_{{ HOSTNAME_CMP02 }}: +106 |
Tatyana Leontovich | b0b68d9 | 2018-01-11 13:27:08 +0200 | [diff] [blame^] | 106 | default_{{ HOSTNAME_MON01 }}: +107 |
| 107 | default_{{ HOSTNAME_MON02 }}: +108 |
| 108 | default_{{ HOSTNAME_MON03 }}: +109 |
Tatyana Leontovich | 56005da | 2017-12-11 13:16:51 +0200 | [diff] [blame] | 109 | default_{{ HOSTNAME_GTW01 }}: +110 |
| 110 | default_{{ HOSTNAME_PRX01 }}: +121 |
| 111 | ip_ranges: |
| 112 | dhcp: [+10, -10] |
| 113 | |
| 114 | |
| 115 | groups: |
| 116 | - name: default |
| 117 | driver: |
| 118 | name: devops.driver.libvirt |
| 119 | params: |
| 120 | connection_string: !os_env CONNECTION_STRING, qemu:///system |
| 121 | storage_pool_name: !os_env STORAGE_POOL_NAME, default |
| 122 | stp: False |
| 123 | hpet: False |
| 124 | enable_acpi: true |
| 125 | use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true |
| 126 | use_hugepages: !os_env DRIVER_USE_HUGEPAGES, false |
| 127 | |
| 128 | network_pools: |
| 129 | admin: admin-pool01 |
| 130 | private: private-pool01 |
| 131 | tenant: tenant-pool01 |
| 132 | external: external-pool01 |
| 133 | |
| 134 | l2_network_devices: |
| 135 | private: |
| 136 | address_pool: private-pool01 |
| 137 | dhcp: true |
| 138 | |
| 139 | admin: |
| 140 | address_pool: admin-pool01 |
| 141 | dhcp: true |
| 142 | forward: |
| 143 | mode: nat |
| 144 | |
| 145 | tenant: |
| 146 | address_pool: tenant-pool01 |
| 147 | dhcp: true |
| 148 | |
| 149 | external: |
| 150 | address_pool: external-pool01 |
| 151 | dhcp: true |
| 152 | forward: |
| 153 | mode: nat |
| 154 | |
| 155 | |
| 156 | group_volumes: |
| 157 | - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes. |
| 158 | source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img or |
| 159 | # http://apt.tcpcloud.eu/images/ubuntu-16-04-x64-201608231004.qcow2 |
| 160 | format: qcow2 |
| 161 | |
| 162 | nodes: |
| 163 | - name: {{ HOSTNAME_CFG01 }} |
| 164 | role: salt_master |
| 165 | params: |
| 166 | vcpu: !os_env SLAVE_NODE_CPU, 2 |
| 167 | memory: !os_env SLAVE_NODE_MEMORY, 4096 |
| 168 | boot: |
| 169 | - hd |
| 170 | cloud_init_volume_name: iso |
| 171 | cloud_init_iface_up: ens3 |
| 172 | volumes: |
| 173 | - name: system |
| 174 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 175 | backing_store: cloudimage1604 |
| 176 | format: qcow2 |
| 177 | - name: iso # Volume with name 'iso' will be used |
| 178 | # for store image with cloud-init metadata. |
| 179 | capacity: 1 |
| 180 | format: raw |
| 181 | device: cdrom |
| 182 | bus: ide |
| 183 | cloudinit_meta_data: *cloudinit_meta_data |
| 184 | cloudinit_user_data: *cloudinit_user_data_cfg01 |
| 185 | |
| 186 | interfaces: |
| 187 | - label: ens3 |
| 188 | l2_network_device: admin |
| 189 | interface_model: *interface_model |
| 190 | - label: ens4 |
| 191 | l2_network_device: private |
| 192 | interface_model: *interface_model |
| 193 | network_config: |
| 194 | ens3: |
| 195 | networks: |
| 196 | - admin |
| 197 | ens4: |
| 198 | networks: |
| 199 | - private |
| 200 | |
| 201 | - name: {{ HOSTNAME_CTL01 }} |
| 202 | role: salt_minion |
| 203 | params: |
| 204 | vcpu: !os_env SLAVE_NODE_CPU, 2 |
| 205 | memory: !os_env SLAVE_NODE_MEMORY, 8192 |
| 206 | boot: |
| 207 | - hd |
| 208 | cloud_init_volume_name: iso |
| 209 | cloud_init_iface_up: ens3 |
| 210 | volumes: |
| 211 | - name: system |
| 212 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 213 | backing_store: cloudimage1604 |
| 214 | format: qcow2 |
| 215 | - name: cinder |
| 216 | capacity: 50 |
| 217 | format: qcow2 |
| 218 | - name: iso # Volume with name 'iso' will be used |
| 219 | # for store image with cloud-init metadata. |
| 220 | capacity: 1 |
| 221 | format: raw |
| 222 | device: cdrom |
| 223 | bus: ide |
| 224 | cloudinit_meta_data: *cloudinit_meta_data |
| 225 | cloudinit_user_data: *cloudinit_user_data_1604 |
| 226 | |
| 227 | interfaces: &interfaces |
| 228 | - label: ens3 |
| 229 | l2_network_device: admin |
| 230 | interface_model: *interface_model |
| 231 | - label: ens4 |
| 232 | l2_network_device: private |
| 233 | interface_model: *interface_model |
| 234 | network_config: &network_config |
| 235 | ens3: |
| 236 | networks: |
| 237 | - admin |
| 238 | ens4: |
| 239 | networks: |
| 240 | - private |
| 241 | |
| 242 | - name: {{ HOSTNAME_CTL02 }} |
| 243 | role: salt_minion |
| 244 | params: |
| 245 | vcpu: !os_env SLAVE_NODE_CPU, 2 |
| 246 | memory: !os_env SLAVE_NODE_MEMORY, 8192 |
| 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: cinder |
| 257 | capacity: 50 |
| 258 | format: qcow2 |
| 259 | - name: iso # Volume with name 'iso' will be used |
| 260 | # for store image with cloud-init metadata. |
| 261 | capacity: 1 |
| 262 | format: raw |
| 263 | device: cdrom |
| 264 | bus: ide |
| 265 | cloudinit_meta_data: *cloudinit_meta_data |
| 266 | cloudinit_user_data: *cloudinit_user_data_1604 |
| 267 | |
| 268 | interfaces: *interfaces |
| 269 | network_config: *network_config |
| 270 | |
| 271 | - name: {{ HOSTNAME_CTL03 }} |
| 272 | role: salt_minion |
| 273 | params: |
| 274 | vcpu: !os_env SLAVE_NODE_CPU, 2 |
| 275 | memory: !os_env SLAVE_NODE_MEMORY, 8192 |
| 276 | boot: |
| 277 | - hd |
| 278 | cloud_init_volume_name: iso |
| 279 | cloud_init_iface_up: ens3 |
| 280 | volumes: |
| 281 | - name: system |
| 282 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 283 | backing_store: cloudimage1604 |
| 284 | format: qcow2 |
| 285 | - name: cinder |
| 286 | capacity: 50 |
| 287 | format: qcow2 |
| 288 | - name: iso # Volume with name 'iso' will be used |
| 289 | # for store image with cloud-init metadata. |
| 290 | capacity: 1 |
| 291 | format: raw |
| 292 | device: cdrom |
| 293 | bus: ide |
| 294 | cloudinit_meta_data: *cloudinit_meta_data |
| 295 | cloudinit_user_data: *cloudinit_user_data_1604 |
| 296 | |
| 297 | interfaces: *interfaces |
| 298 | network_config: *network_config |
| 299 | |
Tatyana Leontovich | b0b68d9 | 2018-01-11 13:27:08 +0200 | [diff] [blame^] | 300 | - name: {{ HOSTNAME_MON01 }} |
Tatyana Leontovich | 56005da | 2017-12-11 13:16:51 +0200 | [diff] [blame] | 301 | role: salt_minion |
| 302 | params: |
Tatyana Leontovich | b0b68d9 | 2018-01-11 13:27:08 +0200 | [diff] [blame^] | 303 | vcpu: !os_env SLAVE_NODE_CPU, 3 |
Tatyana Leontovich | 56005da | 2017-12-11 13:16:51 +0200 | [diff] [blame] | 304 | memory: !os_env SLAVE_NODE_MEMORY, 2048 |
| 305 | boot: |
| 306 | - hd |
| 307 | cloud_init_volume_name: iso |
| 308 | cloud_init_iface_up: ens3 |
| 309 | volumes: |
| 310 | - name: system |
| 311 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 312 | backing_store: cloudimage1604 |
| 313 | format: qcow2 |
| 314 | - name: iso # Volume with name 'iso' will be used |
| 315 | # for store image with cloud-init metadata. |
| 316 | capacity: 1 |
| 317 | format: raw |
| 318 | device: cdrom |
| 319 | bus: ide |
| 320 | cloudinit_meta_data: *cloudinit_meta_data |
| 321 | cloudinit_user_data: *cloudinit_user_data_1604 |
| 322 | |
| 323 | interfaces: *interfaces |
| 324 | network_config: *network_config |
| 325 | |
Tatyana Leontovich | b0b68d9 | 2018-01-11 13:27:08 +0200 | [diff] [blame^] | 326 | - name: {{ HOSTNAME_MON02 }} |
Tatyana Leontovich | 56005da | 2017-12-11 13:16:51 +0200 | [diff] [blame] | 327 | role: salt_minion |
| 328 | params: |
Tatyana Leontovich | b0b68d9 | 2018-01-11 13:27:08 +0200 | [diff] [blame^] | 329 | vcpu: !os_env SLAVE_NODE_CPU, 3 |
Tatyana Leontovich | 56005da | 2017-12-11 13:16:51 +0200 | [diff] [blame] | 330 | memory: !os_env SLAVE_NODE_MEMORY, 2048 |
| 331 | boot: |
| 332 | - hd |
| 333 | cloud_init_volume_name: iso |
| 334 | cloud_init_iface_up: ens3 |
| 335 | volumes: |
| 336 | - name: system |
| 337 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 338 | backing_store: cloudimage1604 |
| 339 | format: qcow2 |
| 340 | - name: iso # Volume with name 'iso' will be used |
| 341 | # for store image with cloud-init metadata. |
| 342 | capacity: 1 |
| 343 | format: raw |
| 344 | device: cdrom |
| 345 | bus: ide |
| 346 | cloudinit_meta_data: *cloudinit_meta_data |
| 347 | cloudinit_user_data: *cloudinit_user_data_1604 |
| 348 | |
| 349 | interfaces: *interfaces |
| 350 | network_config: *network_config |
| 351 | |
Tatyana Leontovich | b0b68d9 | 2018-01-11 13:27:08 +0200 | [diff] [blame^] | 352 | - name: {{ HOSTNAME_MON03 }} |
Tatyana Leontovich | 56005da | 2017-12-11 13:16:51 +0200 | [diff] [blame] | 353 | role: salt_minion |
| 354 | params: |
Tatyana Leontovich | b0b68d9 | 2018-01-11 13:27:08 +0200 | [diff] [blame^] | 355 | vcpu: !os_env SLAVE_NODE_CPU, 3 |
Tatyana Leontovich | 56005da | 2017-12-11 13:16:51 +0200 | [diff] [blame] | 356 | memory: !os_env SLAVE_NODE_MEMORY, 2048 |
| 357 | boot: |
| 358 | - hd |
| 359 | cloud_init_volume_name: iso |
| 360 | cloud_init_iface_up: ens3 |
| 361 | volumes: |
| 362 | - name: system |
| 363 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 364 | backing_store: cloudimage1604 |
| 365 | format: qcow2 |
| 366 | - name: iso # Volume with name 'iso' will be used |
| 367 | # for store image with cloud-init metadata. |
| 368 | capacity: 1 |
| 369 | format: raw |
| 370 | device: cdrom |
| 371 | bus: ide |
| 372 | cloudinit_meta_data: *cloudinit_meta_data |
| 373 | cloudinit_user_data: *cloudinit_user_data_1604 |
| 374 | |
| 375 | interfaces: *interfaces |
| 376 | network_config: *network_config |
| 377 | |
| 378 | - name: {{ HOSTNAME_PRX01 }} |
| 379 | role: salt_minion |
| 380 | params: |
| 381 | vcpu: !os_env SLAVE_NODE_CPU, 1 |
| 382 | memory: !os_env SLAVE_NODE_MEMORY, 2048 |
| 383 | boot: |
| 384 | - hd |
| 385 | cloud_init_volume_name: iso |
| 386 | cloud_init_iface_up: ens3 |
| 387 | volumes: |
| 388 | - name: system |
| 389 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 390 | backing_store: cloudimage1604 |
| 391 | format: qcow2 |
Tatyana Leontovich | b0b68d9 | 2018-01-11 13:27:08 +0200 | [diff] [blame^] | 392 | - name: cinder |
| 393 | capacity: 50 |
| 394 | format: qcow2 |
Tatyana Leontovich | 56005da | 2017-12-11 13:16:51 +0200 | [diff] [blame] | 395 | - name: iso # Volume with name 'iso' will be used |
| 396 | # for store image with cloud-init metadata. |
| 397 | capacity: 1 |
| 398 | format: raw |
| 399 | device: cdrom |
| 400 | bus: ide |
| 401 | cloudinit_meta_data: *cloudinit_meta_data |
| 402 | cloudinit_user_data: *cloudinit_user_data_1604 |
| 403 | |
| 404 | interfaces: *interfaces |
| 405 | network_config: *network_config |
| 406 | |
| 407 | - name: {{ HOSTNAME_CMP01 }} |
| 408 | role: salt_minion |
| 409 | params: |
| 410 | vcpu: !os_env SLAVE_NODE_CPU, 3 |
| 411 | memory: !os_env SLAVE_NODE_MEMORY, 4096 |
| 412 | boot: |
| 413 | - hd |
| 414 | cloud_init_volume_name: iso |
| 415 | cloud_init_iface_up: ens3 |
| 416 | volumes: |
| 417 | - name: system |
| 418 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 419 | backing_store: cloudimage1604 |
| 420 | format: qcow2 |
| 421 | - name: iso # Volume with name 'iso' will be used |
| 422 | # for store image with cloud-init metadata. |
| 423 | capacity: 1 |
| 424 | format: raw |
| 425 | device: cdrom |
| 426 | bus: ide |
| 427 | cloudinit_meta_data: *cloudinit_meta_data |
| 428 | cloudinit_user_data: *cloudinit_user_data_1604 |
| 429 | |
| 430 | |
| 431 | interfaces: &all_interfaces |
| 432 | - label: ens3 |
| 433 | l2_network_device: admin |
| 434 | interface_model: *interface_model |
| 435 | - label: ens4 |
| 436 | l2_network_device: private |
| 437 | interface_model: *interface_model |
| 438 | - label: ens5 |
| 439 | l2_network_device: tenant |
| 440 | interface_model: *interface_model |
| 441 | - label: ens6 |
| 442 | l2_network_device: external |
| 443 | interface_model: *interface_model |
| 444 | network_config: &all_network_config |
| 445 | ens3: |
| 446 | networks: |
| 447 | - admin |
| 448 | ens4: |
| 449 | networks: |
| 450 | - private |
| 451 | ens5: |
| 452 | networks: |
| 453 | - tenant |
| 454 | ens6: |
| 455 | networks: |
| 456 | - external |
| 457 | |
| 458 | - name: {{ HOSTNAME_CMP02 }} |
| 459 | role: salt_minion |
| 460 | params: |
| 461 | vcpu: !os_env SLAVE_NODE_CPU, 3 |
| 462 | memory: !os_env SLAVE_NODE_MEMORY, 4096 |
| 463 | boot: |
| 464 | - hd |
| 465 | cloud_init_volume_name: iso |
| 466 | cloud_init_iface_up: ens3 |
| 467 | volumes: |
| 468 | - name: system |
| 469 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 470 | backing_store: cloudimage1604 |
| 471 | format: qcow2 |
| 472 | - name: iso # Volume with name 'iso' will be used |
| 473 | # for store image with cloud-init metadata. |
| 474 | capacity: 1 |
| 475 | format: raw |
| 476 | device: cdrom |
| 477 | bus: ide |
| 478 | cloudinit_meta_data: *cloudinit_meta_data |
| 479 | cloudinit_user_data: *cloudinit_user_data_1604 |
| 480 | |
| 481 | interfaces: *all_interfaces |
| 482 | network_config: *all_network_config |
| 483 | |
| 484 | - name: {{ HOSTNAME_GTW01 }} |
| 485 | role: salt_minion |
| 486 | params: |
| 487 | vcpu: !os_env SLAVE_NODE_CPU, 1 |
| 488 | memory: !os_env SLAVE_NODE_MEMORY, 2048 |
| 489 | boot: |
| 490 | - hd |
| 491 | cloud_init_volume_name: iso |
| 492 | cloud_init_iface_up: ens3 |
| 493 | volumes: |
| 494 | - name: system |
| 495 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 496 | backing_store: cloudimage1604 |
| 497 | format: qcow2 |
| 498 | - name: iso # Volume with name 'iso' will be used |
| 499 | # for store image with cloud-init metadata. |
| 500 | capacity: 1 |
| 501 | format: raw |
| 502 | device: cdrom |
| 503 | bus: ide |
| 504 | cloudinit_meta_data: *cloudinit_meta_data |
| 505 | cloudinit_user_data: *cloudinit_user_data_1604 |
| 506 | |
| 507 | interfaces: *all_interfaces |
| 508 | network_config: *all_network_config |