- update cobbler/cobbler-web package - update path for ipxebins Reviewed-on: #353
49 lines
1.3 KiB
Puppet
49 lines
1.3 KiB
Puppet
# profiles::cobbler::ipxebins
|
|
class profiles::cobbler::ipxebins {
|
|
|
|
include profiles::cobbler::params
|
|
|
|
# download the custom undionly.kpxe file
|
|
# https://gist.github.com/rikka0w0/50895b82cbec8a3a1e8c7707479824c1
|
|
exec { 'download_undionly_kpxe':
|
|
command => 'wget -O /var/lib/tftpboot/undionly.kpxe http://boot.ipxe.org/undionly.kpxe',
|
|
path => ['/bin', '/usr/bin'],
|
|
creates => '/var/lib/tftpboot/undionly.kpxe',
|
|
}
|
|
|
|
# set correct permissions ipxe boot image to tftpboot
|
|
file { '/var/lib/tftpboot/undionly.kpxe':
|
|
ensure => 'file',
|
|
owner => 'root',
|
|
group => 'root',
|
|
mode => '0644',
|
|
require => [
|
|
Package['ipxe-bootimgs'],
|
|
Package['cobbler'],
|
|
Exec['download_undionly_kpxe']
|
|
],
|
|
}
|
|
|
|
# download the custom ipxe.efi file
|
|
# https://gist.github.com/rikka0w0/50895b82cbec8a3a1e8c7707479824c1
|
|
exec { 'download_ipxe_efi':
|
|
command => 'wget -O /var/lib/tftpboot/ipxe.efi http://boot.ipxe.org/ipxe.efi',
|
|
path => ['/bin', '/usr/bin'],
|
|
creates => '/var/lib/tftpboot/ipxe.efi',
|
|
}
|
|
|
|
# set correct permissions ipxe boot image to tftpboot
|
|
file { '/var/lib/tftpboot/ipxe.efi':
|
|
ensure => 'file',
|
|
owner => 'root',
|
|
group => 'root',
|
|
mode => '0644',
|
|
require => [
|
|
Package['ipxe-bootimgs'],
|
|
Package['cobbler'],
|
|
Exec['download_ipxe_efi']
|
|
],
|
|
}
|
|
}
|
|
|