Project

General

Profile

« Previous | Next » 

Revision 9686d75c

Added by Ewoud Kohl van Wijngaarden about 3 years ago

Support Ubuntu 20.04

The most notable change is that Ubuntu 20.04 changes the tftp root from
/var/lib/tftpboot to /srv/tftp. This matches Debian again.

The other change is that it ships a new enough Ansible to use the
callback from collections.

View differences:

spec/classes/foreman_proxy__tftp_spec.rb
case facts[:osfamily]
when 'Debian'
tftp_root = facts[:operatingsystem] == 'Ubuntu' ? '/var/lib/tftpboot' : '/srv/tftp'
tftp_root = if facts[:operatingsystem] == 'Ubuntu'
facts[:operatingsystemmajrelease] == '18.04' ? '/var/lib/tftpboot' : '/srv/tftp'
else
'/srv/tftp'
end
names = {
'/usr/lib/PXELINUX/pxelinux.0' => "#{tftp_root}/pxelinux.0",
'/usr/lib/syslinux/memdisk' => "#{tftp_root}/memdisk",

Also available in: Unified diff