
The IPA ramdisk and kernel images may be built or downloaded via a URL. If the latter option is used, any images previously downloaded to $KOLLA_CONFIG_PATH/config/ironic/ironic-agent.* would previously not be updated if the image contents change. This change introduces variables for setting a URL to a file containing checksums for the images. The algorithm used to compute the checksum is also configurable (default sha256). This allows us to ensure we are using the correct version of the image, while avoiding an expensive few hundred megabyte image download just to check. If a checksum is not specified, the image will be downloaded every time to ensure that it is up to date. Change-Id: I8120518ed98d61f3652f5205ce7ec9f798ab2aa1 Story: 2001660 Task: 6693
85 lines
3.0 KiB
Django/Jinja
85 lines
3.0 KiB
Django/Jinja
---
|
|
# List of enabled Ironic drivers.
|
|
enabled_drivers: "{{ kolla_bifrost_enabled_drivers | join(',') }}"
|
|
|
|
# Whether to enable legacy PXE/iscsi drivers.
|
|
enable_pxe_drivers: {{ kolla_bifrost_enable_pxe_drivers | bool }}
|
|
|
|
# List of legacy PXE/iscsi drivers to enable.
|
|
pxe_drivers: "{{ kolla_bifrost_pxe_drivers | join(',') }}"
|
|
|
|
# IP address range for DHCP.
|
|
dhcp_pool_start: "{{ kolla_bifrost_dhcp_pool_start }}"
|
|
dhcp_pool_end: "{{ kolla_bifrost_dhcp_pool_end }}"
|
|
|
|
{% if kolla_bifrost_dnsmasq_router %}
|
|
# Default route provided to nodes via DHCP.
|
|
dnsmasq_router: "{{ kolla_bifrost_dnsmasq_router }}"
|
|
{% endif %}
|
|
|
|
{% if kolla_bifrost_dnsmasq_dns_servers %}
|
|
# DNS servers provided to nodes via DHCP.
|
|
dnsmasq_dns_servers: "{{ kolla_bifrost_dnsmasq_dns_servers | join(',') }}"
|
|
{% endif %}
|
|
|
|
{% if kolla_bifrost_domain %}
|
|
# DNS domain provided to nodes via DHCP.
|
|
domain: "{{ kolla_bifrost_domain }}"
|
|
{% endif %}
|
|
|
|
{% if kolla_bifrost_inspector_processing_hooks %}
|
|
# Comma-separated list of inspector processing plugins.
|
|
inspector_processing_hooks: "{{ kolla_bifrost_inspector_processing_hooks | join(',') }}"
|
|
{% endif %}
|
|
|
|
{% if kolla_bifrost_inspector_port_addition %}
|
|
# Which MAC addresses to add as ports during introspection. One of 'all',
|
|
# 'active' or 'pxe'.
|
|
inspector_port_addition: "{{ kolla_bifrost_inspector_port_addition }}"
|
|
{% endif %}
|
|
|
|
{% if kolla_bifrost_inspector_extra_kernel_options %}
|
|
# Extra kernel parameters for the inspector default PXE configuration.
|
|
inspector_extra_kernel_options: "{{ kolla_bifrost_inspector_extra_kernel_options | join(' ') }}"
|
|
{% endif %}
|
|
|
|
# Whether to download Ironic Python Agent (IPA) images.
|
|
download_ipa: "{{ kolla_bifrost_download_ipa }}"
|
|
|
|
{% if kolla_bifrost_ipa_kernel_upstream_url %}
|
|
# URL of Ironic Python Agent (IPA) kernel image.
|
|
ipa_kernel_upstream_url: "{{ kolla_bifrost_ipa_kernel_upstream_url }}"
|
|
{% endif %}
|
|
|
|
{% if kolla_bifrost_ipa_kernel_checksum_url %}
|
|
# URL of checksum of Ironic Python Agent (IPA) kernel image.
|
|
ipa_kernel_upstream_checksum_url: "{{ kolla_bifrost_ipa_kernel_checksum_url }}"
|
|
{% endif %}
|
|
|
|
{% if kolla_bifrost_ipa_kernel_checksum_algorithm %}
|
|
# Algorithm of checksum of Ironic Python Agent (IPA) kernel image.
|
|
ipa_kernel_upstream_checksum_algo: "{{ kolla_bifrost_ipa_kernel_checksum_algorithm }}"
|
|
{% endif %}
|
|
|
|
{% if kolla_bifrost_ipa_ramdisk_upstream_url %}
|
|
# URL of Ironic Python Agent (IPA) ramdisk image.
|
|
ipa_ramdisk_upstream_url: "{{ kolla_bifrost_ipa_ramdisk_upstream_url }}"
|
|
{% endif %}
|
|
|
|
{% if kolla_bifrost_ipa_ramdisk_checksum_url %}
|
|
# URL of checksum of Ironic Python Agent (IPA) ramdisk image.
|
|
ipa_ramdisk_upstream_checksum_url: "{{ kolla_bifrost_ipa_ramdisk_checksum_url }}"
|
|
{% endif %}
|
|
|
|
{% if kolla_bifrost_ipa_ramdisk_checksum_algorithm %}
|
|
# Algorithm of checksum of Ironic Python Agent (IPA) ramdisk image.
|
|
ipa_ramdisk_upstream_checksum_algo: "{{ kolla_bifrost_ipa_ramdisk_checksum_algorithm }}"
|
|
{% endif %}
|
|
|
|
{% if kolla_bifrost_extra_globals %}
|
|
###############################################################################
|
|
# Extra configuration
|
|
|
|
{{ kolla_bifrost_extra_globals|to_nice_yaml }}
|
|
{% endif %}
|