Debian/Ubuntu: Use tftpd-hpa instead of tftpd

The tftpd-hpa package possesses a number of bugfixes and enhancements
over the original tftpd package. Especially it supports the 'tsize'
which is required by PXE.

Change-Id: I41b95f80ed4d972a65f25541d2c5f4ae2df79d60
This commit is contained in:
Takashi Kajinami 2022-07-03 02:58:17 +09:00
parent 4863a485cd
commit 80307bece6
3 changed files with 9 additions and 1 deletions

View File

@ -93,7 +93,7 @@ class ironic::params {
$ironic_wsgi_script_path = '/usr/lib/cgi-bin/ironic'
$ironic_wsgi_script_source = '/usr/bin/ironic-api-wsgi'
$xinetd_available = true
$tftpd_package = 'tftpd'
$tftpd_package = 'tftpd-hpa'
$ipxe_package = 'ipxe'
$syslinux_package = 'syslinux-common'
if $::operatingsystem == 'Debian' {

View File

@ -0,0 +1,5 @@
---
fixes:
- |
Now the ``tftpd-hap`` package is installed insted of the ``tftpd`` package
in Debian and Ubuntu.

View File

@ -215,6 +215,7 @@ describe 'ironic::pxe' do
it 'should install tftp-server package' do
is_expected.to contain_package('tftp-server').with(
'ensure' => 'present',
'name' => platform_params[:tftp_package]
)
end
@ -316,6 +317,7 @@ describe 'ironic::pxe' do
:ipxe_package => 'ipxe',
:shim_package => 'shim-signed',
:syslinux_package => 'syslinux-common',
:tftp_package => 'tftpd-hpa',
}
when 'RedHat'
{
@ -325,6 +327,7 @@ describe 'ironic::pxe' do
:ipxe_package => 'ipxe-bootimgs',
:shim_package => 'shim',
:syslinux_package => 'syslinux-tftpboot',
:tftp_package => 'tftp-server',
}
end
end