sgudz | 64ca981 | 2019-03-12 17:31:31 +0200 | [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') %} |
| 3 | |
| 4 | {% import 'create-vm-on-host/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %} |
| 5 | {% import 'create-vm-on-host/underlay--user-data1604-swp.yaml' as CLOUDINIT_USER_DATA_1604_SWP with context %} |
| 6 | |
| 7 | --- |
| 8 | aliases: |
| 9 | - &interface_model {{ os_env('INTERFACE_MODEL', 'virtio') }} |
| 10 | - &cloudinit_meta_data {{ CLOUDINIT_META_DATA }} |
| 11 | - &cloudinit_user_data_1604_swp {{ CLOUDINIT_USER_DATA_1604_SWP }} |
| 12 | |
| 13 | {% set LAB_CONFIG_NAME = os_env('LAB_CONFIG_NAME', 'create-vm-on-host') %} |
| 14 | {% set DOMAIN_NAME = os_env('DOMAIN_NAME', LAB_CONFIG_NAME) + '.local' %} |
| 15 | {% set HOSTNAME_CMP = os_env('HOSTNAME_CMP', 'cmp001') %} |
| 16 | |
| 17 | template: |
| 18 | devops_settings: |
| 19 | env_name: {{ os_env('ENV_NAME', 'create-vm-on-host_' + REPOSITORY_SUITE + "_" + os_env('BUILD_NUMBER', '')) }} |
| 20 | |
| 21 | address_pools: |
| 22 | private-pool01: |
| 23 | net: {{ os_env('PRIVATE_ADDRESS_POOL01', '10.60.0.0/16:24') }} |
| 24 | params: |
| 25 | ip_reserved: |
| 26 | gateway: +1 |
| 27 | l2_network_device: +1 |
| 28 | default_{{ HOSTNAME_CMP }}: +105 |
| 29 | ip_ranges: |
| 30 | dhcp: [+90, -10] |
| 31 | |
| 32 | admin-pool01: |
| 33 | net: {{ os_env('ADMIN_ADDRESS_POOL01', '10.70.0.0/16:24') }} |
| 34 | params: |
| 35 | ip_reserved: |
| 36 | gateway: +1 |
| 37 | default_l2_network_device: +1 |
| 38 | default_{{ HOSTNAME_CMP }}: +105 |
| 39 | ip_ranges: |
| 40 | dhcp: [+90, -10] |
| 41 | |
| 42 | tenant-pool01: |
| 43 | net: {{ os_env('TENANT_ADDRESS_POOL01', '10.80.0.0/16:24') }} |
| 44 | params: |
| 45 | ip_reserved: |
| 46 | gateway: +1 |
| 47 | l2_network_device: +1 |
| 48 | default_{{ HOSTNAME_CMP }}: +105 |
| 49 | ip_ranges: |
| 50 | dhcp: [+10, -10] |
| 51 | |
| 52 | external-pool01: |
| 53 | net: {{ os_env('EXTERNAL_ADDRESS_POOL01', '10.90.0.0/16:24') }} |
| 54 | params: |
| 55 | ip_reserved: |
| 56 | gateway: +1 |
| 57 | l2_network_device: +1 |
| 58 | default_{{ HOSTNAME_CMP }}: +105 |
| 59 | ip_ranges: |
| 60 | dhcp: [+180, +220] |
| 61 | |
| 62 | groups: |
| 63 | - name: default |
| 64 | driver: |
| 65 | name: devops.driver.libvirt |
| 66 | params: |
| 67 | connection_string: !os_env CONNECTION_STRING, qemu+ssh://jenkins@cz8115.bud.mirantis.net/system |
| 68 | storage_pool_name: !os_env STORAGE_POOL_NAME, default |
| 69 | stp: False |
| 70 | hpet: False |
| 71 | enable_acpi: true |
| 72 | use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true |
| 73 | use_hugepages: !os_env DRIVER_USE_HUGEPAGES, false |
| 74 | |
| 75 | network_pools: |
| 76 | admin: admin-pool01 |
| 77 | private: private-pool01 |
| 78 | tenant: tenant-pool01 |
| 79 | |
| 80 | l2_network_devices: |
| 81 | private: |
| 82 | address_pool: private-pool01 |
| 83 | parent_iface: |
| 84 | phys_dev: !os_env CONTROL_BRIDGE, 'br-control' |
| 85 | |
| 86 | admin: |
| 87 | address_pool: admin-pool01 |
| 88 | parent_iface: |
| 89 | phys_dev: !os_env ADMIN_BRIDGE, 'br-admin' |
| 90 | |
| 91 | tenant: |
| 92 | address_pool: tenant-pool01 |
| 93 | parent_iface: |
| 94 | phys_dev: !os_env TENANT_BRIDGE, 'br-tenant' |
| 95 | |
| 96 | external: |
| 97 | address_pool: external-pool01 |
| 98 | dhcp: false |
| 99 | forward: |
| 100 | mode: route |
| 101 | |
| 102 | group_volumes: |
| 103 | - name: cloudimage1604 # This name is used for 'backing_store' option for node volumes. |
| 104 | source_image: {{ os_env('MCP_IMAGE_PATH1604') }} # http://ci.mcp.mirantis.net:8085/images/ubuntu-16-04-x64-mcpproposed.qcow2 |
| 105 | format: qcow2 |
| 106 | - name: mcp_ubuntu_1604_image # Pre-configured image for control plane |
| 107 | source_image: !os_env MCP_IMAGE_PATH1604 |
| 108 | format: qcow2 |
| 109 | |
| 110 | nodes: |
| 111 | - name: {{ HOSTNAME_CMP }} |
| 112 | role: salt_minion |
| 113 | params: |
| 114 | vcpu: !os_env SLAVE_NODE_CPU, 12 |
| 115 | memory: !os_env SLAVE_NODE_MEMORY, 32768 |
| 116 | numa: |
| 117 | - cpus: !os_env NUMA0_CPUS, '0,1,2,3,4,5' |
| 118 | memory: !os_env NUMA0_MEMORY, 16384 |
| 119 | - cpus: !os_env NUMA1_CPUS, '6,7,8,9,10,11' |
| 120 | memory: !os_env NUMA1_MEMORY, 16384 |
| 121 | boot: |
| 122 | - hd |
| 123 | cloud_init_volume_name: iso |
| 124 | cloud_init_iface_up: ens3 |
| 125 | volumes: |
| 126 | - name: system |
| 127 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
| 128 | backing_store: cloudimage1604 |
| 129 | format: qcow2 |
| 130 | - name: cinder |
| 131 | capacity: 100 |
| 132 | format: qcow2 |
| 133 | - name: iso # Volume with name 'iso' will be used |
| 134 | # for store image with cloud-init metadata. |
| 135 | capacity: 1 |
| 136 | format: raw |
| 137 | device: cdrom |
| 138 | bus: ide |
| 139 | cloudinit_meta_data: *cloudinit_meta_data |
| 140 | cloudinit_user_data: *cloudinit_user_data_1604_swp |
| 141 | |
| 142 | interfaces: &interfaces |
| 143 | - label: ens3 |
| 144 | l2_network_device: admin |
| 145 | interface_model: *interface_model |
| 146 | - label: ens4 |
| 147 | l2_network_device: private |
| 148 | interface_model: *interface_model |
| 149 | - label: ens5 |
| 150 | l2_network_device: tenant |
| 151 | interface_model: *interface_model |
| 152 | - label: ens6 |
| 153 | l2_network_device: external |
| 154 | interface_model: *interface_model |
| 155 | |
| 156 | network_config: &network_config |
| 157 | ens3: |
| 158 | networks: |
| 159 | - admin |
| 160 | ens4: |
| 161 | networks: |
| 162 | - private |
| 163 | ens5: |
| 164 | networks: |
| 165 | - tenant |
| 166 | ens6: |
| 167 | networks: |
| 168 | - external |