Oleksii Butenko | ade9c6c | 2018-03-05 15:16:40 +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 | {% set LAB_CONFIG_NAME = os_env('LAB_CONFIG_NAME', 'cookied-bm-mcp-ovs-dpdk') %} |
| 4 | {% set DOMAIN_NAME = os_env('DOMAIN_NAME', LAB_CONFIG_NAME + '.local') %} |
| 5 | {% set HOSTNAME_CFG01 = os_env('HOSTNAME_CFG01', 'cfg01.' + DOMAIN_NAME) %} |
| 6 | {% set HOSTNAME_KVM01 = os_env('HOSTNAME_KVM01', 'kvm01.' + DOMAIN_NAME) %} |
| 7 | {% set HOSTNAME_KVM02 = os_env('HOSTNAME_KVM02', 'kvm02.' + DOMAIN_NAME) %} |
| 8 | {% set HOSTNAME_KVM03 = os_env('HOSTNAME_KVM03', 'kvm03.' + DOMAIN_NAME) %} |
| 9 | {% set HOSTNAME_CMP01 = os_env('HOSTNAME_CMP01', 'cmp01.' + DOMAIN_NAME) %} |
| 10 | {% set HOSTNAME_CMP02 = os_env('HOSTNAME_CMP02', 'cmp02.' + DOMAIN_NAME) %} |
| 11 | {% set HOSTNAME_GTW01 = os_env('HOSTNAME_GTW01', 'gtw01.' + DOMAIN_NAME) %} |
| 12 | {% set HOSTNAME_GTW02 = os_env('HOSTNAME_GTW02', 'gtw02.' + DOMAIN_NAME) %} |
| 13 | {% set ETH1_IP_ADDRESS_CFG01 = os_env('ETH1_IP_ADDRESS_CFG01', '172.16.49.2') %} |
Oleksii Butenko | f65a004 | 2018-06-27 13:38:43 +0300 | [diff] [blame] | 14 | {% set ETH2_IP_ADDRESS_CFG01 = os_env('ETH2_IP_ADDRESS_CFG01', '10.167.11.253') %} |
Oleksii Butenko | ade9c6c | 2018-03-05 15:16:40 +0200 | [diff] [blame] | 15 | {% set ETH0_IP_ADDRESS_KVM01 = os_env('ETH0_IP_ADDRESS_KVM01', '172.16.49.11') %} |
| 16 | {% set ETH0_IP_ADDRESS_KVM02 = os_env('ETH0_IP_ADDRESS_KVM02', '172.16.49.12') %} |
| 17 | {% set ETH0_IP_ADDRESS_KVM03 = os_env('ETH0_IP_ADDRESS_KVM03', '172.16.49.13') %} |
| 18 | {% set ETH0_IP_ADDRESS_CMP01 = os_env('ETH0_IP_ADDRESS_CMP01', '172.16.49.3') %} |
| 19 | {% set ETH0_IP_ADDRESS_CMP02 = os_env('ETH0_IP_ADDRESS_CMP02', '172.16.49.31') %} |
| 20 | {% set ETH0_IP_ADDRESS_GTW01 = os_env('ETH0_IP_ADDRESS_GTW01', '172.16.49.5') %} |
| 21 | {% set ETH0_IP_ADDRESS_GTW02 = os_env('ETH0_IP_ADDRESS_GTW02', '172.16.49.4') %} |
| 22 | |
| 23 | {% import 'cookied-bm-mcp-ovs-dpdk/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %} |
| 24 | {% import 'cookied-bm-mcp-ovs-dpdk/underlay--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 with context %} |
| 25 | {% import 'cookied-bm-mcp-ovs-dpdk/underlay--user-data1604.yaml' as CLOUDINIT_USER_DATA_1604 with context %} |
| 26 | {% import 'cookied-bm-mcp-ovs-dpdk/underlay--user-data1604-hwe.yaml' as CLOUDINIT_USER_DATA_1604_HWE with context %} |
| 27 | |
| 28 | --- |
| 29 | aliases: |
| 30 | - &interface_model {{ os_env('INTERFACE_MODEL', 'virtio') }} |
| 31 | - &cloudinit_meta_data {{ CLOUDINIT_META_DATA }} |
| 32 | - &cloudinit_user_data_cfg01 {{ CLOUDINIT_USER_DATA_CFG01 }} |
| 33 | - &cloudinit_user_data_1604 {{ CLOUDINIT_USER_DATA_1604 }} |
| 34 | - &cloudinit_user_data_1604_hwe {{ CLOUDINIT_USER_DATA_1604_HWE }} |
| 35 | |
| 36 | template: |
| 37 | devops_settings: |
| 38 | env_name: {{ os_env('ENV_NAME', LAB_CONFIG_NAME + '_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }} |
| 39 | |
| 40 | address_pools: |
| 41 | admin-pool01: |
| 42 | net: {{ os_env('ADMIN_ADDRESS_POOL01', '172.16.49.0/26:26') }} |
| 43 | params: |
| 44 | ip_reserved: |
| 45 | gateway: +62 |
| 46 | l2_network_device: +61 |
| 47 | virtual_{{ HOSTNAME_CFG01 }}: {{ ETH1_IP_ADDRESS_CFG01 }} |
| 48 | default_{{ HOSTNAME_KVM01 }}: {{ ETH0_IP_ADDRESS_KVM01 }} |
| 49 | default_{{ HOSTNAME_KVM02 }}: {{ ETH0_IP_ADDRESS_KVM02 }} |
| 50 | default_{{ HOSTNAME_KVM03 }}: {{ ETH0_IP_ADDRESS_KVM03 }} |
| 51 | default_{{ HOSTNAME_CMP01 }}: {{ ETH0_IP_ADDRESS_CMP01 }} |
| 52 | default_{{ HOSTNAME_CMP02 }}: {{ ETH0_IP_ADDRESS_CMP02 }} |
| 53 | default_{{ HOSTNAME_GTW01 }}: {{ ETH0_IP_ADDRESS_GTW01 }} |
| 54 | default_{{ HOSTNAME_GTW02 }}: {{ ETH0_IP_ADDRESS_GTW02 }} |
| 55 | ip_ranges: |
| 56 | dhcp: [+2, -4] |
| 57 | private-pool01: |
| 58 | net: {{ os_env('PRIVATE_ADDRESS_POOL01', '10.167.11.0/24:24') }} |
| 59 | params: |
| 60 | ip_reserved: |
Oleksii Butenko | f65a004 | 2018-06-27 13:38:43 +0300 | [diff] [blame] | 61 | virtual_{{ HOSTNAME_CFG01 }}: {{ ETH2_IP_ADDRESS_CFG01 }} |
Oleksii Butenko | ade9c6c | 2018-03-05 15:16:40 +0200 | [diff] [blame] | 62 | gateway: +1 |
| 63 | l2_network_device: +1 |
| 64 | |
| 65 | tenant-pool01: |
| 66 | net: {{ os_env('TENANT_ADDRESS_POOL01', '10.167.12.0/24:24') }} |
| 67 | params: |
| 68 | ip_reserved: |
| 69 | gateway: +1 |
| 70 | l2_network_device: +1 |
| 71 | |
| 72 | external-pool01: |
| 73 | net: {{ os_env('EXTERNAL_ADDRESS_POOL01', '172.17.42.128/26:26') }} |
| 74 | params: |
| 75 | ip_reserved: |
Dennis Dmitriev | b6bcc5c | 2018-09-26 11:07:53 +0000 | [diff] [blame] | 76 | gateway: '172.17.42.129' |
| 77 | ip_ranges: |
| 78 | dhcp: ['172.17.42.130', '172.17.42.180'] |
Oleksii Butenko | ade9c6c | 2018-03-05 15:16:40 +0200 | [diff] [blame] | 79 | |
| 80 | groups: |
| 81 | - name: virtual |
| 82 | driver: |
| 83 | name: devops.driver.libvirt |
| 84 | params: |
| 85 | connection_string: !os_env CONNECTION_STRING, qemu:///system |
| 86 | storage_pool_name: !os_env STORAGE_POOL_NAME, default |
| 87 | stp: False |
| 88 | hpet: False |
| 89 | enable_acpi: true |
| 90 | use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true |
| 91 | use_hugepages: !os_env DRIVER_USE_HUGEPAGES, false |
| 92 | |
| 93 | network_pools: |
| 94 | admin: admin-pool01 |
| 95 | |
| 96 | l2_network_devices: |
| 97 | # Ironic management interface |
| 98 | admin: |
| 99 | address_pool: admin-pool01 |
| 100 | dhcp: false |
| 101 | parent_iface: |
| 102 | phys_dev: !os_env IRONIC_LAB_PXE_IFACE_0 |
Oleksii Butenko | f65a004 | 2018-06-27 13:38:43 +0300 | [diff] [blame] | 103 | private: |
| 104 | parent_iface: |
| 105 | phys_dev: !os_env CONTROL_IFACE |
Oleksii Butenko | ade9c6c | 2018-03-05 15:16:40 +0200 | [diff] [blame] | 106 | |
| 107 | group_volumes: |
| 108 | - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes. |
| 109 | source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img |
| 110 | format: qcow2 |
| 111 | - name: cfg01_day01_image # Pre-configured day01 image |
| 112 | source_image: {{ os_env('IMAGE_PATH_CFG01_DAY01', os_env('IMAGE_PATH1604')) }} # http://images.mirantis.com/cfg01-day01.qcow2 or fallback to IMAGE_PATH1604 |
| 113 | format: qcow2 |
| 114 | |
| 115 | nodes: |
| 116 | - name: {{ HOSTNAME_CFG01 }} |
| 117 | role: salt_master |
| 118 | params: |
| 119 | vcpu: !os_env SLAVE_NODE_CPU, 4 |
| 120 | memory: !os_env SLAVE_NODE_MEMORY, 8192 |
| 121 | boot: |
| 122 | - hd |
| 123 | cloud_init_volume_name: iso |
| 124 | cloud_init_iface_up: ens3 |
| 125 | volumes: |
| 126 | - name: system |
| 127 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 128 | backing_store: cfg01_day01_image |
| 129 | format: qcow2 |
| 130 | - name: iso # Volume with name 'iso' will be used |
| 131 | # for store image with cloud-init metadata. |
| 132 | capacity: 1 |
| 133 | format: raw |
| 134 | device: cdrom |
| 135 | bus: ide |
| 136 | cloudinit_meta_data: *cloudinit_meta_data |
| 137 | cloudinit_user_data: *cloudinit_user_data_cfg01 |
| 138 | |
| 139 | interfaces: |
| 140 | - label: ens3 |
| 141 | l2_network_device: admin |
| 142 | interface_model: *interface_model |
| 143 | mac_address: !os_env ETH1_MAC_ADDRESS_CFG01 |
Oleksii Butenko | f65a004 | 2018-06-27 13:38:43 +0300 | [diff] [blame] | 144 | - label: ens4 |
| 145 | l2_network_device: private |
| 146 | interface_model: *interface_model |
Oleksii Butenko | ade9c6c | 2018-03-05 15:16:40 +0200 | [diff] [blame] | 147 | network_config: |
| 148 | ens3: |
| 149 | networks: |
| 150 | - admin |
Oleksii Butenko | f65a004 | 2018-06-27 13:38:43 +0300 | [diff] [blame] | 151 | ens4: |
| 152 | networks: |
| 153 | - private |
Oleksii Butenko | ade9c6c | 2018-03-05 15:16:40 +0200 | [diff] [blame] | 154 | |
| 155 | |
| 156 | - name: default |
| 157 | driver: |
| 158 | name: devops_driver_ironic |
| 159 | params: |
| 160 | os_auth_token: fake-token |
| 161 | ironic_url: !os_env IRONIC_URL # URL that will be used by fuel-devops |
| 162 | # to access Ironic API |
| 163 | # Agent URL that is accessible from deploying node when nodes |
| 164 | # are bootstrapped with PXE. Usually PXE/provision network address is used. |
| 165 | agent_kernel_url: !os_env IRONIC_AGENT_KERNEL_URL |
| 166 | agent_ramdisk_url: !os_env IRONIC_AGENT_RAMDISK_URL |
| 167 | |
| 168 | network_pools: |
| 169 | admin: admin-pool01 |
| 170 | |
| 171 | nodes: |
| 172 | - name: {{ HOSTNAME_KVM01 }} |
| 173 | role: salt_minion |
| 174 | params: |
| 175 | ipmi_user: !os_env IPMI_USER |
| 176 | ipmi_password: !os_env IPMI_PASSWORD |
| 177 | ipmi_previlegies: OPERATOR |
| 178 | ipmi_host: !os_env IPMI_HOST_KVM01 # hostname or IP address |
| 179 | ipmi_lan_interface: lanplus |
| 180 | ipmi_port: 623 |
| 181 | |
| 182 | root_volume_name: system # see 'volumes' below |
| 183 | cloud_init_volume_name: iso # see 'volumes' below |
| 184 | cloud_init_iface_up: enp3s0f0 # see 'interfaces' below. |
| 185 | volumes: |
| 186 | - name: system |
| 187 | capacity: !os_env NODE_VOLUME_SIZE, 200 |
| 188 | |
| 189 | # The same as for agent URL, here is an URL to the image that should be |
| 190 | # used for deploy the node. It should also be accessible from deploying |
| 191 | # node when nodes are provisioned by agent. Usually PXE/provision network address is used. |
| 192 | source_image: !os_env IRONIC_SOURCE_IMAGE_URL |
| 193 | source_image_checksum: !os_env IRONIC_SOURCE_IMAGE_CHECKSUM |
| 194 | |
| 195 | - name: iso # Volume with name 'iso' will be used |
| 196 | # for store image with cloud-init metadata. |
| 197 | |
| 198 | cloudinit_meta_data: *cloudinit_meta_data |
| 199 | cloudinit_user_data: *cloudinit_user_data_1604 |
| 200 | |
| 201 | interfaces: |
| 202 | - label: enp3s0f0 |
| 203 | l2_network_device: admin |
| 204 | mac_address: !os_env ETH0_MAC_ADDRESS_KVM01 |
| 205 | - label: enp3s0f1 |
| 206 | mac_address: !os_env ETH1_MAC_ADDRESS_KVM01 |
| 207 | |
| 208 | network_config: |
| 209 | enp3s0f0: |
| 210 | networks: |
| 211 | - admin |
| 212 | bond0: |
| 213 | networks: |
| 214 | - control |
| 215 | aggregation: active-backup |
| 216 | parents: |
| 217 | - enp3s0f1 |
| 218 | |
| 219 | - name: {{ HOSTNAME_KVM02 }} |
| 220 | role: salt_minion |
| 221 | params: |
| 222 | ipmi_user: !os_env IPMI_USER |
| 223 | ipmi_password: !os_env IPMI_PASSWORD |
| 224 | ipmi_previlegies: OPERATOR |
| 225 | ipmi_host: !os_env IPMI_HOST_KVM02 # hostname or IP address |
| 226 | ipmi_lan_interface: lanplus |
| 227 | ipmi_port: 623 |
| 228 | |
| 229 | root_volume_name: system # see 'volumes' below |
| 230 | cloud_init_volume_name: iso # see 'volumes' below |
| 231 | cloud_init_iface_up: enp3s0f0 # see 'interfaces' below. |
| 232 | volumes: |
| 233 | - name: system |
| 234 | capacity: !os_env NODE_VOLUME_SIZE, 200 |
| 235 | |
| 236 | # The same as for agent URL, here is an URL to the image that should be |
| 237 | # used for deploy the node. It should also be accessible from deploying |
| 238 | # node when nodes are provisioned by agent. Usually PXE/provision network address is used. |
| 239 | source_image: !os_env IRONIC_SOURCE_IMAGE_URL |
| 240 | source_image_checksum: !os_env IRONIC_SOURCE_IMAGE_CHECKSUM |
| 241 | |
| 242 | - name: iso # Volume with name 'iso' will be used |
| 243 | # for store image with cloud-init metadata. |
| 244 | |
| 245 | cloudinit_meta_data: *cloudinit_meta_data |
| 246 | cloudinit_user_data: *cloudinit_user_data_1604 |
| 247 | |
| 248 | interfaces: |
| 249 | - label: enp3s0f0 |
| 250 | l2_network_device: admin |
| 251 | mac_address: !os_env ETH0_MAC_ADDRESS_KVM02 |
| 252 | - label: enp3s0f1 |
| 253 | mac_address: !os_env ETH1_MAC_ADDRESS_KVM02 |
| 254 | |
| 255 | network_config: |
| 256 | enp3s0f0: |
| 257 | networks: |
| 258 | - admin |
| 259 | bond0: |
| 260 | networks: |
| 261 | - control |
| 262 | aggregation: active-backup |
| 263 | parents: |
| 264 | - enp3s0f1 |
| 265 | |
| 266 | - name: {{ HOSTNAME_KVM03 }} |
| 267 | role: salt_minion |
| 268 | params: |
| 269 | ipmi_user: !os_env IPMI_USER |
| 270 | ipmi_password: !os_env IPMI_PASSWORD |
| 271 | ipmi_previlegies: OPERATOR |
| 272 | ipmi_host: !os_env IPMI_HOST_KVM03 # hostname or IP address |
| 273 | ipmi_lan_interface: lanplus |
| 274 | ipmi_port: 623 |
| 275 | |
| 276 | root_volume_name: system # see 'volumes' below |
| 277 | cloud_init_volume_name: iso # see 'volumes' below |
| 278 | cloud_init_iface_up: enp3s0f0 # see 'interfaces' below. |
| 279 | volumes: |
| 280 | - name: system |
| 281 | capacity: !os_env NODE_VOLUME_SIZE, 200 |
| 282 | |
| 283 | # The same as for agent URL, here is an URL to the image that should be |
| 284 | # used for deploy the node. It should also be accessible from deploying |
| 285 | # node when nodes are provisioned by agent. Usually PXE/provision network address is used. |
| 286 | source_image: !os_env IRONIC_SOURCE_IMAGE_URL |
| 287 | source_image_checksum: !os_env IRONIC_SOURCE_IMAGE_CHECKSUM |
| 288 | |
| 289 | - name: iso # Volume with name 'iso' will be used |
| 290 | # for store image with cloud-init metadata. |
| 291 | |
| 292 | cloudinit_meta_data: *cloudinit_meta_data |
| 293 | cloudinit_user_data: *cloudinit_user_data_1604 |
| 294 | |
| 295 | interfaces: |
| 296 | - label: enp3s0f0 |
| 297 | l2_network_device: admin |
| 298 | mac_address: !os_env ETH0_MAC_ADDRESS_KVM03 |
| 299 | - label: enp3s0f1 |
| 300 | mac_address: !os_env ETH1_MAC_ADDRESS_KVM03 |
| 301 | |
| 302 | network_config: |
| 303 | enp3s0f0: |
| 304 | networks: |
| 305 | - admin |
| 306 | bond0: |
| 307 | networks: |
| 308 | - control |
| 309 | aggregation: active-backup |
| 310 | parents: |
| 311 | - enp3s0f1 |
| 312 | |
| 313 | |
| 314 | - name: {{ HOSTNAME_CMP01 }} |
| 315 | role: salt_minion |
| 316 | params: |
| 317 | ipmi_user: !os_env IPMI_USER |
| 318 | ipmi_password: !os_env IPMI_PASSWORD |
| 319 | ipmi_previlegies: OPERATOR |
| 320 | ipmi_host: !os_env IPMI_HOST_CMP01 # hostname or IP address |
| 321 | ipmi_lan_interface: lanplus |
| 322 | ipmi_port: 623 |
| 323 | |
| 324 | root_volume_name: system # see 'volumes' below |
| 325 | cloud_init_volume_name: iso # see 'volumes' below |
Oleksii Butenko | 1e8d5f7 | 2018-05-24 16:24:25 +0300 | [diff] [blame] | 326 | cloud_init_iface_up: enp5s0f0 # see 'interfaces' below. |
Oleksii Butenko | ade9c6c | 2018-03-05 15:16:40 +0200 | [diff] [blame] | 327 | volumes: |
| 328 | - name: system |
| 329 | capacity: !os_env NODE_VOLUME_SIZE, 200 |
| 330 | |
| 331 | # The same as for agent URL, here is an URL to the image that should be |
| 332 | # used for deploy the node. It should also be accessible from deploying |
| 333 | # node when nodes are provisioned by agent. Usually PXE/provision network address is used. |
| 334 | source_image: !os_env IRONIC_SOURCE_IMAGE_URL |
| 335 | source_image_checksum: !os_env IRONIC_SOURCE_IMAGE_CHECKSUM |
| 336 | |
| 337 | - name: iso # Volume with name 'iso' will be used |
| 338 | # for store image with cloud-init metadata. |
| 339 | |
| 340 | cloudinit_meta_data: *cloudinit_meta_data |
| 341 | cloudinit_user_data: *cloudinit_user_data_1604_hwe |
| 342 | |
| 343 | interfaces: |
| 344 | - label: enp3s0f0 |
Oleksii Butenko | ade9c6c | 2018-03-05 15:16:40 +0200 | [diff] [blame] | 345 | mac_address: !os_env ETH0_MAC_ADDRESS_CMP01 |
| 346 | - label: enp3s0f1 |
| 347 | mac_address: !os_env ETH1_MAC_ADDRESS_CMP01 |
| 348 | - label: enp5s0f0 |
Oleksii Butenko | 1e8d5f7 | 2018-05-24 16:24:25 +0300 | [diff] [blame] | 349 | l2_network_device: admin |
Oleksii Butenko | ade9c6c | 2018-03-05 15:16:40 +0200 | [diff] [blame] | 350 | mac_address: !os_env ETH2_MAC_ADDRESS_CMP01 |
Oleksii Butenko | ade9c6c | 2018-03-05 15:16:40 +0200 | [diff] [blame] | 351 | - label: enp5s0f1 |
| 352 | mac_address: !os_env ETH3_MAC_ADDRESS_CMP01 |
Oleksii Butenko | ade9c6c | 2018-03-05 15:16:40 +0200 | [diff] [blame] | 353 | network_config: |
Oleksii Butenko | 1e8d5f7 | 2018-05-24 16:24:25 +0300 | [diff] [blame] | 354 | enp5s0f0: |
Oleksii Butenko | ade9c6c | 2018-03-05 15:16:40 +0200 | [diff] [blame] | 355 | networks: |
| 356 | - admin |
Oleksii Butenko | ade9c6c | 2018-03-05 15:16:40 +0200 | [diff] [blame] | 357 | |
| 358 | - name: {{ HOSTNAME_CMP02 }} |
| 359 | role: salt_minion |
| 360 | params: |
| 361 | ipmi_user: !os_env IPMI_USER |
| 362 | ipmi_password: !os_env IPMI_PASSWORD |
| 363 | ipmi_previlegies: OPERATOR |
| 364 | ipmi_host: !os_env IPMI_HOST_CMP02 # hostname or IP address |
| 365 | ipmi_lan_interface: lanplus |
| 366 | ipmi_port: 623 |
| 367 | |
| 368 | root_volume_name: system # see 'volumes' below |
| 369 | cloud_init_volume_name: iso # see 'volumes' below |
Oleksii Butenko | 1e8d5f7 | 2018-05-24 16:24:25 +0300 | [diff] [blame] | 370 | cloud_init_iface_up: enp5s0f0 # see 'interfaces' below. |
Oleksii Butenko | ade9c6c | 2018-03-05 15:16:40 +0200 | [diff] [blame] | 371 | volumes: |
| 372 | - name: system |
| 373 | capacity: !os_env NODE_VOLUME_SIZE, 200 |
| 374 | |
| 375 | # The same as for agent URL, here is an URL to the image that should be |
| 376 | # used for deploy the node. It should also be accessible from deploying |
| 377 | # node when nodes are provisioned by agent. Usually PXE/provision network address is used. |
| 378 | source_image: !os_env IRONIC_SOURCE_IMAGE_URL |
| 379 | source_image_checksum: !os_env IRONIC_SOURCE_IMAGE_CHECKSUM |
| 380 | |
| 381 | - name: iso # Volume with name 'iso' will be used |
| 382 | # for store image with cloud-init metadata. |
| 383 | |
| 384 | cloudinit_meta_data: *cloudinit_meta_data |
| 385 | cloudinit_user_data: *cloudinit_user_data_1604_hwe |
| 386 | |
| 387 | interfaces: |
| 388 | - label: enp3s0f0 |
Oleksii Butenko | ade9c6c | 2018-03-05 15:16:40 +0200 | [diff] [blame] | 389 | mac_address: !os_env ETH0_MAC_ADDRESS_CMP02 |
| 390 | - label: enp3s0f1 |
| 391 | mac_address: !os_env ETH1_MAC_ADDRESS_CMP02 |
| 392 | - label: enp5s0f0 |
Oleksii Butenko | 1e8d5f7 | 2018-05-24 16:24:25 +0300 | [diff] [blame] | 393 | l2_network_device: admin |
Oleksii Butenko | ade9c6c | 2018-03-05 15:16:40 +0200 | [diff] [blame] | 394 | mac_address: !os_env ETH2_MAC_ADDRESS_CMP02 |
Oleksii Butenko | ade9c6c | 2018-03-05 15:16:40 +0200 | [diff] [blame] | 395 | - label: enp5s0f1 |
| 396 | mac_address: !os_env ETH3_MAC_ADDRESS_CMP02 |
Oleksii Butenko | ade9c6c | 2018-03-05 15:16:40 +0200 | [diff] [blame] | 397 | network_config: |
Oleksii Butenko | 1e8d5f7 | 2018-05-24 16:24:25 +0300 | [diff] [blame] | 398 | enp5s0f0: |
Oleksii Butenko | ade9c6c | 2018-03-05 15:16:40 +0200 | [diff] [blame] | 399 | networks: |
| 400 | - admin |
Oleksii Butenko | ade9c6c | 2018-03-05 15:16:40 +0200 | [diff] [blame] | 401 | |
| 402 | - name: {{ HOSTNAME_GTW01 }} |
| 403 | role: salt_minion |
| 404 | params: |
| 405 | ipmi_user: !os_env IPMI_USER |
| 406 | ipmi_password: !os_env IPMI_PASSWORD |
| 407 | ipmi_previlegies: OPERATOR |
| 408 | ipmi_host: !os_env IPMI_HOST_GTW01 # hostname or IP address |
| 409 | ipmi_lan_interface: lanplus |
| 410 | ipmi_port: 623 |
| 411 | |
| 412 | root_volume_name: system # see 'volumes' below |
| 413 | cloud_init_volume_name: iso # see 'volumes' below |
| 414 | cloud_init_iface_up: enp3s0f0 # see 'interfaces' below. |
| 415 | volumes: |
| 416 | - name: system |
| 417 | capacity: !os_env NODE_VOLUME_SIZE, 200 |
| 418 | |
| 419 | # The same as for agent URL, here is an URL to the image that should be |
| 420 | # used for deploy the node. It should also be accessible from deploying |
| 421 | # node when nodes are provisioned by agent. Usually PXE/provision network address is used. |
| 422 | source_image: !os_env IRONIC_SOURCE_IMAGE_URL |
| 423 | source_image_checksum: !os_env IRONIC_SOURCE_IMAGE_CHECKSUM |
| 424 | |
| 425 | - name: iso # Volume with name 'iso' will be used |
| 426 | # for store image with cloud-init metadata. |
| 427 | |
| 428 | cloudinit_meta_data: *cloudinit_meta_data |
| 429 | cloudinit_user_data: *cloudinit_user_data_1604_hwe |
| 430 | |
| 431 | interfaces: |
| 432 | - label: enp3s0f0 |
| 433 | l2_network_device: admin |
| 434 | mac_address: !os_env ETH0_MAC_ADDRESS_GTW01 |
| 435 | - label: enp3s0f1 |
| 436 | mac_address: !os_env ETH1_MAC_ADDRESS_GTW01 |
| 437 | |
| 438 | network_config: |
| 439 | enp3s0f0: |
| 440 | networks: |
| 441 | - admin |
| 442 | bond0: |
| 443 | networks: |
| 444 | - control |
| 445 | aggregation: active-backup |
| 446 | parents: |
| 447 | - enp3s0f1 |
| 448 | |
| 449 | - name: {{ HOSTNAME_GTW02 }} |
| 450 | role: salt_minion |
| 451 | params: |
| 452 | ipmi_user: !os_env IPMI_USER |
| 453 | ipmi_password: !os_env IPMI_PASSWORD |
| 454 | ipmi_previlegies: OPERATOR |
| 455 | ipmi_host: !os_env IPMI_HOST_GTW02 # hostname or IP address |
| 456 | ipmi_lan_interface: lanplus |
| 457 | ipmi_port: 623 |
| 458 | |
| 459 | root_volume_name: system # see 'volumes' below |
| 460 | cloud_init_volume_name: iso # see 'volumes' below |
| 461 | cloud_init_iface_up: enp3s0f0 # see 'interfaces' below. |
| 462 | volumes: |
| 463 | - name: system |
| 464 | capacity: !os_env NODE_VOLUME_SIZE, 200 |
| 465 | |
| 466 | # The same as for agent URL, here is an URL to the image that should be |
| 467 | # used for deploy the node. It should also be accessible from deploying |
| 468 | # node when nodes are provisioned by agent. Usually PXE/provision network address is used. |
| 469 | source_image: !os_env IRONIC_SOURCE_IMAGE_URL |
| 470 | source_image_checksum: !os_env IRONIC_SOURCE_IMAGE_CHECKSUM |
| 471 | |
| 472 | - name: iso # Volume with name 'iso' will be used |
| 473 | # for store image with cloud-init metadata. |
| 474 | |
| 475 | cloudinit_meta_data: *cloudinit_meta_data |
| 476 | cloudinit_user_data: *cloudinit_user_data_1604_hwe |
| 477 | |
| 478 | interfaces: |
| 479 | - label: enp3s0f0 |
| 480 | l2_network_device: admin |
| 481 | mac_address: !os_env ETH0_MAC_ADDRESS_GTW02 |
| 482 | - label: enp3s0f1 |
| 483 | mac_address: !os_env ETH1_MAC_ADDRESS_GTW02 |
| 484 | |
| 485 | network_config: |
| 486 | enp3s0f0: |
| 487 | networks: |
| 488 | - admin |
| 489 | bond0: |
| 490 | networks: |
| 491 | - control |
| 492 | aggregation: active-backup |
| 493 | parents: |
| 494 | - enp3s0f1 |