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