voxpupuli / puppet-pxe

Puppet module for deploying a PXE boot server
https://forge.puppet.com/puppet/pxe
50 stars 37 forks source link

CentOS 8 baseurl is incorrect #63

Open freiheit opened 3 years ago

freiheit commented 3 years ago

Affected Puppet, Ruby, OS and module versions/distributions

How to reproduce (e.g Puppet code you use)

  pxe::installer { "centos_8.2.2004_x86_64":
    arch    => 'x86_64',
    ver     => '8.2.2004',
    os      => 'centos',
    file    => 'os_centos',
    kernel  => 'images/centos/8.2.2004/x86_64/vmlinuz',
    append  => 'initrd=images/centos/8.2.2004/x86_64/initrd.gz text',
  }

What are you seeing

Module fails to download vmlinuz and initrd.gz due to those files not being at the url it tries

Any additional information you'd like to impart

I believe for centos >= 8, the baseurl should be: https://mirrors.kernel.org/${os}/${ver}/BaseOS/${arch}/os/images/pxeboot/

hihiuztrewq commented 3 years ago

Hi, I had the same issue and this fixed it for me. Thanks!

A simular issue with ubuntu could be fixed by replacing "...${arch}/current/images/${netboot}..." with "...${arch}/current/legacy-images/${netboot}..." for focal (doesn't work for groovy anymore)