Dennis Dmitriev | 77d886c | 2017-05-24 13:13:26 +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 | |
| 4 | {% import 'physical_mcp11_dvr/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %} |
| 5 | {% import 'physical_mcp11_dvr/underlay--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 with context %} |
| 6 | {% import 'physical_mcp11_dvr/underlay--user-data1604.yaml' as CLOUDINIT_USER_DATA_1604 with context %} |
| 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 | |
| 15 | {% set DOMAIN_NAME = os_env('LAB_CONFIG_NAME', 'physical_mcp11_dvr') + '.local' %} |
| 16 | {% set HOSTNAME_CFG01 = os_env('HOSTNAME_CFG01', 'cfg01.' + DOMAIN_NAME) %} |
| 17 | {% set HOSTNAME_KVM01 = os_env('HOSTNAME_KVM01', 'kvm01.' + DOMAIN_NAME) %} |
| 18 | {% set HOSTNAME_KVM02 = os_env('HOSTNAME_KVM02', 'kvm02.' + DOMAIN_NAME) %} |
| 19 | {% set HOSTNAME_KVM03 = os_env('HOSTNAME_KVM03', 'kvm03.' + DOMAIN_NAME) %} |
| 20 | {% set HOSTNAME_CMP001 = os_env('HOSTNAME_CMP001', 'cmp001.' + DOMAIN_NAME) %} |
| 21 | {% set HOSTNAME_CMP002 = os_env('HOSTNAME_CMP002', 'cmp002.' + DOMAIN_NAME) %} |
| 22 | {% set HOSTNAME_GTW01 = os_env('HOSTNAME_GTW01', 'gtw01.' + DOMAIN_NAME) %} |
| 23 | {% set HOSTNAME_GTW02 = os_env('HOSTNAME_GTW01', 'gtw02.' + DOMAIN_NAME) %} |
| 24 | |
| 25 | template: |
| 26 | devops_settings: |
| 27 | env_name: {{ os_env('ENV_NAME', 'physical_mcp11_dvr_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }} |
| 28 | |
| 29 | address_pools: |
| 30 | admin-pool01: |
| 31 | net: {{ os_env('ADMIN_ADDRESS_POOL01', '172.16.164.0/26:26') }} |
| 32 | params: |
| 33 | ip_reserved: |
| 34 | gateway: +1 |
| 35 | l2_network_device: +1 |
| 36 | default_{{ HOSTNAME_CFG01 }}: 172.16.164.10 |
| 37 | default_{{ HOSTNAME_KVM01 }}: 172.16.164.6 |
| 38 | default_{{ HOSTNAME_KVM02 }}: 172.16.164.7 |
| 39 | default_{{ HOSTNAME_KVM03 }}: 172.16.164.8 |
| 40 | default_{{ HOSTNAME_CMP001 }}: 172.16.164.2 |
| 41 | default_{{ HOSTNAME_CMP002 }}: 172.16.164.3 |
| 42 | default_{{ HOSTNAME_GTW01 }}: 172.16.164.61 |
| 43 | default_{{ HOSTNAME_GTW02 }}: 172.16.164.5 |
| 44 | |
| 45 | groups: |
| 46 | - name: default |
| 47 | driver: |
| 48 | name: devops_driver_ironic |
| 49 | params: |
| 50 | os_auth_token: fake-token |
| 51 | ironic_url: !os_env IRONIC_URL # URL that will be used by fuel-devops |
| 52 | # to access Ironic API |
| 53 | # Agent URL that is accessible from deploying node when nodes |
| 54 | # are bootstrapped with PXE. Usually PXE/provision network address is used. |
| 55 | agent_kernel_url: !os_env IRONIC_AGENT_KERNEL_URL |
| 56 | agent_ramdisk_url: !os_env IRONIC_AGENT_RAMDISK_URL |
| 57 | |
| 58 | network_pools: |
| 59 | admin: admin-pool01 |
| 60 | |
| 61 | l2_network_devices: |
| 62 | admin: |
| 63 | address_pool: admin-pool01 |
| 64 | |
| 65 | |
| 66 | nodes: |
| 67 | |
| 68 | - name: {{ HOSTNAME_CFG01 }} |
| 69 | role: salt_master |
| 70 | params: |
| 71 | ipmi_user: !os_env IPMI_USER |
| 72 | ipmi_password: !os_env IPMI_PASSWORD |
| 73 | ipmi_previlegies: OPERATOR |
| 74 | ipmi_host: !os_env IPMI_HOST_CFG01 # hostname or IP address |
| 75 | ipmi_lan_interface: lanplus |
| 76 | ipmi_port: 623 |
| 77 | |
| 78 | root_volume_name: system # see 'volumes' below |
| 79 | cloud_init_volume_name: iso # see 'volumes' below |
| 80 | volumes: |
| 81 | - name: system |
| 82 | capacity: !os_env NODE_VOLUME_SIZE, 200 |
| 83 | |
| 84 | # The same as for agent URL, here is an URL to the image that should be |
| 85 | # used for deploy the node. It should also be accessible from deploying |
| 86 | # node when nodes are provisioned by agent. Usually PXE/provision network address is used. |
| 87 | source_image: !os_env IRONIC_SOURCE_IMAGE_URL |
| 88 | source_image_checksum: !os_env IRONIC_SOURCE_IMAGE_CHECKSUM |
| 89 | |
| 90 | - name: iso # Volume with name 'iso' will be used |
| 91 | # for store image with cloud-init metadata. |
| 92 | |
| 93 | cloudinit_meta_data: *cloudinit_meta_data |
| 94 | cloudinit_user_data: *cloudinit_user_data_cfg01 |
| 95 | |
| 96 | interfaces: |
| 97 | - label: eth0 |
| 98 | l2_network_device: admin |
| 99 | mac_address: !os_env ETH0_MAC_ADDRESS_CFG01 |
| 100 | - label: eth1 |
| 101 | mac_address: !os_env ETH1_MAC_ADDRESS_CFG01 |
| 102 | |
| 103 | network_config: |
| 104 | eth0: |
| 105 | networks: |
| 106 | - admin |
| 107 | eth1: |
| 108 | networks: |
| 109 | - control |
| 110 | |
| 111 | - name: {{ HOSTNAME_KVM01 }} |
| 112 | role: salt_minion |
| 113 | params: |
| 114 | ipmi_user: !os_env IPMI_USER |
| 115 | ipmi_password: !os_env IPMI_PASSWORD |
| 116 | ipmi_previlegies: OPERATOR |
| 117 | ipmi_host: !os_env IPMI_HOST_KVM01 # hostname or IP address |
| 118 | ipmi_lan_interface: lanplus |
| 119 | ipmi_port: 623 |
| 120 | |
| 121 | root_volume_name: system # see 'volumes' below |
| 122 | cloud_init_volume_name: iso # see 'volumes' below |
| 123 | volumes: |
| 124 | - name: system |
| 125 | capacity: !os_env NODE_VOLUME_SIZE, 200 |
| 126 | |
| 127 | # The same as for agent URL, here is an URL to the image that should be |
| 128 | # used for deploy the node. It should also be accessible from deploying |
| 129 | # node when nodes are provisioned by agent. Usually PXE/provision network address is used. |
| 130 | source_image: !os_env IRONIC_SOURCE_IMAGE_URL |
| 131 | source_image_checksum: !os_env IRONIC_SOURCE_IMAGE_CHECKSUM |
| 132 | |
| 133 | - name: iso # Volume with name 'iso' will be used |
| 134 | # for store image with cloud-init metadata. |
| 135 | |
| 136 | cloudinit_meta_data: *cloudinit_meta_data |
| 137 | cloudinit_user_data: *cloudinit_user_data_cfg01 |
| 138 | |
| 139 | interfaces: |
| 140 | - label: eth0 |
| 141 | l2_network_device: admin |
| 142 | mac_address: !os_env ETH0_MAC_ADDRESS_KVM01 |
| 143 | - label: eth1 |
| 144 | mac_address: !os_env ETH1_MAC_ADDRESS_KVM01 |
| 145 | # there is no eth2 interface on the node |
| 146 | #- label: eth2 |
| 147 | # mac_address: !os_env ETH2_MAC_ADDRESS_KVM01 |
| 148 | |
| 149 | network_config: |
| 150 | eth0: |
| 151 | networks: |
| 152 | - admin |
| 153 | bond0: |
| 154 | networks: |
| 155 | - control |
| 156 | aggregation: active-backup |
| 157 | parents: |
| 158 | - eth1 |
| 159 | #- eth2 |
| 160 | |
| 161 | - name: {{ HOSTNAME_KVM02 }} |
| 162 | role: salt_minion |
| 163 | params: |
| 164 | ipmi_user: !os_env IPMI_USER |
| 165 | ipmi_password: !os_env IPMI_PASSWORD |
| 166 | ipmi_previlegies: OPERATOR |
| 167 | ipmi_host: !os_env IPMI_HOST_KVM02 # hostname or IP address |
| 168 | ipmi_lan_interface: lanplus |
| 169 | ipmi_port: 623 |
| 170 | |
| 171 | root_volume_name: system # see 'volumes' below |
| 172 | cloud_init_volume_name: iso # see 'volumes' below |
| 173 | volumes: |
| 174 | - name: system |
| 175 | capacity: !os_env NODE_VOLUME_SIZE, 200 |
| 176 | |
| 177 | # The same as for agent URL, here is an URL to the image that should be |
| 178 | # used for deploy the node. It should also be accessible from deploying |
| 179 | # node when nodes are provisioned by agent. Usually PXE/provision network address is used. |
| 180 | source_image: !os_env IRONIC_SOURCE_IMAGE_URL |
| 181 | source_image_checksum: !os_env IRONIC_SOURCE_IMAGE_CHECKSUM |
| 182 | |
| 183 | - name: iso # Volume with name 'iso' will be used |
| 184 | # for store image with cloud-init metadata. |
| 185 | |
| 186 | cloudinit_meta_data: *cloudinit_meta_data |
| 187 | cloudinit_user_data: *cloudinit_user_data_cfg01 |
| 188 | |
| 189 | interfaces: |
| 190 | - label: eth0 |
| 191 | l2_network_device: admin |
| 192 | mac_address: !os_env ETH0_MAC_ADDRESS_KVM02 |
| 193 | - label: eth1 |
| 194 | mac_address: !os_env ETH1_MAC_ADDRESS_KVM02 |
| 195 | - label: eth2 |
| 196 | mac_address: !os_env ETH2_MAC_ADDRESS_KVM02 |
| 197 | |
| 198 | network_config: |
| 199 | eth0: |
| 200 | networks: |
| 201 | - admin |
| 202 | bond0: |
| 203 | networks: |
| 204 | - control |
| 205 | aggregation: active-backup |
| 206 | parents: |
| 207 | - eth1 |
| 208 | - eth2 |
| 209 | |
| 210 | - name: {{ HOSTNAME_KVM03 }} |
| 211 | role: salt_minion |
| 212 | params: |
| 213 | ipmi_user: !os_env IPMI_USER |
| 214 | ipmi_password: !os_env IPMI_PASSWORD |
| 215 | ipmi_previlegies: OPERATOR |
| 216 | ipmi_host: !os_env IPMI_HOST_KVM03 # hostname or IP address |
| 217 | ipmi_lan_interface: lanplus |
| 218 | ipmi_port: 623 |
| 219 | |
| 220 | root_volume_name: system # see 'volumes' below |
| 221 | cloud_init_volume_name: iso # see 'volumes' below |
| 222 | volumes: |
| 223 | - name: system |
| 224 | capacity: !os_env NODE_VOLUME_SIZE, 200 |
| 225 | |
| 226 | # The same as for agent URL, here is an URL to the image that should be |
| 227 | # used for deploy the node. It should also be accessible from deploying |
| 228 | # node when nodes are provisioned by agent. Usually PXE/provision network address is used. |
| 229 | source_image: !os_env IRONIC_SOURCE_IMAGE_URL |
| 230 | source_image_checksum: !os_env IRONIC_SOURCE_IMAGE_CHECKSUM |
| 231 | |
| 232 | - name: iso # Volume with name 'iso' will be used |
| 233 | # for store image with cloud-init metadata. |
| 234 | |
| 235 | cloudinit_meta_data: *cloudinit_meta_data |
| 236 | cloudinit_user_data: *cloudinit_user_data_cfg01 |
| 237 | |
| 238 | interfaces: |
| 239 | - label: eth0 |
| 240 | l2_network_device: admin |
| 241 | mac_address: !os_env ETH0_MAC_ADDRESS_KVM03 |
| 242 | - label: eth1 |
| 243 | mac_address: !os_env ETH1_MAC_ADDRESS_KVM03 |
| 244 | - label: eth2 |
| 245 | mac_address: !os_env ETH2_MAC_ADDRESS_KVM03 |
| 246 | |
| 247 | network_config: |
| 248 | eth0: |
| 249 | networks: |
| 250 | - admin |
| 251 | bond0: |
| 252 | networks: |
| 253 | - control |
| 254 | aggregation: active-backup |
| 255 | parents: |
| 256 | - eth1 |
| 257 | - eth2 |
| 258 | |
| 259 | |
| 260 | - name: {{ HOSTNAME_CMP001 }} |
| 261 | role: salt_minion |
| 262 | params: |
| 263 | ipmi_user: !os_env IPMI_USER |
| 264 | ipmi_password: !os_env IPMI_PASSWORD |
| 265 | ipmi_previlegies: OPERATOR |
| 266 | ipmi_host: !os_env IPMI_HOST_CMP001 # hostname or IP address |
| 267 | ipmi_lan_interface: lanplus |
| 268 | ipmi_port: 623 |
| 269 | |
| 270 | root_volume_name: system # see 'volumes' below |
| 271 | cloud_init_volume_name: iso # see 'volumes' below |
| 272 | volumes: |
| 273 | - name: system |
| 274 | capacity: !os_env NODE_VOLUME_SIZE, 200 |
| 275 | |
| 276 | # The same as for agent URL, here is an URL to the image that should be |
| 277 | # used for deploy the node. It should also be accessible from deploying |
| 278 | # node when nodes are provisioned by agent. Usually PXE/provision network address is used. |
| 279 | source_image: !os_env IRONIC_SOURCE_IMAGE_URL |
| 280 | source_image_checksum: !os_env IRONIC_SOURCE_IMAGE_CHECKSUM |
| 281 | |
| 282 | - name: iso # Volume with name 'iso' will be used |
| 283 | # for store image with cloud-init metadata. |
| 284 | |
| 285 | cloudinit_meta_data: *cloudinit_meta_data |
| 286 | cloudinit_user_data: *cloudinit_user_data_cfg01 |
| 287 | |
| 288 | interfaces: |
| 289 | - label: eth0 |
| 290 | l2_network_device: admin |
| 291 | mac_address: !os_env ETH0_MAC_ADDRESS_CMP001 |
| 292 | - label: eth1 |
| 293 | mac_address: !os_env ETH1_MAC_ADDRESS_CMP001 |
| 294 | - label: eth2 |
| 295 | mac_address: !os_env ETH2_MAC_ADDRESS_CMP001 |
| 296 | |
| 297 | network_config: |
| 298 | eth0: |
| 299 | networks: |
| 300 | - admin |
| 301 | bond0: |
| 302 | networks: |
| 303 | - control |
| 304 | aggregation: active-backup |
| 305 | parents: |
| 306 | - eth1 |
| 307 | - eth2 |
| 308 | |
| 309 | |
| 310 | - name: {{ HOSTNAME_CMP002 }} |
| 311 | role: salt_minion |
| 312 | params: |
| 313 | ipmi_user: !os_env IPMI_USER |
| 314 | ipmi_password: !os_env IPMI_PASSWORD |
| 315 | ipmi_previlegies: OPERATOR |
| 316 | ipmi_host: !os_env IPMI_HOST_CMP002 # hostname or IP address |
| 317 | ipmi_lan_interface: lanplus |
| 318 | ipmi_port: 623 |
| 319 | |
| 320 | root_volume_name: system # see 'volumes' below |
| 321 | cloud_init_volume_name: iso # see 'volumes' below |
| 322 | volumes: |
| 323 | - name: system |
| 324 | capacity: !os_env NODE_VOLUME_SIZE, 200 |
| 325 | |
| 326 | # The same as for agent URL, here is an URL to the image that should be |
| 327 | # used for deploy the node. It should also be accessible from deploying |
| 328 | # node when nodes are provisioned by agent. Usually PXE/provision network address is used. |
| 329 | source_image: !os_env IRONIC_SOURCE_IMAGE_URL |
| 330 | source_image_checksum: !os_env IRONIC_SOURCE_IMAGE_CHECKSUM |
| 331 | |
| 332 | - name: iso # Volume with name 'iso' will be used |
| 333 | # for store image with cloud-init metadata. |
| 334 | |
| 335 | cloudinit_meta_data: *cloudinit_meta_data |
| 336 | cloudinit_user_data: *cloudinit_user_data_cfg01 |
| 337 | |
| 338 | interfaces: |
| 339 | - label: eth0 |
| 340 | l2_network_device: admin |
| 341 | mac_address: !os_env ETH0_MAC_ADDRESS_CMP002 |
| 342 | - label: eth1 |
| 343 | mac_address: !os_env ETH1_MAC_ADDRESS_CMP002 |
| 344 | - label: eth2 |
| 345 | mac_address: !os_env ETH2_MAC_ADDRESS_CMP002 |
| 346 | |
| 347 | network_config: |
| 348 | eth0: |
| 349 | networks: |
| 350 | - admin |
| 351 | bond0: |
| 352 | networks: |
| 353 | - control |
| 354 | aggregation: active-backup |
| 355 | parents: |
| 356 | - eth1 |
| 357 | - eth2 |
| 358 | |
| 359 | |
| 360 | - name: {{ HOSTNAME_GTW01 }} |
| 361 | role: salt_minion |
| 362 | params: |
| 363 | ipmi_user: !os_env IPMI_USER |
| 364 | ipmi_password: !os_env IPMI_PASSWORD |
| 365 | ipmi_previlegies: OPERATOR |
| 366 | ipmi_host: !os_env IPMI_HOST_GTW01 # hostname or IP address |
| 367 | ipmi_lan_interface: lanplus |
| 368 | ipmi_port: 623 |
| 369 | |
| 370 | root_volume_name: system # see 'volumes' below |
| 371 | cloud_init_volume_name: iso # see 'volumes' below |
| 372 | volumes: |
| 373 | - name: system |
| 374 | capacity: !os_env NODE_VOLUME_SIZE, 200 |
| 375 | |
| 376 | # The same as for agent URL, here is an URL to the image that should be |
| 377 | # used for deploy the node. It should also be accessible from deploying |
| 378 | # node when nodes are provisioned by agent. Usually PXE/provision network address is used. |
| 379 | source_image: !os_env IRONIC_SOURCE_IMAGE_URL |
| 380 | source_image_checksum: !os_env IRONIC_SOURCE_IMAGE_CHECKSUM |
| 381 | |
| 382 | - name: iso # Volume with name 'iso' will be used |
| 383 | # for store image with cloud-init metadata. |
| 384 | |
| 385 | cloudinit_meta_data: *cloudinit_meta_data |
| 386 | cloudinit_user_data: *cloudinit_user_data_cfg01 |
| 387 | |
| 388 | interfaces: |
| 389 | - label: eth0 |
| 390 | l2_network_device: admin |
| 391 | mac_address: !os_env ETH0_MAC_ADDRESS_GTW01 |
| 392 | - label: eth1 |
| 393 | mac_address: !os_env ETH1_MAC_ADDRESS_GTW01 |
| 394 | - label: eth2 |
| 395 | mac_address: !os_env ETH2_MAC_ADDRESS_GTW01 |
| 396 | |
| 397 | network_config: |
| 398 | eth0: |
| 399 | networks: |
| 400 | - admin |
| 401 | bond0: |
| 402 | networks: |
| 403 | - control |
| 404 | aggregation: active-backup |
| 405 | parents: |
| 406 | - eth1 |
| 407 | - eth2 |
| 408 | |
| 409 | - name: {{ HOSTNAME_GTW02 }} |
| 410 | role: salt_minion |
| 411 | params: |
| 412 | ipmi_user: !os_env IPMI_USER |
| 413 | ipmi_password: !os_env IPMI_PASSWORD |
| 414 | ipmi_previlegies: OPERATOR |
| 415 | ipmi_host: !os_env IPMI_HOST_GTW02 # hostname or IP address |
| 416 | ipmi_lan_interface: lanplus |
| 417 | ipmi_port: 623 |
| 418 | |
| 419 | root_volume_name: system # see 'volumes' below |
| 420 | cloud_init_volume_name: iso # see 'volumes' below |
| 421 | volumes: |
| 422 | - name: system |
| 423 | capacity: !os_env NODE_VOLUME_SIZE, 200 |
| 424 | |
| 425 | # The same as for agent URL, here is an URL to the image that should be |
| 426 | # used for deploy the node. It should also be accessible from deploying |
| 427 | # node when nodes are provisioned by agent. Usually PXE/provision network address is used. |
| 428 | source_image: !os_env IRONIC_SOURCE_IMAGE_URL |
| 429 | source_image_checksum: !os_env IRONIC_SOURCE_IMAGE_CHECKSUM |
| 430 | |
| 431 | - name: iso # Volume with name 'iso' will be used |
| 432 | # for store image with cloud-init metadata. |
| 433 | |
| 434 | cloudinit_meta_data: *cloudinit_meta_data |
| 435 | cloudinit_user_data: *cloudinit_user_data_cfg01 |
| 436 | |
| 437 | interfaces: |
| 438 | - label: eth0 |
| 439 | l2_network_device: admin |
| 440 | mac_address: !os_env ETH0_MAC_ADDRESS_GTW02 |
| 441 | - label: eth1 |
| 442 | mac_address: !os_env ETH1_MAC_ADDRESS_GTW02 |
| 443 | # there is no eth2 interface on the node |
| 444 | #- label: eth2 |
| 445 | # mac_address: !os_env ETH2_MAC_ADDRESS_GTW02 |
| 446 | |
| 447 | network_config: |
| 448 | eth0: |
| 449 | networks: |
| 450 | - admin |
| 451 | bond0: |
| 452 | networks: |
| 453 | - control |
| 454 | aggregation: active-backup |
| 455 | parents: |
| 456 | - eth1 |
| 457 | #- eth2 |