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-mcp11-ovs/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %} |
| 5 | {% import 'virtual-mcp11-ovs/underlay--user-data-cfg01.yaml' as CLOUDINIT_USER_DATA_CFG01 with context %} |
| 6 | {% import 'virtual-mcp11-ovs/underlay--user-data1604.yaml' as CLOUDINIT_USER_DATA_1604 with context %} |
Dennis Dmitriev | 99b26fe | 2017-04-26 12:34:44 +0300 | [diff] [blame] | 7 | |
Tatyana Leontovich | d8bf14f | 2017-04-19 12:20:50 +0300 | [diff] [blame] | 8 | --- |
| 9 | aliases: |
Dennis Dmitriev | 99b26fe | 2017-04-26 12:34:44 +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 | d8bf14f | 2017-04-19 12:20:50 +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-mcp11-ovs') %} |
| 16 | {% set DOMAIN_NAME = os_env('DOMAIN_NAME', LAB_CONFIG_NAME) + '.local' %} |
Tatyana Leontovich | d8bf14f | 2017-04-19 12:20:50 +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) %} |
| 23 | {% set HOSTNAME_GTW01 = os_env('HOSTNAME_GTW01', 'gtw01.' + DOMAIN_NAME) %} |
| 24 | {% set HOSTNAME_PRX01 = os_env('HOSTNAME_PRX01', 'prx01.' + DOMAIN_NAME) %} |
| 25 | |
| 26 | template: |
| 27 | devops_settings: |
Dennis Dmitriev | ab83ea4 | 2017-05-12 16:52:45 +0300 | [diff] [blame] | 28 | env_name: {{ os_env('ENV_NAME', 'virtual-mcp11-ovs_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }} |
Tatyana Leontovich | d8bf14f | 2017-04-19 12:20:50 +0300 | [diff] [blame] | 29 | |
| 30 | address_pools: |
| 31 | private-pool01: |
Dennis Dmitriev | 99b26fe | 2017-04-26 12:34:44 +0300 | [diff] [blame] | 32 | net: {{ os_env('PRIVATE_ADDRESS_POOL01', '10.60.0.0/16:24') }} |
Tatyana Leontovich | d8bf14f | 2017-04-19 12:20:50 +0300 | [diff] [blame] | 33 | params: |
| 34 | ip_reserved: |
| 35 | gateway: +1 |
| 36 | l2_network_device: +1 |
Tatyana Leontovich | 1328b3d | 2017-10-04 18:48:52 +0300 | [diff] [blame] | 37 | default_{{ HOSTNAME_CFG01 }}: +90 |
| 38 | default_{{ HOSTNAME_CTL01 }}: +91 |
| 39 | default_{{ HOSTNAME_CTL02 }}: +92 |
| 40 | default_{{ HOSTNAME_CTL03 }}: +93 |
| 41 | default_{{ HOSTNAME_CMP01 }}: +95 |
| 42 | default_{{ HOSTNAME_CMP02 }}: +96 |
| 43 | default_{{ HOSTNAME_GTW01 }}: +94 |
Tatyana Leontovich | d8bf14f | 2017-04-19 12:20:50 +0300 | [diff] [blame] | 44 | default_{{ HOSTNAME_PRX01 }}: +121 |
| 45 | ip_ranges: |
| 46 | dhcp: [+90, -10] |
| 47 | |
| 48 | admin-pool01: |
Dennis Dmitriev | 99b26fe | 2017-04-26 12:34:44 +0300 | [diff] [blame] | 49 | net: {{ os_env('ADMIN_ADDRESS_POOL01', '10.70.0.0/16:24') }} |
Tatyana Leontovich | d8bf14f | 2017-04-19 12:20:50 +0300 | [diff] [blame] | 50 | params: |
| 51 | ip_reserved: |
| 52 | gateway: +1 |
| 53 | l2_network_device: +1 |
Tatyana Leontovich | e0286ed | 2017-09-12 11:55:06 +0300 | [diff] [blame] | 54 | default_{{ HOSTNAME_CFG01 }}: +90 |
Tatyana Leontovich | cc864bd | 2017-10-04 18:35:44 +0300 | [diff] [blame] | 55 | default_{{ HOSTNAME_CTL01 }}: +91 |
| 56 | default_{{ HOSTNAME_CTL02 }}: +92 |
| 57 | default_{{ HOSTNAME_CTL03 }}: +93 |
| 58 | default_{{ HOSTNAME_CMP01 }}: +95 |
| 59 | default_{{ HOSTNAME_CMP02 }}: +96 |
| 60 | default_{{ HOSTNAME_GTW01 }}: +94 |
Tatyana Leontovich | d8bf14f | 2017-04-19 12:20:50 +0300 | [diff] [blame] | 61 | default_{{ HOSTNAME_PRX01 }}: +121 |
| 62 | ip_ranges: |
| 63 | dhcp: [+90, -10] |
| 64 | |
| 65 | tenant-pool01: |
Dennis Dmitriev | 99b26fe | 2017-04-26 12:34:44 +0300 | [diff] [blame] | 66 | net: {{ os_env('TENANT_ADDRESS_POOL01', '10.80.0.0/16:24') }} |
Tatyana Leontovich | d8bf14f | 2017-04-19 12:20:50 +0300 | [diff] [blame] | 67 | params: |
| 68 | ip_reserved: |
| 69 | gateway: +1 |
| 70 | l2_network_device: +1 |
| 71 | default_{{ HOSTNAME_CFG01 }}: +100 |
| 72 | default_{{ HOSTNAME_CTL01 }}: +101 |
| 73 | default_{{ HOSTNAME_CTL02 }}: +102 |
| 74 | default_{{ HOSTNAME_CTL03 }}: +103 |
| 75 | default_{{ HOSTNAME_CMP01 }}: +105 |
| 76 | default_{{ HOSTNAME_CMP02 }}: +106 |
| 77 | default_{{ HOSTNAME_GTW01 }}: +110 |
| 78 | default_{{ HOSTNAME_PRX01 }}: +121 |
| 79 | ip_ranges: |
| 80 | dhcp: [+10, -10] |
| 81 | |
| 82 | external-pool01: |
Dennis Dmitriev | 99b26fe | 2017-04-26 12:34:44 +0300 | [diff] [blame] | 83 | net: {{ os_env('EXTERNAL_ADDRESS_POOL01', '10.90.0.0/16:24') }} |
Tatyana Leontovich | d8bf14f | 2017-04-19 12:20:50 +0300 | [diff] [blame] | 84 | params: |
| 85 | ip_reserved: |
| 86 | gateway: +1 |
| 87 | l2_network_device: +1 |
| 88 | default_{{ HOSTNAME_CFG01 }}: +100 |
| 89 | default_{{ HOSTNAME_CTL01 }}: +101 |
| 90 | default_{{ HOSTNAME_CTL02 }}: +102 |
| 91 | default_{{ HOSTNAME_CTL03 }}: +103 |
| 92 | default_{{ HOSTNAME_CMP01 }}: +105 |
| 93 | default_{{ HOSTNAME_CMP02 }}: +106 |
| 94 | default_{{ HOSTNAME_GTW01 }}: +110 |
| 95 | default_{{ HOSTNAME_PRX01 }}: +121 |
| 96 | ip_ranges: |
| 97 | dhcp: [+10, -10] |
| 98 | |
| 99 | |
| 100 | groups: |
| 101 | - name: default |
| 102 | driver: |
| 103 | name: devops.driver.libvirt |
| 104 | params: |
| 105 | connection_string: !os_env CONNECTION_STRING, qemu:///system |
| 106 | storage_pool_name: !os_env STORAGE_POOL_NAME, default |
| 107 | stp: False |
| 108 | hpet: False |
| 109 | enable_acpi: true |
| 110 | use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true |
Dennis Dmitriev | b3fc424 | 2017-07-14 16:01:51 +0300 | [diff] [blame] | 111 | use_hugepages: !os_env DRIVER_USE_HUGEPAGES, false |
Tatyana Leontovich | d8bf14f | 2017-04-19 12:20:50 +0300 | [diff] [blame] | 112 | |
| 113 | network_pools: |
| 114 | admin: admin-pool01 |
| 115 | private: private-pool01 |
| 116 | tenant: tenant-pool01 |
| 117 | external: external-pool01 |
| 118 | |
| 119 | l2_network_devices: |
| 120 | private: |
| 121 | address_pool: private-pool01 |
Dennis Dmitriev | 68ef8ff | 2018-03-22 18:13:36 +0200 | [diff] [blame] | 122 | dhcp: false |
| 123 | forward: |
| 124 | mode: route |
Tatyana Leontovich | d8bf14f | 2017-04-19 12:20:50 +0300 | [diff] [blame] | 125 | |
| 126 | admin: |
| 127 | address_pool: admin-pool01 |
| 128 | dhcp: true |
| 129 | forward: |
| 130 | mode: nat |
| 131 | |
| 132 | tenant: |
| 133 | address_pool: tenant-pool01 |
Dennis Dmitriev | 68ef8ff | 2018-03-22 18:13:36 +0200 | [diff] [blame] | 134 | dhcp: false |
Tatyana Leontovich | d8bf14f | 2017-04-19 12:20:50 +0300 | [diff] [blame] | 135 | |
| 136 | external: |
| 137 | address_pool: external-pool01 |
| 138 | dhcp: true |
| 139 | forward: |
| 140 | mode: nat |
| 141 | |
| 142 | |
| 143 | group_volumes: |
Tatyana Leontovich | d8bf14f | 2017-04-19 12:20:50 +0300 | [diff] [blame] | 144 | - 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] | 145 | source_image: !os_env IMAGE_PATH1604 # https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img |
| 146 | format: qcow2 |
| 147 | |
| 148 | - name: cfg01_day01_image # Pre-configured day01 image |
| 149 | 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 | d8bf14f | 2017-04-19 12:20:50 +0300 | [diff] [blame] | 150 | format: qcow2 |
| 151 | |
| 152 | nodes: |
| 153 | - name: {{ HOSTNAME_CFG01 }} |
| 154 | role: salt_master |
| 155 | params: |
Dennis Dmitriev | 5b0e5f3 | 2017-07-22 11:30:26 +0300 | [diff] [blame] | 156 | vcpu: !os_env SLAVE_NODE_CPU, 2 |
Dennis Dmitriev | b182279 | 2017-10-24 18:22:23 +0300 | [diff] [blame] | 157 | memory: !os_env SLAVE_NODE_MEMORY, 4096 |
Tatyana Leontovich | d8bf14f | 2017-04-19 12:20:50 +0300 | [diff] [blame] | 158 | boot: |
| 159 | - hd |
| 160 | cloud_init_volume_name: iso |
| 161 | cloud_init_iface_up: ens3 |
| 162 | volumes: |
| 163 | - name: system |
| 164 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
Dennis Dmitriev | f00a384 | 2018-01-24 16:44:26 +0200 | [diff] [blame] | 165 | backing_store: cfg01_day01_image |
Tatyana Leontovich | d8bf14f | 2017-04-19 12:20:50 +0300 | [diff] [blame] | 166 | format: qcow2 |
| 167 | - name: iso # Volume with name 'iso' will be used |
| 168 | # for store image with cloud-init metadata. |
| 169 | capacity: 1 |
| 170 | format: raw |
| 171 | device: cdrom |
| 172 | bus: ide |
Dennis Dmitriev | 99b26fe | 2017-04-26 12:34:44 +0300 | [diff] [blame] | 173 | cloudinit_meta_data: *cloudinit_meta_data |
| 174 | cloudinit_user_data: *cloudinit_user_data_cfg01 |
Tatyana Leontovich | d8bf14f | 2017-04-19 12:20:50 +0300 | [diff] [blame] | 175 | |
| 176 | interfaces: |
| 177 | - label: ens3 |
| 178 | l2_network_device: admin |
| 179 | interface_model: *interface_model |
| 180 | - label: ens4 |
| 181 | l2_network_device: private |
| 182 | interface_model: *interface_model |
| 183 | network_config: |
| 184 | ens3: |
| 185 | networks: |
| 186 | - admin |
| 187 | ens4: |
| 188 | networks: |
| 189 | - private |
| 190 | |
| 191 | - name: {{ HOSTNAME_CTL01 }} |
| 192 | role: salt_minion |
| 193 | params: |
Dennis Dmitriev | 4a43e9a | 2017-11-10 13:08:40 +0200 | [diff] [blame] | 194 | vcpu: !os_env SLAVE_NODE_CPU, 3 |
| 195 | memory: !os_env SLAVE_NODE_MEMORY, 12288 |
Tatyana Leontovich | d8bf14f | 2017-04-19 12:20:50 +0300 | [diff] [blame] | 196 | boot: |
| 197 | - hd |
| 198 | cloud_init_volume_name: iso |
| 199 | cloud_init_iface_up: ens3 |
| 200 | volumes: |
| 201 | - name: system |
| 202 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 203 | backing_store: cloudimage1604 |
| 204 | format: qcow2 |
| 205 | - name: cinder |
| 206 | capacity: 50 |
| 207 | format: qcow2 |
| 208 | - name: iso # Volume with name 'iso' will be used |
| 209 | # for store image with cloud-init metadata. |
| 210 | capacity: 1 |
| 211 | format: raw |
| 212 | device: cdrom |
| 213 | bus: ide |
Dennis Dmitriev | 99b26fe | 2017-04-26 12:34:44 +0300 | [diff] [blame] | 214 | cloudinit_meta_data: *cloudinit_meta_data |
| 215 | cloudinit_user_data: *cloudinit_user_data_1604 |
Tatyana Leontovich | d8bf14f | 2017-04-19 12:20:50 +0300 | [diff] [blame] | 216 | |
| 217 | interfaces: &interfaces |
| 218 | - label: ens3 |
| 219 | l2_network_device: admin |
| 220 | interface_model: *interface_model |
| 221 | - label: ens4 |
| 222 | l2_network_device: private |
| 223 | interface_model: *interface_model |
| 224 | network_config: &network_config |
| 225 | ens3: |
| 226 | networks: |
| 227 | - admin |
| 228 | ens4: |
| 229 | networks: |
| 230 | - private |
| 231 | |
| 232 | - name: {{ HOSTNAME_CTL02 }} |
| 233 | role: salt_minion |
| 234 | params: |
Dennis Dmitriev | 4a43e9a | 2017-11-10 13:08:40 +0200 | [diff] [blame] | 235 | vcpu: !os_env SLAVE_NODE_CPU, 3 |
| 236 | memory: !os_env SLAVE_NODE_MEMORY, 12288 |
Tatyana Leontovich | d8bf14f | 2017-04-19 12:20:50 +0300 | [diff] [blame] | 237 | boot: |
| 238 | - hd |
| 239 | cloud_init_volume_name: iso |
| 240 | cloud_init_iface_up: ens3 |
| 241 | volumes: |
| 242 | - name: system |
| 243 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 244 | backing_store: cloudimage1604 |
| 245 | format: qcow2 |
| 246 | - name: cinder |
| 247 | capacity: 50 |
| 248 | format: qcow2 |
| 249 | - name: iso # Volume with name 'iso' will be used |
| 250 | # for store image with cloud-init metadata. |
| 251 | capacity: 1 |
| 252 | format: raw |
| 253 | device: cdrom |
| 254 | bus: ide |
Dennis Dmitriev | 99b26fe | 2017-04-26 12:34:44 +0300 | [diff] [blame] | 255 | cloudinit_meta_data: *cloudinit_meta_data |
| 256 | cloudinit_user_data: *cloudinit_user_data_1604 |
Tatyana Leontovich | d8bf14f | 2017-04-19 12:20:50 +0300 | [diff] [blame] | 257 | |
| 258 | interfaces: *interfaces |
| 259 | network_config: *network_config |
| 260 | |
| 261 | - name: {{ HOSTNAME_CTL03 }} |
| 262 | role: salt_minion |
| 263 | params: |
Dennis Dmitriev | 4a43e9a | 2017-11-10 13:08:40 +0200 | [diff] [blame] | 264 | vcpu: !os_env SLAVE_NODE_CPU, 3 |
| 265 | memory: !os_env SLAVE_NODE_MEMORY, 12288 |
Tatyana Leontovich | d8bf14f | 2017-04-19 12:20:50 +0300 | [diff] [blame] | 266 | boot: |
| 267 | - hd |
| 268 | cloud_init_volume_name: iso |
| 269 | cloud_init_iface_up: ens3 |
| 270 | volumes: |
| 271 | - name: system |
| 272 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 273 | backing_store: cloudimage1604 |
| 274 | format: qcow2 |
| 275 | - name: cinder |
| 276 | capacity: 50 |
| 277 | format: qcow2 |
| 278 | - name: iso # Volume with name 'iso' will be used |
| 279 | # for store image with cloud-init metadata. |
| 280 | capacity: 1 |
| 281 | format: raw |
| 282 | device: cdrom |
| 283 | bus: ide |
Dennis Dmitriev | 99b26fe | 2017-04-26 12:34:44 +0300 | [diff] [blame] | 284 | cloudinit_meta_data: *cloudinit_meta_data |
| 285 | cloudinit_user_data: *cloudinit_user_data_1604 |
Tatyana Leontovich | d8bf14f | 2017-04-19 12:20:50 +0300 | [diff] [blame] | 286 | |
| 287 | interfaces: *interfaces |
| 288 | network_config: *network_config |
| 289 | |
| 290 | - name: {{ HOSTNAME_PRX01 }} |
| 291 | role: salt_minion |
| 292 | params: |
Dennis Dmitriev | 5b0e5f3 | 2017-07-22 11:30:26 +0300 | [diff] [blame] | 293 | vcpu: !os_env SLAVE_NODE_CPU, 1 |
Tatyana Leontovich | d8bf14f | 2017-04-19 12:20:50 +0300 | [diff] [blame] | 294 | memory: !os_env SLAVE_NODE_MEMORY, 8192 |
| 295 | boot: |
| 296 | - hd |
| 297 | cloud_init_volume_name: iso |
| 298 | cloud_init_iface_up: ens3 |
| 299 | volumes: |
| 300 | - name: system |
| 301 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 302 | backing_store: cloudimage1604 |
| 303 | format: qcow2 |
| 304 | - name: cinder |
| 305 | capacity: 50 |
| 306 | format: qcow2 |
| 307 | - name: iso # Volume with name 'iso' will be used |
| 308 | # for store image with cloud-init metadata. |
| 309 | capacity: 1 |
| 310 | format: raw |
| 311 | device: cdrom |
| 312 | bus: ide |
Dennis Dmitriev | 99b26fe | 2017-04-26 12:34:44 +0300 | [diff] [blame] | 313 | cloudinit_meta_data: *cloudinit_meta_data |
| 314 | cloudinit_user_data: *cloudinit_user_data_1604 |
Tatyana Leontovich | d8bf14f | 2017-04-19 12:20:50 +0300 | [diff] [blame] | 315 | |
| 316 | interfaces: *interfaces |
| 317 | network_config: *network_config |
| 318 | |
| 319 | |
| 320 | - name: {{ HOSTNAME_CMP01 }} |
| 321 | role: salt_minion |
| 322 | params: |
Dennis Dmitriev | 5b0e5f3 | 2017-07-22 11:30:26 +0300 | [diff] [blame] | 323 | vcpu: !os_env SLAVE_NODE_CPU, 3 |
Tatyana Leontovich | d8bf14f | 2017-04-19 12:20:50 +0300 | [diff] [blame] | 324 | memory: !os_env SLAVE_NODE_MEMORY, 4096 |
| 325 | boot: |
| 326 | - hd |
| 327 | cloud_init_volume_name: iso |
| 328 | cloud_init_iface_up: ens3 |
| 329 | volumes: |
| 330 | - name: system |
| 331 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 332 | backing_store: cloudimage1604 |
| 333 | format: qcow2 |
| 334 | - name: iso # Volume with name 'iso' will be used |
| 335 | # for store image with cloud-init metadata. |
| 336 | capacity: 1 |
| 337 | format: raw |
| 338 | device: cdrom |
| 339 | bus: ide |
Dennis Dmitriev | 99b26fe | 2017-04-26 12:34:44 +0300 | [diff] [blame] | 340 | cloudinit_meta_data: *cloudinit_meta_data |
| 341 | cloudinit_user_data: *cloudinit_user_data_1604 |
Tatyana Leontovich | d8bf14f | 2017-04-19 12:20:50 +0300 | [diff] [blame] | 342 | |
| 343 | |
| 344 | interfaces: &all_interfaces |
| 345 | - label: ens3 |
| 346 | l2_network_device: admin |
| 347 | interface_model: *interface_model |
| 348 | - label: ens4 |
| 349 | l2_network_device: private |
| 350 | interface_model: *interface_model |
| 351 | - label: ens5 |
| 352 | l2_network_device: tenant |
| 353 | interface_model: *interface_model |
| 354 | - label: ens6 |
| 355 | l2_network_device: external |
| 356 | interface_model: *interface_model |
| 357 | network_config: &all_network_config |
| 358 | ens3: |
| 359 | networks: |
| 360 | - admin |
| 361 | ens4: |
| 362 | networks: |
| 363 | - private |
| 364 | ens5: |
| 365 | networks: |
| 366 | - tenant |
| 367 | ens6: |
| 368 | networks: |
| 369 | - external |
| 370 | |
| 371 | - name: {{ HOSTNAME_CMP02 }} |
| 372 | role: salt_minion |
| 373 | params: |
Dennis Dmitriev | 5b0e5f3 | 2017-07-22 11:30:26 +0300 | [diff] [blame] | 374 | vcpu: !os_env SLAVE_NODE_CPU, 3 |
Tatyana Leontovich | d8bf14f | 2017-04-19 12:20:50 +0300 | [diff] [blame] | 375 | memory: !os_env SLAVE_NODE_MEMORY, 4096 |
| 376 | boot: |
| 377 | - hd |
| 378 | cloud_init_volume_name: iso |
| 379 | cloud_init_iface_up: ens3 |
| 380 | volumes: |
| 381 | - name: system |
| 382 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 383 | backing_store: cloudimage1604 |
| 384 | format: qcow2 |
| 385 | - name: iso # Volume with name 'iso' will be used |
| 386 | # for store image with cloud-init metadata. |
| 387 | capacity: 1 |
| 388 | format: raw |
| 389 | device: cdrom |
| 390 | bus: ide |
Dennis Dmitriev | 99b26fe | 2017-04-26 12:34:44 +0300 | [diff] [blame] | 391 | cloudinit_meta_data: *cloudinit_meta_data |
| 392 | cloudinit_user_data: *cloudinit_user_data_1604 |
Tatyana Leontovich | d8bf14f | 2017-04-19 12:20:50 +0300 | [diff] [blame] | 393 | |
| 394 | interfaces: *all_interfaces |
| 395 | network_config: *all_network_config |
| 396 | |
| 397 | - name: {{ HOSTNAME_GTW01 }} |
| 398 | role: salt_minion |
| 399 | params: |
| 400 | vcpu: !os_env SLAVE_NODE_CPU, 1 |
| 401 | memory: !os_env SLAVE_NODE_MEMORY, 2048 |
| 402 | boot: |
| 403 | - hd |
| 404 | cloud_init_volume_name: iso |
| 405 | cloud_init_iface_up: ens3 |
| 406 | volumes: |
| 407 | - name: system |
| 408 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 409 | backing_store: cloudimage1604 |
| 410 | format: qcow2 |
| 411 | - name: iso # Volume with name 'iso' will be used |
| 412 | # for store image with cloud-init metadata. |
| 413 | capacity: 1 |
| 414 | format: raw |
| 415 | device: cdrom |
| 416 | bus: ide |
Dennis Dmitriev | 99b26fe | 2017-04-26 12:34:44 +0300 | [diff] [blame] | 417 | cloudinit_meta_data: *cloudinit_meta_data |
| 418 | cloudinit_user_data: *cloudinit_user_data_1604 |
Tatyana Leontovich | d8bf14f | 2017-04-19 12:20:50 +0300 | [diff] [blame] | 419 | |
| 420 | interfaces: *all_interfaces |
| 421 | network_config: *all_network_config |