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