ebb81e49f1
The CLI command is: kayobe seed deployment image build This command will build Ironic Python Agent (IPA) kernel and ramdisk images using the Diskimage Builder (DIB) ironic-agent element. The built images will be copied to the appropriate location in the bifrost_deploy container on the seed. This allows us to build a customised image with site- or hardware- specific extensions.
38 lines
1.6 KiB
YAML
38 lines
1.6 KiB
YAML
---
|
|
- name: Ensure Kolla Bifrost is configured
|
|
hosts: config-mgmt
|
|
vars:
|
|
kolla_bifrost_extra_globals_path: "{{ kayobe_config_path ~ '/kolla/config/bifrost/bifrost.yml' }}"
|
|
kolla_bifrost_driver_map:
|
|
- { name: agent_ipmitool, enabled: "{{ kolla_bifrost_enable_ipmitool_drivers | bool }}" }
|
|
|
|
pre_tasks:
|
|
- name: Check whether a Kolla Bifrost extra globals configuration file exists
|
|
stat:
|
|
path: "{{ kolla_bifrost_extra_globals_path }}"
|
|
get_checksum: False
|
|
get_md5: False
|
|
mime: False
|
|
register: globals_stat
|
|
|
|
- name: Read the Kolla Bifrost extra globals configuration file
|
|
set_fact:
|
|
kolla_bifrost_extra_globals: "{{ lookup('template', kolla_bifrost_extra_globals_path) | from_yaml }}"
|
|
when: globals_stat.stat.exists
|
|
|
|
roles:
|
|
- role: kolla-bifrost
|
|
|
|
# Generate a list of enabled drivers from the map.
|
|
kolla_bifrost_enabled_drivers: >
|
|
{{ kolla_bifrost_driver_map | selectattr('enabled') | map(attribute='name') | list }}
|
|
kolla_bifrost_enable_pxe_drivers: false
|
|
|
|
# Network configuration.
|
|
kolla_bifrost_dhcp_pool_start: "{{ provision_oc_net_name | net_inspection_allocation_pool_start }}"
|
|
kolla_bifrost_dhcp_pool_end: "{{ provision_oc_net_name | net_inspection_allocation_pool_end }}"
|
|
kolla_bifrost_dnsmasq_router: "{{ provision_oc_net_name | net_gateway }}"
|
|
kolla_bifrost_dnsmasq_dns_servers: "{{ resolv_nameservers | default([]) }}"
|
|
kolla_bifrost_domain: "{{ resolv_domain | default }}"
|
|
kolla_bifrost_download_ipa: "{{ not ipa_build_images | bool }}"
|