Dennis Dmitriev | b4b5c10 | 2017-05-10 17:09:06 +0300 | [diff] [blame] | 1 | # Set the repository suite, one of the: 'nightly', 'testing', 'stable', or any other required |
Dennis Dmitriev | 492813e | 2017-08-09 15:08:58 +0300 | [diff] [blame] | 2 | {% set REPOSITORY_SUITE = os_env('REPOSITORY_SUITE', 'testing') %} |
Dennis Dmitriev | b4b5c10 | 2017-05-10 17:09:06 +0300 | [diff] [blame] | 3 | |
Dennis Dmitriev | ab83ea4 | 2017-05-12 16:52:45 +0300 | [diff] [blame] | 4 | {% import 'virtual-mcp-ocata-ovs/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %} |
| 5 | {% import 'virtual-mcp-ocata-ovs/underlay--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 with context %} |
| 6 | {% import 'virtual-mcp-ocata-ovs/underlay--user-data1604.yaml' as CLOUDINIT_USER_DATA_1604 with context %} |
Dennis Dmitriev | 4ab889c | 2017-04-27 14:11:04 +0300 | [diff] [blame] | 7 | |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 8 | --- |
| 9 | aliases: |
Dennis Dmitriev | 4ab889c | 2017-04-27 14:11:04 +0300 | [diff] [blame] | 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 }} |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 14 | |
Dennis Dmitriev | 5ec4d57 | 2017-09-27 00:47:54 +0300 | [diff] [blame] | 15 | {% set LAB_CONFIG_NAME = os_env('LAB_CONFIG_NAME', 'virtual-mcp-ocata-ovs') %} |
| 16 | {% set DOMAIN_NAME = os_env('DOMAIN_NAME', LAB_CONFIG_NAME) + '.local' %} |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 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 | 126b003 | 2017-08-30 20:51:20 +0300 | [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 | 38be41b | 2017-04-12 14:45:23 +0300 | [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: |
Dennis Dmitriev | b4b5c10 | 2017-05-10 17:09:06 +0300 | [diff] [blame] | 31 | env_name: {{ os_env('ENV_NAME', 'virtual-mcp-ocata-ovs_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }} |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 32 | |
| 33 | address_pools: |
| 34 | private-pool01: |
Dennis Dmitriev | 4ab889c | 2017-04-27 14:11:04 +0300 | [diff] [blame] | 35 | net: {{ os_env('PRIVATE_ADDRESS_POOL01', '10.60.0.0/16:24') }} |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 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 | 126b003 | 2017-08-30 20:51:20 +0300 | [diff] [blame] | 46 | default_{{ HOSTNAME_MON01 }}: +107 |
| 47 | default_{{ HOSTNAME_MON02 }}: +108 |
| 48 | default_{{ HOSTNAME_MON03 }}: +109 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 49 | default_{{ HOSTNAME_GTW01 }}: +110 |
| 50 | default_{{ HOSTNAME_PRX01 }}: +121 |
| 51 | ip_ranges: |
| 52 | dhcp: [+90, -10] |
| 53 | |
| 54 | admin-pool01: |
Dennis Dmitriev | 4ab889c | 2017-04-27 14:11:04 +0300 | [diff] [blame] | 55 | net: {{ os_env('ADMIN_ADDRESS_POOL01', '10.70.0.0/16:24') }} |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 56 | params: |
| 57 | ip_reserved: |
| 58 | gateway: +1 |
| 59 | l2_network_device: +1 |
Tatyana Leontovich | e0286ed | 2017-09-12 11:55:06 +0300 | [diff] [blame] | 60 | default_{{ HOSTNAME_CFG01 }}: +90 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 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 | 126b003 | 2017-08-30 20:51:20 +0300 | [diff] [blame] | 66 | default_{{ HOSTNAME_MON01 }}: +107 |
| 67 | default_{{ HOSTNAME_MON02 }}: +108 |
| 68 | default_{{ HOSTNAME_MON03 }}: +109 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 69 | default_{{ HOSTNAME_GTW01 }}: +110 |
| 70 | default_{{ HOSTNAME_PRX01 }}: +121 |
| 71 | ip_ranges: |
| 72 | dhcp: [+90, -10] |
| 73 | |
| 74 | tenant-pool01: |
Dennis Dmitriev | 4ab889c | 2017-04-27 14:11:04 +0300 | [diff] [blame] | 75 | net: {{ os_env('TENANT_ADDRESS_POOL01', '10.80.0.0/16:24') }} |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 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 | 126b003 | 2017-08-30 20:51:20 +0300 | [diff] [blame] | 86 | default_{{ HOSTNAME_MON01 }}: +107 |
| 87 | default_{{ HOSTNAME_MON02 }}: +108 |
| 88 | default_{{ HOSTNAME_MON03 }}: +109 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 89 | default_{{ HOSTNAME_GTW01 }}: +110 |
| 90 | default_{{ HOSTNAME_PRX01 }}: +121 |
| 91 | ip_ranges: |
| 92 | dhcp: [+10, -10] |
| 93 | |
| 94 | external-pool01: |
Dennis Dmitriev | 4ab889c | 2017-04-27 14:11:04 +0300 | [diff] [blame] | 95 | net: {{ os_env('EXTERNAL_ADDRESS_POOL01', '10.90.0.0/16:24') }} |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 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 | 126b003 | 2017-08-30 20:51:20 +0300 | [diff] [blame] | 106 | default_{{ HOSTNAME_MON01 }}: +107 |
| 107 | default_{{ HOSTNAME_MON02 }}: +108 |
| 108 | default_{{ HOSTNAME_MON03 }}: +109 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [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 |
Dennis Dmitriev | b3fc424 | 2017-07-14 16:01:51 +0300 | [diff] [blame] | 126 | use_hugepages: !os_env DRIVER_USE_HUGEPAGES, false |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 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 |
Dennis Dmitriev | 68ef8ff | 2018-03-22 18:13:36 +0200 | [diff] [blame] | 137 | dhcp: false |
Dennis Dmitriev | a5978eb | 2018-02-21 10:12:33 +0200 | [diff] [blame] | 138 | forward: |
| 139 | mode: route |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 140 | |
| 141 | admin: |
| 142 | address_pool: admin-pool01 |
| 143 | dhcp: true |
| 144 | forward: |
| 145 | mode: nat |
| 146 | |
| 147 | tenant: |
| 148 | address_pool: tenant-pool01 |
Dennis Dmitriev | 68ef8ff | 2018-03-22 18:13:36 +0200 | [diff] [blame] | 149 | dhcp: false |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 150 | |
| 151 | external: |
| 152 | address_pool: external-pool01 |
| 153 | dhcp: true |
| 154 | forward: |
Dennis Dmitriev | b0ce368 | 2018-05-01 16:48:11 +0300 | [diff] [blame] | 155 | mode: route |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 156 | |
| 157 | |
| 158 | group_volumes: |
| 159 | - 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] | 160 | source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img |
| 161 | format: qcow2 |
| 162 | - name: cfg01_day01_image # Pre-configured day01 image |
| 163 | source_image: {{ os_env('IMAGE_PATH_CFG01_DAY01', os_env('IMAGE_PATH1604')) }} # http://images.mirantis.com/cfg01-day01.qcow2 or fallback to IMAGE_PATH1604 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 164 | format: qcow2 |
Dennis Dmitriev | 6f71cfd | 2018-01-31 14:17:28 +0200 | [diff] [blame] | 165 | - name: mcp_ubuntu_1604_image # Pre-configured image for VCP nodes initially based on kvm nodes. |
| 166 | # http://images.mirantis.com/ubuntu-16-04-x64-latest.qcow2 (preffered) |
| 167 | # or |
| 168 | # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img |
| 169 | source_image: {{ os_env('MCP_IMAGE_PATH1604', os_env('IMAGE_PATH1604')) }} |
| 170 | format: qcow2 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 171 | |
| 172 | nodes: |
| 173 | - name: {{ HOSTNAME_CFG01 }} |
| 174 | role: salt_master |
| 175 | params: |
Dennis Dmitriev | 5b0e5f3 | 2017-07-22 11:30:26 +0300 | [diff] [blame] | 176 | vcpu: !os_env SLAVE_NODE_CPU, 2 |
Dennis Dmitriev | 75e250f | 2018-02-26 17:13:59 +0200 | [diff] [blame] | 177 | memory: !os_env SLAVE_NODE_MEMORY, 8192 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 178 | boot: |
| 179 | - hd |
| 180 | cloud_init_volume_name: iso |
| 181 | cloud_init_iface_up: ens3 |
| 182 | volumes: |
| 183 | - name: system |
| 184 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
Dennis Dmitriev | f00a384 | 2018-01-24 16:44:26 +0200 | [diff] [blame] | 185 | backing_store: cfg01_day01_image |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 186 | format: qcow2 |
| 187 | - name: iso # Volume with name 'iso' will be used |
| 188 | # for store image with cloud-init metadata. |
| 189 | capacity: 1 |
| 190 | format: raw |
| 191 | device: cdrom |
| 192 | bus: ide |
Dennis Dmitriev | 4ab889c | 2017-04-27 14:11:04 +0300 | [diff] [blame] | 193 | cloudinit_meta_data: *cloudinit_meta_data |
| 194 | cloudinit_user_data: *cloudinit_user_data_cfg01 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 195 | |
| 196 | interfaces: |
| 197 | - label: ens3 |
| 198 | l2_network_device: admin |
| 199 | interface_model: *interface_model |
| 200 | - label: ens4 |
| 201 | l2_network_device: private |
| 202 | interface_model: *interface_model |
| 203 | network_config: |
| 204 | ens3: |
| 205 | networks: |
| 206 | - admin |
| 207 | ens4: |
| 208 | networks: |
| 209 | - private |
| 210 | |
| 211 | - name: {{ HOSTNAME_CTL01 }} |
| 212 | role: salt_minion |
| 213 | params: |
Dennis Dmitriev | 5b0e5f3 | 2017-07-22 11:30:26 +0300 | [diff] [blame] | 214 | vcpu: !os_env SLAVE_NODE_CPU, 2 |
Dennis Dmitriev | 75e250f | 2018-02-26 17:13:59 +0200 | [diff] [blame] | 215 | memory: !os_env SLAVE_NODE_MEMORY, 16384 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 216 | boot: |
| 217 | - hd |
| 218 | cloud_init_volume_name: iso |
| 219 | cloud_init_iface_up: ens3 |
| 220 | volumes: |
| 221 | - name: system |
| 222 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
Dennis Dmitriev | 6f71cfd | 2018-01-31 14:17:28 +0200 | [diff] [blame] | 223 | backing_store: mcp_ubuntu_1604_image |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 224 | format: qcow2 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 225 | - name: iso # Volume with name 'iso' will be used |
| 226 | # for store image with cloud-init metadata. |
| 227 | capacity: 1 |
| 228 | format: raw |
| 229 | device: cdrom |
| 230 | bus: ide |
Dennis Dmitriev | 4ab889c | 2017-04-27 14:11:04 +0300 | [diff] [blame] | 231 | cloudinit_meta_data: *cloudinit_meta_data |
| 232 | cloudinit_user_data: *cloudinit_user_data_1604 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 233 | |
| 234 | interfaces: &interfaces |
| 235 | - label: ens3 |
| 236 | l2_network_device: admin |
| 237 | interface_model: *interface_model |
| 238 | - label: ens4 |
| 239 | l2_network_device: private |
| 240 | interface_model: *interface_model |
| 241 | network_config: &network_config |
| 242 | ens3: |
| 243 | networks: |
| 244 | - admin |
| 245 | ens4: |
| 246 | networks: |
| 247 | - private |
| 248 | |
| 249 | - name: {{ HOSTNAME_CTL02 }} |
| 250 | role: salt_minion |
| 251 | params: |
Dennis Dmitriev | 5b0e5f3 | 2017-07-22 11:30:26 +0300 | [diff] [blame] | 252 | vcpu: !os_env SLAVE_NODE_CPU, 2 |
Dennis Dmitriev | 75e250f | 2018-02-26 17:13:59 +0200 | [diff] [blame] | 253 | memory: !os_env SLAVE_NODE_MEMORY, 16384 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 254 | boot: |
| 255 | - hd |
| 256 | cloud_init_volume_name: iso |
| 257 | cloud_init_iface_up: ens3 |
| 258 | volumes: |
| 259 | - name: system |
| 260 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
Dennis Dmitriev | 6f71cfd | 2018-01-31 14:17:28 +0200 | [diff] [blame] | 261 | backing_store: mcp_ubuntu_1604_image |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 262 | format: qcow2 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 263 | - name: iso # Volume with name 'iso' will be used |
| 264 | # for store image with cloud-init metadata. |
| 265 | capacity: 1 |
| 266 | format: raw |
| 267 | device: cdrom |
| 268 | bus: ide |
Dennis Dmitriev | 4ab889c | 2017-04-27 14:11:04 +0300 | [diff] [blame] | 269 | cloudinit_meta_data: *cloudinit_meta_data |
| 270 | cloudinit_user_data: *cloudinit_user_data_1604 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 271 | |
| 272 | interfaces: *interfaces |
| 273 | network_config: *network_config |
| 274 | |
| 275 | - name: {{ HOSTNAME_CTL03 }} |
| 276 | role: salt_minion |
| 277 | params: |
Dennis Dmitriev | 5b0e5f3 | 2017-07-22 11:30:26 +0300 | [diff] [blame] | 278 | vcpu: !os_env SLAVE_NODE_CPU, 2 |
Dennis Dmitriev | 75e250f | 2018-02-26 17:13:59 +0200 | [diff] [blame] | 279 | memory: !os_env SLAVE_NODE_MEMORY, 16384 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 280 | boot: |
| 281 | - hd |
| 282 | cloud_init_volume_name: iso |
| 283 | cloud_init_iface_up: ens3 |
| 284 | volumes: |
| 285 | - name: system |
| 286 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
Dennis Dmitriev | 6f71cfd | 2018-01-31 14:17:28 +0200 | [diff] [blame] | 287 | backing_store: mcp_ubuntu_1604_image |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 288 | format: qcow2 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 289 | - name: iso # Volume with name 'iso' will be used |
| 290 | # for store image with cloud-init metadata. |
| 291 | capacity: 1 |
| 292 | format: raw |
| 293 | device: cdrom |
| 294 | bus: ide |
Dennis Dmitriev | 4ab889c | 2017-04-27 14:11:04 +0300 | [diff] [blame] | 295 | cloudinit_meta_data: *cloudinit_meta_data |
| 296 | cloudinit_user_data: *cloudinit_user_data_1604 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 297 | |
| 298 | interfaces: *interfaces |
| 299 | network_config: *network_config |
Tatyana Leontovich | 6faca6c | 2017-09-06 15:57:16 +0300 | [diff] [blame] | 300 | |
| 301 | - name: {{ HOSTNAME_MON01 }} |
Tatyana Leontovich | 126b003 | 2017-08-30 20:51:20 +0300 | [diff] [blame] | 302 | role: salt_minion |
| 303 | params: |
| 304 | vcpu: !os_env SLAVE_NODE_CPU, 3 |
Dennis Dmitriev | 75e250f | 2018-02-26 17:13:59 +0200 | [diff] [blame] | 305 | memory: !os_env SLAVE_NODE_MEMORY, 6144 |
Tatyana Leontovich | 126b003 | 2017-08-30 20:51:20 +0300 | [diff] [blame] | 306 | boot: |
| 307 | - hd |
| 308 | cloud_init_volume_name: iso |
| 309 | cloud_init_iface_up: ens3 |
| 310 | volumes: |
| 311 | - name: system |
| 312 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
Dennis Dmitriev | 6f71cfd | 2018-01-31 14:17:28 +0200 | [diff] [blame] | 313 | backing_store: mcp_ubuntu_1604_image |
Tatyana Leontovich | 126b003 | 2017-08-30 20:51:20 +0300 | [diff] [blame] | 314 | format: qcow2 |
| 315 | - name: iso # Volume with name 'iso' will be used |
| 316 | # for store image with cloud-init metadata. |
| 317 | capacity: 1 |
| 318 | format: raw |
| 319 | device: cdrom |
| 320 | bus: ide |
Dennis Dmitriev | a5f6940 | 2017-10-01 11:14:35 +0300 | [diff] [blame] | 321 | cloudinit_meta_data: *cloudinit_meta_data |
| 322 | cloudinit_user_data: *cloudinit_user_data_1604 |
Tatyana Leontovich | 126b003 | 2017-08-30 20:51:20 +0300 | [diff] [blame] | 323 | |
| 324 | interfaces: *interfaces |
| 325 | network_config: *network_config |
| 326 | |
| 327 | - name: {{ HOSTNAME_MON02 }} |
| 328 | role: salt_minion |
| 329 | params: |
| 330 | vcpu: !os_env SLAVE_NODE_CPU, 3 |
Dennis Dmitriev | 75e250f | 2018-02-26 17:13:59 +0200 | [diff] [blame] | 331 | memory: !os_env SLAVE_NODE_MEMORY, 6144 |
Tatyana Leontovich | 126b003 | 2017-08-30 20:51:20 +0300 | [diff] [blame] | 332 | boot: |
| 333 | - hd |
| 334 | cloud_init_volume_name: iso |
| 335 | cloud_init_iface_up: ens3 |
| 336 | volumes: |
| 337 | - name: system |
| 338 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
Dennis Dmitriev | 6f71cfd | 2018-01-31 14:17:28 +0200 | [diff] [blame] | 339 | backing_store: mcp_ubuntu_1604_image |
Tatyana Leontovich | 126b003 | 2017-08-30 20:51:20 +0300 | [diff] [blame] | 340 | format: qcow2 |
| 341 | - name: iso # Volume with name 'iso' will be used |
| 342 | # for store image with cloud-init metadata. |
| 343 | capacity: 1 |
| 344 | format: raw |
| 345 | device: cdrom |
| 346 | bus: ide |
Dennis Dmitriev | a5f6940 | 2017-10-01 11:14:35 +0300 | [diff] [blame] | 347 | cloudinit_meta_data: *cloudinit_meta_data |
| 348 | cloudinit_user_data: *cloudinit_user_data_1604 |
Tatyana Leontovich | 126b003 | 2017-08-30 20:51:20 +0300 | [diff] [blame] | 349 | |
| 350 | interfaces: *interfaces |
| 351 | network_config: *network_config |
| 352 | |
| 353 | - name: {{ HOSTNAME_MON03 }} |
| 354 | role: salt_minion |
| 355 | params: |
| 356 | vcpu: !os_env SLAVE_NODE_CPU, 3 |
Dennis Dmitriev | 75e250f | 2018-02-26 17:13:59 +0200 | [diff] [blame] | 357 | memory: !os_env SLAVE_NODE_MEMORY, 6144 |
Tatyana Leontovich | 126b003 | 2017-08-30 20:51:20 +0300 | [diff] [blame] | 358 | boot: |
| 359 | - hd |
| 360 | cloud_init_volume_name: iso |
| 361 | cloud_init_iface_up: ens3 |
| 362 | volumes: |
| 363 | - name: system |
| 364 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
Dennis Dmitriev | 6f71cfd | 2018-01-31 14:17:28 +0200 | [diff] [blame] | 365 | backing_store: mcp_ubuntu_1604_image |
Tatyana Leontovich | 126b003 | 2017-08-30 20:51:20 +0300 | [diff] [blame] | 366 | format: qcow2 |
| 367 | - name: iso # Volume with name 'iso' will be used |
| 368 | # for store image with cloud-init metadata. |
| 369 | capacity: 1 |
| 370 | format: raw |
| 371 | device: cdrom |
| 372 | bus: ide |
Dennis Dmitriev | a5f6940 | 2017-10-01 11:14:35 +0300 | [diff] [blame] | 373 | cloudinit_meta_data: *cloudinit_meta_data |
| 374 | cloudinit_user_data: *cloudinit_user_data_1604 |
Tatyana Leontovich | 126b003 | 2017-08-30 20:51:20 +0300 | [diff] [blame] | 375 | |
| 376 | interfaces: *interfaces |
| 377 | network_config: *network_config |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 378 | |
| 379 | - name: {{ HOSTNAME_PRX01 }} |
| 380 | role: salt_minion |
| 381 | params: |
Dennis Dmitriev | 5b0e5f3 | 2017-07-22 11:30:26 +0300 | [diff] [blame] | 382 | vcpu: !os_env SLAVE_NODE_CPU, 1 |
Tatyana Leontovich | 126b003 | 2017-08-30 20:51:20 +0300 | [diff] [blame] | 383 | memory: !os_env SLAVE_NODE_MEMORY, 2048 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 384 | boot: |
| 385 | - hd |
| 386 | cloud_init_volume_name: iso |
| 387 | cloud_init_iface_up: ens3 |
| 388 | volumes: |
| 389 | - name: system |
| 390 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
Dennis Dmitriev | 6f71cfd | 2018-01-31 14:17:28 +0200 | [diff] [blame] | 391 | backing_store: mcp_ubuntu_1604_image |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 392 | format: qcow2 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 393 | - name: iso # Volume with name 'iso' will be used |
| 394 | # for store image with cloud-init metadata. |
| 395 | capacity: 1 |
| 396 | format: raw |
| 397 | device: cdrom |
| 398 | bus: ide |
Dennis Dmitriev | 4ab889c | 2017-04-27 14:11:04 +0300 | [diff] [blame] | 399 | cloudinit_meta_data: *cloudinit_meta_data |
| 400 | cloudinit_user_data: *cloudinit_user_data_1604 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 401 | |
| 402 | interfaces: *interfaces |
| 403 | network_config: *network_config |
| 404 | |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 405 | - name: {{ HOSTNAME_CMP01 }} |
| 406 | role: salt_minion |
| 407 | params: |
Dennis Dmitriev | 5b0e5f3 | 2017-07-22 11:30:26 +0300 | [diff] [blame] | 408 | vcpu: !os_env SLAVE_NODE_CPU, 3 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 409 | memory: !os_env SLAVE_NODE_MEMORY, 4096 |
| 410 | boot: |
| 411 | - hd |
| 412 | cloud_init_volume_name: iso |
| 413 | cloud_init_iface_up: ens3 |
| 414 | volumes: |
| 415 | - name: system |
| 416 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 417 | backing_store: cloudimage1604 |
| 418 | format: qcow2 |
Dennis Dmitriev | 1b8979d | 2018-10-19 19:53:02 +0300 | [diff] [blame^] | 419 | - name: cinder |
| 420 | capacity: 50 |
| 421 | format: qcow2 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 422 | - name: iso # Volume with name 'iso' will be used |
| 423 | # for store image with cloud-init metadata. |
| 424 | capacity: 1 |
| 425 | format: raw |
| 426 | device: cdrom |
| 427 | bus: ide |
Dennis Dmitriev | 4ab889c | 2017-04-27 14:11:04 +0300 | [diff] [blame] | 428 | cloudinit_meta_data: *cloudinit_meta_data |
| 429 | cloudinit_user_data: *cloudinit_user_data_1604 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 430 | |
| 431 | |
| 432 | interfaces: &all_interfaces |
| 433 | - label: ens3 |
| 434 | l2_network_device: admin |
| 435 | interface_model: *interface_model |
| 436 | - label: ens4 |
| 437 | l2_network_device: private |
| 438 | interface_model: *interface_model |
| 439 | - label: ens5 |
| 440 | l2_network_device: tenant |
| 441 | interface_model: *interface_model |
| 442 | - label: ens6 |
| 443 | l2_network_device: external |
| 444 | interface_model: *interface_model |
| 445 | network_config: &all_network_config |
| 446 | ens3: |
| 447 | networks: |
| 448 | - admin |
| 449 | ens4: |
| 450 | networks: |
| 451 | - private |
| 452 | ens5: |
| 453 | networks: |
| 454 | - tenant |
| 455 | ens6: |
| 456 | networks: |
| 457 | - external |
| 458 | |
| 459 | - name: {{ HOSTNAME_CMP02 }} |
| 460 | role: salt_minion |
| 461 | params: |
Dennis Dmitriev | 5b0e5f3 | 2017-07-22 11:30:26 +0300 | [diff] [blame] | 462 | vcpu: !os_env SLAVE_NODE_CPU, 3 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 463 | memory: !os_env SLAVE_NODE_MEMORY, 4096 |
| 464 | boot: |
| 465 | - hd |
| 466 | cloud_init_volume_name: iso |
| 467 | cloud_init_iface_up: ens3 |
| 468 | volumes: |
| 469 | - name: system |
| 470 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 471 | backing_store: cloudimage1604 |
| 472 | format: qcow2 |
Dennis Dmitriev | 1b8979d | 2018-10-19 19:53:02 +0300 | [diff] [blame^] | 473 | - name: cinder |
| 474 | capacity: 50 |
| 475 | format: qcow2 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 476 | - name: iso # Volume with name 'iso' will be used |
| 477 | # for store image with cloud-init metadata. |
| 478 | capacity: 1 |
| 479 | format: raw |
| 480 | device: cdrom |
| 481 | bus: ide |
Dennis Dmitriev | 4ab889c | 2017-04-27 14:11:04 +0300 | [diff] [blame] | 482 | cloudinit_meta_data: *cloudinit_meta_data |
| 483 | cloudinit_user_data: *cloudinit_user_data_1604 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 484 | |
| 485 | interfaces: *all_interfaces |
| 486 | network_config: *all_network_config |
| 487 | |
| 488 | - name: {{ HOSTNAME_GTW01 }} |
| 489 | role: salt_minion |
| 490 | params: |
| 491 | vcpu: !os_env SLAVE_NODE_CPU, 1 |
| 492 | memory: !os_env SLAVE_NODE_MEMORY, 2048 |
| 493 | boot: |
| 494 | - hd |
| 495 | cloud_init_volume_name: iso |
| 496 | cloud_init_iface_up: ens3 |
| 497 | volumes: |
| 498 | - name: system |
| 499 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 500 | backing_store: cloudimage1604 |
| 501 | format: qcow2 |
| 502 | - name: iso # Volume with name 'iso' will be used |
| 503 | # for store image with cloud-init metadata. |
| 504 | capacity: 1 |
| 505 | format: raw |
| 506 | device: cdrom |
| 507 | bus: ide |
Dennis Dmitriev | 4ab889c | 2017-04-27 14:11:04 +0300 | [diff] [blame] | 508 | cloudinit_meta_data: *cloudinit_meta_data |
| 509 | cloudinit_user_data: *cloudinit_user_data_1604 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 510 | |
| 511 | interfaces: *all_interfaces |
| 512 | network_config: *all_network_config |