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