98a4b44822
Without the bool filter, "no" is interpreted as True. Change-Id: I8812b72102199f533730cbde85b8ffe61cf81218 Closes-Bug: #1742969
38 lines
1.3 KiB
Django/Jinja
38 lines
1.3 KiB
Django/Jinja
{% set pxe_dir = ('/tftpboot/grub' if kolla_base_distro in ['ubuntu', 'debian'] else '/tftpboot/EFI/centos') if enable_ironic_pxe_uefi | bool else '/tftpboot/pxelinux.cfg' %}
|
|
{% set pxe_cfg = 'grub.cfg' if enable_ironic_pxe_uefi | bool else 'default' %}
|
|
|
|
{
|
|
"command": "/usr/sbin/in.tftpd --verbose --foreground --user root --address 0.0.0.0:69 --map-file /map-file /tftpboot",
|
|
"config_files": [
|
|
{% if groups['ironic-inspector'] | length > 0 %}
|
|
{% if not enable_ironic_pxe_uefi | bool %}
|
|
{
|
|
"source": "{{ container_config_directory }}/ironic-agent.kernel",
|
|
"dest": "/tftpboot/ironic-agent.kernel",
|
|
"owner": "root",
|
|
"perm": "0644"
|
|
},
|
|
{
|
|
"source": "{{ container_config_directory }}/ironic-agent.initramfs",
|
|
"dest": "/tftpboot/ironic-agent.initramfs",
|
|
"owner": "root",
|
|
"perm": "0644"
|
|
},
|
|
{% endif %}
|
|
{
|
|
"source": "{{ container_config_directory }}/default",
|
|
"dest": "{{ pxe_dir }}/{{ pxe_cfg }}",
|
|
"owner": "root",
|
|
"perm": "0644"
|
|
}
|
|
{% endif %}
|
|
],
|
|
"permissions": [
|
|
{
|
|
"path": "{{ pxe_dir }}",
|
|
"owner": "ironic:ironic",
|
|
"recurse": true
|
|
}
|
|
]
|
|
}
|