blob: 39a998e5c9fce746a26cb743b42c13e611467e95 [file] [log] [blame]
Dennis Dmitriev7b9538f2017-05-15 17:01:34 +03001# Set the repository suite, one of the: 'nightly', 'testing', 'stable', or any other required
2{% set REPOSITORY_SUITE = os_env('REPOSITORY_SUITE', 'stable') %}
Dennis Dmitriev80fe32d2017-06-02 13:47:35 +03003{% 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 Dmitriev7b9538f2017-05-15 17:01:34 +03006
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---
11aliases:
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 Dmitriev7b9538f2017-05-15 17:01:34 +030016
17template:
18 devops_settings:
Dennis Dmitriev80fe32d2017-06-02 13:47:35 +030019 env_name: {{ IRONIC_ENV_NAME }}
Dennis Dmitriev7b9538f2017-05-15 17:01:34 +030020
21 address_pools:
22
Dennis Dmitrieva63bac62017-05-15 18:36:26 +030023 admin-pool01:
24 net: {{ os_env('IRONIC_ADMIN_ADDRESS_POOL01', '10.50.0.0/16:24') }}
Dennis Dmitriev7b9538f2017-05-15 17:01:34 +030025 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 Dmitrieva63bac62017-05-15 18:36:26 +030033 provisioning-pool01:
Dennis Dmitriev7b9538f2017-05-15 17:01:34 +030034 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
52
Dennis Dmitriev5ad53172017-05-15 18:54:12 +030053 network_pools:
54 admin: admin-pool01
55 provisioning: provisioning-pool01
56
Dennis Dmitriev7b9538f2017-05-15 17:01:34 +030057 l2_network_devices:
58 # Ironic management interface
Dennis Dmitrieva63bac62017-05-15 18:36:26 +030059 admin:
60 address_pool: admin-pool01
Dennis Dmitriev7b9538f2017-05-15 17:01:34 +030061 dhcp: true
62 forward:
63 mode: nat
64
65 # PXE / Salt-master admin network
Dennis Dmitrieva63bac62017-05-15 18:36:26 +030066 provisioning:
67 address_pool: provisioning-pool01
Dennis Dmitriev7b9538f2017-05-15 17:01:34 +030068 dhcp: false
Dennis Dmitriev80fe32d2017-06-02 13:47:35 +030069 forward:
70 mode: !os_env IRONIC_LAB_PXE_IFACE_MODE, bridge
Dennis Dmitriev7b9538f2017-05-15 17:01:34 +030071 parent_iface:
Dennis Dmitriev78482522017-05-22 12:29:53 +030072 phys_dev: !os_env IRONIC_LAB_PXE_IFACE
Dennis Dmitriev7b9538f2017-05-15 17:01:34 +030073
Dennis Dmitriev7b9538f2017-05-15 17:01:34 +030074 nodes:
75 - name: {{ HOSTNAME_IRONIC }}
Dennis Dmitrievfa911f52017-05-15 17:42:22 +030076 role: ironic_master
Dennis Dmitriev7b9538f2017-05-15 17:01:34 +030077 params:
Dennis Dmitrieve66c5682017-05-15 18:07:05 +030078 vcpu: !os_env SLAVE_NODE_CPU, 1
Dennis Dmitriev7b9538f2017-05-15 17:01:34 +030079 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
Dennis Dmitrieva63bac62017-05-15 18:36:26 +030087 source_image: !os_env IMAGE_PATH1604
Dennis Dmitriev7b9538f2017-05-15 17:01:34 +030088 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 Dmitriev7b9538f2017-05-15 17:01:34 +0300100 l2_network_device: admin
101 interface_model: *interface_model
Dennis Dmitrieva63bac62017-05-15 18:36:26 +0300102 - label: ens4
103 l2_network_device: provisioning
104 interface_model: *interface_model
Dennis Dmitriev5ad53172017-05-15 18:54:12 +0300105
106 network_config:
107 ens3:
108 networks:
109 - admin
110 ens4:
111 networks:
112 - provisioning