Dennis Dmitriev | 7b9538f | 2017-05-15 17:01:34 +0300 | [diff] [blame] | 1 | # Set the repository suite, one of the: 'nightly', 'testing', 'stable', or any other required |
Dennis Dmitriev | 80fe32d | 2017-06-02 13:47:35 +0300 | [diff] [blame] | 2 | {% set DOMAIN_NAME = os_env('LAB_CONFIG_NAME', 'standalone') + '.local' %} |
| 3 | {% set HOSTNAME_IRONIC = os_env('HOSTNAME_IRONIC', 'ironic_master') %} |
Dennis Dmitriev | 492813e | 2017-08-09 15:08:58 +0300 | [diff] [blame] | 4 | {% set IRONIC_ENV_NAME = os_env('IRONIC_ENV_NAME', 'ironic_' + DOMAIN_NAME + '_' + os_env('BUILD_NUMBER', '')) %} |
Dennis Dmitriev | 7b9538f | 2017-05-15 17:01:34 +0300 | [diff] [blame] | 5 | |
| 6 | {% import 'ironic_standalone/underlay--meta-data.yaml' as CLOUDINIT_META_DATA with context %} |
| 7 | {% import 'ironic_standalone/underlay--user-data-ironic.yaml' as CLOUDINIT_USER_DATA_IRONIC with context %} |
| 8 | |
| 9 | --- |
| 10 | aliases: |
| 11 | - &interface_model {{ os_env('INTERFACE_MODEL', 'virtio') }} |
| 12 | - &cloudinit_meta_data {{ CLOUDINIT_META_DATA }} |
| 13 | - &cloudinit_user_data_ironic {{ CLOUDINIT_USER_DATA_IRONIC }} |
| 14 | |
Dennis Dmitriev | 7b9538f | 2017-05-15 17:01:34 +0300 | [diff] [blame] | 15 | |
| 16 | template: |
| 17 | devops_settings: |
Dennis Dmitriev | 80fe32d | 2017-06-02 13:47:35 +0300 | [diff] [blame] | 18 | env_name: {{ IRONIC_ENV_NAME }} |
Dennis Dmitriev | 7b9538f | 2017-05-15 17:01:34 +0300 | [diff] [blame] | 19 | |
| 20 | address_pools: |
| 21 | |
Dennis Dmitriev | a63bac6 | 2017-05-15 18:36:26 +0300 | [diff] [blame] | 22 | admin-pool01: |
| 23 | net: {{ os_env('IRONIC_ADMIN_ADDRESS_POOL01', '10.50.0.0/16:24') }} |
Dennis Dmitriev | 7b9538f | 2017-05-15 17:01:34 +0300 | [diff] [blame] | 24 | params: |
| 25 | ip_reserved: |
| 26 | gateway: +1 |
| 27 | l2_network_device: +1 |
| 28 | default_{{ HOSTNAME_IRONIC }}: +2 |
| 29 | ip_ranges: |
| 30 | dhcp: [+90, -10] |
| 31 | |
Dennis Dmitriev | a63bac6 | 2017-05-15 18:36:26 +0300 | [diff] [blame] | 32 | provisioning-pool01: |
Dennis Dmitriev | 7b9538f | 2017-05-15 17:01:34 +0300 | [diff] [blame] | 33 | net: {{ os_env('ADMIN_ADDRESS_POOL01', '10.70.0.0/16:24') }} |
| 34 | params: |
| 35 | ip_reserved: |
| 36 | gateway: +1 |
| 37 | l2_network_device: +1 |
| 38 | default_{{ HOSTNAME_IRONIC }}: +2 |
| 39 | |
| 40 | groups: |
| 41 | - name: default |
| 42 | driver: |
| 43 | name: devops.driver.libvirt |
| 44 | params: |
| 45 | connection_string: !os_env CONNECTION_STRING, qemu:///system |
| 46 | storage_pool_name: !os_env STORAGE_POOL_NAME, default |
| 47 | stp: False |
| 48 | hpet: False |
| 49 | enable_acpi: true |
| 50 | use_host_cpu: !os_env DRIVER_USE_HOST_CPU, true |
Dennis Dmitriev | b3fc424 | 2017-07-14 16:01:51 +0300 | [diff] [blame] | 51 | use_hugepages: !os_env DRIVER_USE_HUGEPAGES, false |
Dennis Dmitriev | 7b9538f | 2017-05-15 17:01:34 +0300 | [diff] [blame] | 52 | |
Dennis Dmitriev | 5ad5317 | 2017-05-15 18:54:12 +0300 | [diff] [blame] | 53 | network_pools: |
| 54 | admin: admin-pool01 |
| 55 | provisioning: provisioning-pool01 |
| 56 | |
Dennis Dmitriev | 7b9538f | 2017-05-15 17:01:34 +0300 | [diff] [blame] | 57 | l2_network_devices: |
| 58 | # Ironic management interface |
Dennis Dmitriev | a63bac6 | 2017-05-15 18:36:26 +0300 | [diff] [blame] | 59 | admin: |
| 60 | address_pool: admin-pool01 |
Dennis Dmitriev | 7b9538f | 2017-05-15 17:01:34 +0300 | [diff] [blame] | 61 | dhcp: true |
| 62 | forward: |
| 63 | mode: nat |
| 64 | |
| 65 | # PXE / Salt-master admin network |
Dennis Dmitriev | a63bac6 | 2017-05-15 18:36:26 +0300 | [diff] [blame] | 66 | provisioning: |
| 67 | address_pool: provisioning-pool01 |
Dennis Dmitriev | 7b9538f | 2017-05-15 17:01:34 +0300 | [diff] [blame] | 68 | dhcp: false |
Dennis Dmitriev | 80fe32d | 2017-06-02 13:47:35 +0300 | [diff] [blame] | 69 | forward: |
| 70 | mode: !os_env IRONIC_LAB_PXE_IFACE_MODE, bridge |
Dennis Dmitriev | 7b9538f | 2017-05-15 17:01:34 +0300 | [diff] [blame] | 71 | parent_iface: |
Dennis Dmitriev | 7848252 | 2017-05-22 12:29:53 +0300 | [diff] [blame] | 72 | phys_dev: !os_env IRONIC_LAB_PXE_IFACE |
Dennis Dmitriev | 7b9538f | 2017-05-15 17:01:34 +0300 | [diff] [blame] | 73 | |
Dennis Dmitriev | 7b9538f | 2017-05-15 17:01:34 +0300 | [diff] [blame] | 74 | nodes: |
| 75 | - name: {{ HOSTNAME_IRONIC }} |
Dennis Dmitriev | fa911f5 | 2017-05-15 17:42:22 +0300 | [diff] [blame] | 76 | role: ironic_master |
Dennis Dmitriev | 7b9538f | 2017-05-15 17:01:34 +0300 | [diff] [blame] | 77 | params: |
Dennis Dmitriev | e66c568 | 2017-05-15 18:07:05 +0300 | [diff] [blame] | 78 | vcpu: !os_env SLAVE_NODE_CPU, 1 |
Dennis Dmitriev | 7b9538f | 2017-05-15 17:01:34 +0300 | [diff] [blame] | 79 | memory: !os_env SLAVE_NODE_MEMORY, 2048 |
| 80 | boot: |
| 81 | - hd |
| 82 | cloud_init_volume_name: iso |
| 83 | cloud_init_iface_up: ens3 |
| 84 | volumes: |
| 85 | - name: system |
| 86 | capacity: !os_env NODE_VOLUME_SIZE, 150 |
sgudz | e15bfc7 | 2018-02-27 11:45:52 +0200 | [diff] [blame] | 87 | source_image: {{ os_env('IRONIC_IMAGE_PATH1604', os_env('IMAGE_PATH1604')) }} |
Dennis Dmitriev | 7b9538f | 2017-05-15 17:01:34 +0300 | [diff] [blame] | 88 | format: qcow2 |
| 89 | - name: iso # Volume with name 'iso' will be used |
| 90 | # for store image with cloud-init metadata. |
| 91 | capacity: 1 |
| 92 | format: raw |
| 93 | device: cdrom |
| 94 | bus: ide |
| 95 | cloudinit_meta_data: *cloudinit_meta_data |
| 96 | cloudinit_user_data: *cloudinit_user_data_ironic |
| 97 | |
| 98 | interfaces: |
| 99 | - label: ens3 |
Dennis Dmitriev | 7b9538f | 2017-05-15 17:01:34 +0300 | [diff] [blame] | 100 | l2_network_device: admin |
| 101 | interface_model: *interface_model |
Dennis Dmitriev | a63bac6 | 2017-05-15 18:36:26 +0300 | [diff] [blame] | 102 | - label: ens4 |
| 103 | l2_network_device: provisioning |
| 104 | interface_model: *interface_model |
Dennis Dmitriev | 5ad5317 | 2017-05-15 18:54:12 +0300 | [diff] [blame] | 105 | |
| 106 | network_config: |
| 107 | ens3: |
| 108 | networks: |
| 109 | - admin |
| 110 | ens4: |
| 111 | networks: |
| 112 | - provisioning |