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-dvr/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %} |
| 5 | {% import 'virtual-mcp-ocata-dvr/underlay--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 with context %} |
| 6 | {% import 'virtual-mcp-ocata-dvr/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-dvr') %} |
| 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 | d85357d | 2017-08-02 15:28:37 +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) %} |
Dennis Dmitriev | a956fe9 | 2017-11-17 15:37:52 +0200 | [diff] [blame] | 27 | {% set HOSTNAME_DNS01 = os_env('HOSTNAME_DNS01', 'dns01.' + DOMAIN_NAME) %} |
| 28 | {% set HOSTNAME_DNS02 = os_env('HOSTNAME_DNS02', 'dns02.' + DOMAIN_NAME) %} |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 29 | {% set HOSTNAME_PRX01 = os_env('HOSTNAME_PRX01', 'prx01.' + DOMAIN_NAME) %} |
| 30 | |
| 31 | template: |
| 32 | devops_settings: |
Dennis Dmitriev | ab83ea4 | 2017-05-12 16:52:45 +0300 | [diff] [blame] | 33 | env_name: {{ os_env('ENV_NAME', 'virtual-mcp-ocata-dvr_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }} |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 34 | |
| 35 | address_pools: |
| 36 | private-pool01: |
Dennis Dmitriev | 4ab889c | 2017-04-27 14:11:04 +0300 | [diff] [blame] | 37 | net: {{ os_env('PRIVATE_ADDRESS_POOL01', '10.60.0.0/16:24') }} |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 38 | params: |
| 39 | ip_reserved: |
| 40 | gateway: +1 |
| 41 | l2_network_device: +1 |
| 42 | default_{{ HOSTNAME_CFG01 }}: +100 |
| 43 | default_{{ HOSTNAME_CTL01 }}: +101 |
| 44 | default_{{ HOSTNAME_CTL02 }}: +102 |
| 45 | default_{{ HOSTNAME_CTL03 }}: +103 |
| 46 | default_{{ HOSTNAME_CMP01 }}: +105 |
| 47 | default_{{ HOSTNAME_CMP02 }}: +106 |
Tatyana Leontovich | d85357d | 2017-08-02 15:28:37 +0300 | [diff] [blame] | 48 | default_{{ HOSTNAME_MON01 }}: +107 |
| 49 | default_{{ HOSTNAME_MON02 }}: +108 |
| 50 | default_{{ HOSTNAME_MON03 }}: +109 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 51 | default_{{ HOSTNAME_GTW01 }}: +110 |
Dennis Dmitriev | a956fe9 | 2017-11-17 15:37:52 +0200 | [diff] [blame] | 52 | default_{{ HOSTNAME_DNS01 }}: +111 |
| 53 | default_{{ HOSTNAME_DNS02 }}: +112 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 54 | default_{{ HOSTNAME_PRX01 }}: +121 |
| 55 | ip_ranges: |
| 56 | dhcp: [+90, -10] |
| 57 | |
| 58 | admin-pool01: |
Dennis Dmitriev | 4ab889c | 2017-04-27 14:11:04 +0300 | [diff] [blame] | 59 | net: {{ os_env('ADMIN_ADDRESS_POOL01', '10.70.0.0/16:24') }} |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 60 | params: |
| 61 | ip_reserved: |
| 62 | gateway: +1 |
| 63 | l2_network_device: +1 |
Tatyana Leontovich | e0286ed | 2017-09-12 11:55:06 +0300 | [diff] [blame] | 64 | default_{{ HOSTNAME_CFG01 }}: +90 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 65 | default_{{ HOSTNAME_CTL01 }}: +101 |
| 66 | default_{{ HOSTNAME_CTL02 }}: +102 |
| 67 | default_{{ HOSTNAME_CTL03 }}: +103 |
| 68 | default_{{ HOSTNAME_CMP01 }}: +105 |
| 69 | default_{{ HOSTNAME_CMP02 }}: +106 |
Tatyana Leontovich | d85357d | 2017-08-02 15:28:37 +0300 | [diff] [blame] | 70 | default_{{ HOSTNAME_MON01 }}: +107 |
| 71 | default_{{ HOSTNAME_MON02 }}: +108 |
| 72 | default_{{ HOSTNAME_MON03 }}: +109 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 73 | default_{{ HOSTNAME_GTW01 }}: +110 |
Dennis Dmitriev | a956fe9 | 2017-11-17 15:37:52 +0200 | [diff] [blame] | 74 | default_{{ HOSTNAME_DNS01 }}: +111 |
| 75 | default_{{ HOSTNAME_DNS02 }}: +112 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 76 | default_{{ HOSTNAME_PRX01 }}: +121 |
| 77 | ip_ranges: |
| 78 | dhcp: [+90, -10] |
| 79 | |
| 80 | tenant-pool01: |
Dennis Dmitriev | 4ab889c | 2017-04-27 14:11:04 +0300 | [diff] [blame] | 81 | net: {{ os_env('TENANT_ADDRESS_POOL01', '10.80.0.0/16:24') }} |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 82 | params: |
| 83 | ip_reserved: |
| 84 | gateway: +1 |
| 85 | l2_network_device: +1 |
| 86 | default_{{ HOSTNAME_CFG01 }}: +100 |
| 87 | default_{{ HOSTNAME_CTL01 }}: +101 |
| 88 | default_{{ HOSTNAME_CTL02 }}: +102 |
| 89 | default_{{ HOSTNAME_CTL03 }}: +103 |
| 90 | default_{{ HOSTNAME_CMP01 }}: +105 |
| 91 | default_{{ HOSTNAME_CMP02 }}: +106 |
Tatyana Leontovich | d85357d | 2017-08-02 15:28:37 +0300 | [diff] [blame] | 92 | default_{{ HOSTNAME_MON01 }}: +107 |
| 93 | default_{{ HOSTNAME_MON02 }}: +108 |
| 94 | default_{{ HOSTNAME_MON03 }}: +109 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 95 | default_{{ HOSTNAME_GTW01 }}: +110 |
Dennis Dmitriev | a956fe9 | 2017-11-17 15:37:52 +0200 | [diff] [blame] | 96 | default_{{ HOSTNAME_DNS01 }}: +111 |
| 97 | default_{{ HOSTNAME_DNS02 }}: +112 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 98 | default_{{ HOSTNAME_PRX01 }}: +121 |
| 99 | ip_ranges: |
| 100 | dhcp: [+10, -10] |
| 101 | |
| 102 | external-pool01: |
Dennis Dmitriev | 4ab889c | 2017-04-27 14:11:04 +0300 | [diff] [blame] | 103 | net: {{ os_env('EXTERNAL_ADDRESS_POOL01', '10.90.0.0/16:24') }} |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 104 | params: |
| 105 | ip_reserved: |
| 106 | gateway: +1 |
| 107 | l2_network_device: +1 |
| 108 | default_{{ HOSTNAME_CFG01 }}: +100 |
| 109 | default_{{ HOSTNAME_CTL01 }}: +101 |
| 110 | default_{{ HOSTNAME_CTL02 }}: +102 |
| 111 | default_{{ HOSTNAME_CTL03 }}: +103 |
| 112 | default_{{ HOSTNAME_CMP01 }}: +105 |
| 113 | default_{{ HOSTNAME_CMP02 }}: +106 |
Tatyana Leontovich | d85357d | 2017-08-02 15:28:37 +0300 | [diff] [blame] | 114 | default_{{ HOSTNAME_MON01 }}: +107 |
| 115 | default_{{ HOSTNAME_MON02 }}: +108 |
| 116 | default_{{ HOSTNAME_MON03 }}: +109 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 117 | default_{{ HOSTNAME_GTW01 }}: +110 |
Dennis Dmitriev | a956fe9 | 2017-11-17 15:37:52 +0200 | [diff] [blame] | 118 | default_{{ HOSTNAME_DNS01 }}: +111 |
| 119 | default_{{ HOSTNAME_DNS02 }}: +112 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 120 | default_{{ HOSTNAME_PRX01 }}: +121 |
| 121 | ip_ranges: |
| 122 | dhcp: [+10, -10] |
| 123 | |
| 124 | |
| 125 | groups: |
| 126 | - name: default |
| 127 | driver: |
| 128 | name: devops.driver.libvirt |
| 129 | params: |
| 130 | connection_string: !os_env CONNECTION_STRING, qemu:///system |
| 131 | storage_pool_name: !os_env STORAGE_POOL_NAME, default |
| 132 | stp: False |
| 133 | hpet: False |
| 134 | enable_acpi: true |
| 135 | use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true |
Dennis Dmitriev | b3fc424 | 2017-07-14 16:01:51 +0300 | [diff] [blame] | 136 | use_hugepages: !os_env DRIVER_USE_HUGEPAGES, false |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 137 | |
| 138 | network_pools: |
| 139 | admin: admin-pool01 |
| 140 | private: private-pool01 |
| 141 | tenant: tenant-pool01 |
| 142 | external: external-pool01 |
| 143 | |
| 144 | l2_network_devices: |
| 145 | private: |
| 146 | address_pool: private-pool01 |
| 147 | dhcp: true |
| 148 | |
| 149 | admin: |
| 150 | address_pool: admin-pool01 |
| 151 | dhcp: true |
| 152 | forward: |
| 153 | mode: nat |
| 154 | |
| 155 | tenant: |
| 156 | address_pool: tenant-pool01 |
| 157 | dhcp: true |
| 158 | |
| 159 | external: |
| 160 | address_pool: external-pool01 |
| 161 | dhcp: true |
| 162 | forward: |
| 163 | mode: nat |
| 164 | |
| 165 | |
| 166 | group_volumes: |
| 167 | - 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] | 168 | source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img |
| 169 | format: qcow2 |
| 170 | - name: cfg01_day01_image # Pre-configured day01 image |
| 171 | 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] | 172 | format: qcow2 |
Dennis Dmitriev | 6f71cfd | 2018-01-31 14:17:28 +0200 | [diff] [blame^] | 173 | - name: mcp_ubuntu_1604_image # Pre-configured image for VCP nodes initially based on kvm nodes. |
| 174 | # http://images.mirantis.com/ubuntu-16-04-x64-latest.qcow2 (preffered) |
| 175 | # or |
| 176 | # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img |
| 177 | source_image: {{ os_env('MCP_IMAGE_PATH1604', os_env('IMAGE_PATH1604')) }} |
| 178 | format: qcow2 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 179 | |
| 180 | nodes: |
| 181 | - name: {{ HOSTNAME_CFG01 }} |
| 182 | role: salt_master |
| 183 | params: |
Dennis Dmitriev | 5b0e5f3 | 2017-07-22 11:30:26 +0300 | [diff] [blame] | 184 | vcpu: !os_env SLAVE_NODE_CPU, 2 |
Dennis Dmitriev | b182279 | 2017-10-24 18:22:23 +0300 | [diff] [blame] | 185 | memory: !os_env SLAVE_NODE_MEMORY, 4096 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 186 | boot: |
| 187 | - hd |
| 188 | cloud_init_volume_name: iso |
| 189 | cloud_init_iface_up: ens3 |
| 190 | volumes: |
| 191 | - name: system |
| 192 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
Dennis Dmitriev | f00a384 | 2018-01-24 16:44:26 +0200 | [diff] [blame] | 193 | backing_store: cfg01_day01_image |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 194 | format: qcow2 |
| 195 | - name: iso # Volume with name 'iso' will be used |
| 196 | # for store image with cloud-init metadata. |
| 197 | capacity: 1 |
| 198 | format: raw |
| 199 | device: cdrom |
| 200 | bus: ide |
Dennis Dmitriev | 4ab889c | 2017-04-27 14:11:04 +0300 | [diff] [blame] | 201 | cloudinit_meta_data: *cloudinit_meta_data |
| 202 | cloudinit_user_data: *cloudinit_user_data_cfg01 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 203 | |
| 204 | interfaces: |
| 205 | - label: ens3 |
| 206 | l2_network_device: admin |
| 207 | interface_model: *interface_model |
| 208 | - label: ens4 |
| 209 | l2_network_device: private |
| 210 | interface_model: *interface_model |
| 211 | network_config: |
| 212 | ens3: |
| 213 | networks: |
| 214 | - admin |
| 215 | ens4: |
| 216 | networks: |
| 217 | - private |
| 218 | |
| 219 | - name: {{ HOSTNAME_CTL01 }} |
| 220 | role: salt_minion |
| 221 | params: |
Dennis Dmitriev | 5b0e5f3 | 2017-07-22 11:30:26 +0300 | [diff] [blame] | 222 | vcpu: !os_env SLAVE_NODE_CPU, 2 |
Dennis Dmitriev | 0937c39 | 2018-01-29 18:46:40 +0200 | [diff] [blame] | 223 | memory: !os_env SLAVE_NODE_MEMORY, 12288 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 224 | boot: |
| 225 | - hd |
| 226 | cloud_init_volume_name: iso |
| 227 | cloud_init_iface_up: ens3 |
| 228 | volumes: |
| 229 | - name: system |
| 230 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
Dennis Dmitriev | 6f71cfd | 2018-01-31 14:17:28 +0200 | [diff] [blame^] | 231 | backing_store: mcp_ubuntu_1604_image |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 232 | format: qcow2 |
| 233 | - name: cinder |
| 234 | capacity: 50 |
| 235 | format: qcow2 |
| 236 | - name: iso # Volume with name 'iso' will be used |
| 237 | # for store image with cloud-init metadata. |
| 238 | capacity: 1 |
| 239 | format: raw |
| 240 | device: cdrom |
| 241 | bus: ide |
Dennis Dmitriev | 4ab889c | 2017-04-27 14:11:04 +0300 | [diff] [blame] | 242 | cloudinit_meta_data: *cloudinit_meta_data |
| 243 | cloudinit_user_data: *cloudinit_user_data_1604 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 244 | |
| 245 | interfaces: &interfaces |
| 246 | - label: ens3 |
| 247 | l2_network_device: admin |
| 248 | interface_model: *interface_model |
| 249 | - label: ens4 |
| 250 | l2_network_device: private |
| 251 | interface_model: *interface_model |
| 252 | network_config: &network_config |
| 253 | ens3: |
| 254 | networks: |
| 255 | - admin |
| 256 | ens4: |
| 257 | networks: |
| 258 | - private |
| 259 | |
| 260 | - name: {{ HOSTNAME_CTL02 }} |
| 261 | role: salt_minion |
| 262 | params: |
Dennis Dmitriev | 5b0e5f3 | 2017-07-22 11:30:26 +0300 | [diff] [blame] | 263 | vcpu: !os_env SLAVE_NODE_CPU, 2 |
Dennis Dmitriev | 0937c39 | 2018-01-29 18:46:40 +0200 | [diff] [blame] | 264 | memory: !os_env SLAVE_NODE_MEMORY, 12288 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 265 | boot: |
| 266 | - hd |
| 267 | cloud_init_volume_name: iso |
| 268 | cloud_init_iface_up: ens3 |
| 269 | volumes: |
| 270 | - name: system |
| 271 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
Dennis Dmitriev | 6f71cfd | 2018-01-31 14:17:28 +0200 | [diff] [blame^] | 272 | backing_store: mcp_ubuntu_1604_image |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 273 | format: qcow2 |
| 274 | - name: cinder |
| 275 | capacity: 50 |
| 276 | format: qcow2 |
| 277 | - name: iso # Volume with name 'iso' will be used |
| 278 | # for store image with cloud-init metadata. |
| 279 | capacity: 1 |
| 280 | format: raw |
| 281 | device: cdrom |
| 282 | bus: ide |
Dennis Dmitriev | 4ab889c | 2017-04-27 14:11:04 +0300 | [diff] [blame] | 283 | cloudinit_meta_data: *cloudinit_meta_data |
| 284 | cloudinit_user_data: *cloudinit_user_data_1604 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 285 | |
| 286 | interfaces: *interfaces |
| 287 | network_config: *network_config |
| 288 | |
| 289 | - name: {{ HOSTNAME_CTL03 }} |
| 290 | role: salt_minion |
| 291 | params: |
Dennis Dmitriev | 5b0e5f3 | 2017-07-22 11:30:26 +0300 | [diff] [blame] | 292 | vcpu: !os_env SLAVE_NODE_CPU, 2 |
Dennis Dmitriev | 0937c39 | 2018-01-29 18:46:40 +0200 | [diff] [blame] | 293 | memory: !os_env SLAVE_NODE_MEMORY, 12288 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 294 | boot: |
| 295 | - hd |
| 296 | cloud_init_volume_name: iso |
| 297 | cloud_init_iface_up: ens3 |
| 298 | volumes: |
| 299 | - name: system |
| 300 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
Dennis Dmitriev | 6f71cfd | 2018-01-31 14:17:28 +0200 | [diff] [blame^] | 301 | backing_store: mcp_ubuntu_1604_image |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 302 | format: qcow2 |
| 303 | - name: cinder |
| 304 | capacity: 50 |
| 305 | format: qcow2 |
| 306 | - name: iso # Volume with name 'iso' will be used |
| 307 | # for store image with cloud-init metadata. |
| 308 | capacity: 1 |
| 309 | format: raw |
| 310 | device: cdrom |
| 311 | bus: ide |
Dennis Dmitriev | 4ab889c | 2017-04-27 14:11:04 +0300 | [diff] [blame] | 312 | cloudinit_meta_data: *cloudinit_meta_data |
| 313 | cloudinit_user_data: *cloudinit_user_data_1604 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 314 | |
| 315 | interfaces: *interfaces |
| 316 | network_config: *network_config |
| 317 | |
Tatyana Leontovich | d85357d | 2017-08-02 15:28:37 +0300 | [diff] [blame] | 318 | - name: {{ HOSTNAME_MON01 }} |
| 319 | role: salt_minion |
| 320 | params: |
| 321 | vcpu: !os_env SLAVE_NODE_CPU, 3 |
| 322 | memory: !os_env SLAVE_NODE_MEMORY, 2048 |
| 323 | boot: |
| 324 | - hd |
| 325 | cloud_init_volume_name: iso |
| 326 | cloud_init_iface_up: ens3 |
| 327 | volumes: |
| 328 | - name: system |
| 329 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
Dennis Dmitriev | 6f71cfd | 2018-01-31 14:17:28 +0200 | [diff] [blame^] | 330 | backing_store: mcp_ubuntu_1604_image |
Tatyana Leontovich | d85357d | 2017-08-02 15:28:37 +0300 | [diff] [blame] | 331 | format: qcow2 |
| 332 | - name: iso # Volume with name 'iso' will be used |
| 333 | # for store image with cloud-init metadata. |
| 334 | capacity: 1 |
| 335 | format: raw |
| 336 | device: cdrom |
| 337 | bus: ide |
Dennis Dmitriev | a5f6940 | 2017-10-01 11:14:35 +0300 | [diff] [blame] | 338 | cloudinit_meta_data: *cloudinit_meta_data |
| 339 | cloudinit_user_data: *cloudinit_user_data_1604 |
Tatyana Leontovich | d85357d | 2017-08-02 15:28:37 +0300 | [diff] [blame] | 340 | |
| 341 | interfaces: *interfaces |
| 342 | network_config: *network_config |
| 343 | |
| 344 | - name: {{ HOSTNAME_MON02 }} |
| 345 | role: salt_minion |
| 346 | params: |
| 347 | vcpu: !os_env SLAVE_NODE_CPU, 3 |
| 348 | memory: !os_env SLAVE_NODE_MEMORY, 2048 |
| 349 | boot: |
| 350 | - hd |
| 351 | cloud_init_volume_name: iso |
| 352 | cloud_init_iface_up: ens3 |
| 353 | volumes: |
| 354 | - name: system |
| 355 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
Dennis Dmitriev | 6f71cfd | 2018-01-31 14:17:28 +0200 | [diff] [blame^] | 356 | backing_store: mcp_ubuntu_1604_image |
Tatyana Leontovich | d85357d | 2017-08-02 15:28:37 +0300 | [diff] [blame] | 357 | format: qcow2 |
| 358 | - name: iso # Volume with name 'iso' will be used |
| 359 | # for store image with cloud-init metadata. |
| 360 | capacity: 1 |
| 361 | format: raw |
| 362 | device: cdrom |
| 363 | bus: ide |
Dennis Dmitriev | a5f6940 | 2017-10-01 11:14:35 +0300 | [diff] [blame] | 364 | cloudinit_meta_data: *cloudinit_meta_data |
| 365 | cloudinit_user_data: *cloudinit_user_data_1604 |
Tatyana Leontovich | d85357d | 2017-08-02 15:28:37 +0300 | [diff] [blame] | 366 | |
| 367 | interfaces: *interfaces |
| 368 | network_config: *network_config |
| 369 | |
| 370 | - name: {{ HOSTNAME_MON03 }} |
| 371 | role: salt_minion |
| 372 | params: |
| 373 | vcpu: !os_env SLAVE_NODE_CPU, 3 |
| 374 | memory: !os_env SLAVE_NODE_MEMORY, 2048 |
| 375 | boot: |
| 376 | - hd |
| 377 | cloud_init_volume_name: iso |
| 378 | cloud_init_iface_up: ens3 |
| 379 | volumes: |
| 380 | - name: system |
| 381 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
Dennis Dmitriev | 6f71cfd | 2018-01-31 14:17:28 +0200 | [diff] [blame^] | 382 | backing_store: mcp_ubuntu_1604_image |
Tatyana Leontovich | d85357d | 2017-08-02 15:28:37 +0300 | [diff] [blame] | 383 | format: qcow2 |
| 384 | - name: iso # Volume with name 'iso' will be used |
| 385 | # for store image with cloud-init metadata. |
| 386 | capacity: 1 |
| 387 | format: raw |
| 388 | device: cdrom |
| 389 | bus: ide |
Dennis Dmitriev | a5f6940 | 2017-10-01 11:14:35 +0300 | [diff] [blame] | 390 | cloudinit_meta_data: *cloudinit_meta_data |
| 391 | cloudinit_user_data: *cloudinit_user_data_1604 |
Tatyana Leontovich | d85357d | 2017-08-02 15:28:37 +0300 | [diff] [blame] | 392 | |
| 393 | interfaces: *interfaces |
| 394 | network_config: *network_config |
| 395 | |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 396 | - name: {{ HOSTNAME_PRX01 }} |
| 397 | role: salt_minion |
| 398 | params: |
Dennis Dmitriev | 5b0e5f3 | 2017-07-22 11:30:26 +0300 | [diff] [blame] | 399 | vcpu: !os_env SLAVE_NODE_CPU, 1 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 400 | memory: !os_env SLAVE_NODE_MEMORY, 8192 |
| 401 | boot: |
| 402 | - hd |
| 403 | cloud_init_volume_name: iso |
| 404 | cloud_init_iface_up: ens3 |
| 405 | volumes: |
| 406 | - name: system |
| 407 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
Dennis Dmitriev | 6f71cfd | 2018-01-31 14:17:28 +0200 | [diff] [blame^] | 408 | backing_store: mcp_ubuntu_1604_image |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 409 | format: qcow2 |
| 410 | - name: cinder |
| 411 | capacity: 50 |
| 412 | format: qcow2 |
| 413 | - name: iso # Volume with name 'iso' will be used |
| 414 | # for store image with cloud-init metadata. |
| 415 | capacity: 1 |
| 416 | format: raw |
| 417 | device: cdrom |
| 418 | bus: ide |
Dennis Dmitriev | 4ab889c | 2017-04-27 14:11:04 +0300 | [diff] [blame] | 419 | cloudinit_meta_data: *cloudinit_meta_data |
| 420 | cloudinit_user_data: *cloudinit_user_data_1604 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 421 | |
| 422 | interfaces: *interfaces |
| 423 | network_config: *network_config |
| 424 | |
| 425 | |
| 426 | - name: {{ HOSTNAME_CMP01 }} |
| 427 | role: salt_minion |
| 428 | params: |
Dennis Dmitriev | 5b0e5f3 | 2017-07-22 11:30:26 +0300 | [diff] [blame] | 429 | vcpu: !os_env SLAVE_NODE_CPU, 3 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 430 | memory: !os_env SLAVE_NODE_MEMORY, 4096 |
| 431 | boot: |
| 432 | - hd |
| 433 | cloud_init_volume_name: iso |
| 434 | cloud_init_iface_up: ens3 |
| 435 | volumes: |
| 436 | - name: system |
| 437 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 438 | backing_store: cloudimage1604 |
| 439 | format: qcow2 |
| 440 | - name: iso # Volume with name 'iso' will be used |
| 441 | # for store image with cloud-init metadata. |
| 442 | capacity: 1 |
| 443 | format: raw |
| 444 | device: cdrom |
| 445 | bus: ide |
Dennis Dmitriev | 4ab889c | 2017-04-27 14:11:04 +0300 | [diff] [blame] | 446 | cloudinit_meta_data: *cloudinit_meta_data |
| 447 | cloudinit_user_data: *cloudinit_user_data_1604 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 448 | |
| 449 | |
| 450 | interfaces: &all_interfaces |
| 451 | - label: ens3 |
| 452 | l2_network_device: admin |
| 453 | interface_model: *interface_model |
| 454 | - label: ens4 |
| 455 | l2_network_device: private |
| 456 | interface_model: *interface_model |
| 457 | - label: ens5 |
| 458 | l2_network_device: tenant |
| 459 | interface_model: *interface_model |
| 460 | - label: ens6 |
| 461 | l2_network_device: external |
| 462 | interface_model: *interface_model |
| 463 | network_config: &all_network_config |
| 464 | ens3: |
| 465 | networks: |
| 466 | - admin |
| 467 | ens4: |
| 468 | networks: |
| 469 | - private |
| 470 | ens5: |
| 471 | networks: |
| 472 | - tenant |
| 473 | ens6: |
| 474 | networks: |
| 475 | - external |
| 476 | |
| 477 | - name: {{ HOSTNAME_CMP02 }} |
| 478 | role: salt_minion |
| 479 | params: |
Dennis Dmitriev | 5b0e5f3 | 2017-07-22 11:30:26 +0300 | [diff] [blame] | 480 | vcpu: !os_env SLAVE_NODE_CPU, 3 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 481 | memory: !os_env SLAVE_NODE_MEMORY, 4096 |
| 482 | boot: |
| 483 | - hd |
| 484 | cloud_init_volume_name: iso |
| 485 | cloud_init_iface_up: ens3 |
| 486 | volumes: |
| 487 | - name: system |
| 488 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 489 | backing_store: cloudimage1604 |
| 490 | format: qcow2 |
| 491 | - name: iso # Volume with name 'iso' will be used |
| 492 | # for store image with cloud-init metadata. |
| 493 | capacity: 1 |
| 494 | format: raw |
| 495 | device: cdrom |
| 496 | bus: ide |
Dennis Dmitriev | 4ab889c | 2017-04-27 14:11:04 +0300 | [diff] [blame] | 497 | cloudinit_meta_data: *cloudinit_meta_data |
| 498 | cloudinit_user_data: *cloudinit_user_data_1604 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 499 | |
| 500 | interfaces: *all_interfaces |
| 501 | network_config: *all_network_config |
| 502 | |
| 503 | - name: {{ HOSTNAME_GTW01 }} |
| 504 | role: salt_minion |
| 505 | params: |
| 506 | vcpu: !os_env SLAVE_NODE_CPU, 1 |
| 507 | memory: !os_env SLAVE_NODE_MEMORY, 2048 |
| 508 | boot: |
| 509 | - hd |
| 510 | cloud_init_volume_name: iso |
| 511 | cloud_init_iface_up: ens3 |
| 512 | volumes: |
| 513 | - name: system |
| 514 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 515 | backing_store: cloudimage1604 |
| 516 | format: qcow2 |
| 517 | - name: iso # Volume with name 'iso' will be used |
| 518 | # for store image with cloud-init metadata. |
| 519 | capacity: 1 |
| 520 | format: raw |
| 521 | device: cdrom |
| 522 | bus: ide |
Dennis Dmitriev | 4ab889c | 2017-04-27 14:11:04 +0300 | [diff] [blame] | 523 | cloudinit_meta_data: *cloudinit_meta_data |
| 524 | cloudinit_user_data: *cloudinit_user_data_1604 |
Tatyana Leontovich | 38be41b | 2017-04-12 14:45:23 +0300 | [diff] [blame] | 525 | |
| 526 | interfaces: *all_interfaces |
| 527 | network_config: *all_network_config |
Dennis Dmitriev | a956fe9 | 2017-11-17 15:37:52 +0200 | [diff] [blame] | 528 | |
| 529 | - name: {{ HOSTNAME_DNS01 }} |
| 530 | role: salt_minion |
| 531 | params: |
| 532 | vcpu: !os_env SLAVE_NODE_CPU, 1 |
| 533 | memory: !os_env SLAVE_NODE_MEMORY, 2048 |
| 534 | boot: |
| 535 | - hd |
| 536 | cloud_init_volume_name: iso |
| 537 | cloud_init_iface_up: ens3 |
| 538 | volumes: |
| 539 | - name: system |
| 540 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
Dennis Dmitriev | 6f71cfd | 2018-01-31 14:17:28 +0200 | [diff] [blame^] | 541 | backing_store: mcp_ubuntu_1604_image |
Dennis Dmitriev | a956fe9 | 2017-11-17 15:37:52 +0200 | [diff] [blame] | 542 | format: qcow2 |
| 543 | - name: iso # Volume with name 'iso' will be used |
| 544 | # for store image with cloud-init metadata. |
| 545 | capacity: 1 |
| 546 | format: raw |
| 547 | device: cdrom |
| 548 | bus: ide |
| 549 | cloudinit_meta_data: *cloudinit_meta_data |
| 550 | cloudinit_user_data: *cloudinit_user_data_1604 |
| 551 | |
| 552 | interfaces: *all_interfaces |
| 553 | network_config: *all_network_config |
| 554 | |
| 555 | - name: {{ HOSTNAME_DNS02 }} |
| 556 | role: salt_minion |
| 557 | params: |
| 558 | vcpu: !os_env SLAVE_NODE_CPU, 1 |
| 559 | memory: !os_env SLAVE_NODE_MEMORY, 2048 |
| 560 | boot: |
| 561 | - hd |
| 562 | cloud_init_volume_name: iso |
| 563 | cloud_init_iface_up: ens3 |
| 564 | volumes: |
| 565 | - name: system |
| 566 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
Dennis Dmitriev | 6f71cfd | 2018-01-31 14:17:28 +0200 | [diff] [blame^] | 567 | backing_store: mcp_ubuntu_1604_image |
Dennis Dmitriev | a956fe9 | 2017-11-17 15:37:52 +0200 | [diff] [blame] | 568 | format: qcow2 |
| 569 | - name: iso # Volume with name 'iso' will be used |
| 570 | # for store image with cloud-init metadata. |
| 571 | capacity: 1 |
| 572 | format: raw |
| 573 | device: cdrom |
| 574 | bus: ide |
| 575 | cloudinit_meta_data: *cloudinit_meta_data |
| 576 | cloudinit_user_data: *cloudinit_user_data_1604 |
| 577 | |
| 578 | interfaces: *all_interfaces |
| 579 | network_config: *all_network_config |