Merge "Ensure tftp root directory is created"
This commit is contained in:
@@ -109,6 +109,7 @@ class ironic::pxe (
|
||||
owner => 'ironic',
|
||||
group => 'ironic',
|
||||
require => Anchor['ironic::install::end'],
|
||||
tag => 'ironic-tftp-file',
|
||||
}
|
||||
|
||||
if $enable_ppc64le {
|
||||
@@ -118,6 +119,7 @@ class ironic::pxe (
|
||||
owner => 'ironic',
|
||||
group => 'ironic',
|
||||
require => Anchor['ironic::install::end'],
|
||||
tag => 'ironic-tftp-file',
|
||||
}
|
||||
}
|
||||
|
||||
@@ -155,6 +157,7 @@ class ironic::pxe (
|
||||
file { "${tftp_root_real}/map-file":
|
||||
ensure => 'present',
|
||||
content => "r ^([^/]) ${tftp_root_real}/\\1",
|
||||
tag => 'ironic-tftp-file',
|
||||
}
|
||||
|
||||
if $syslinux_path {
|
||||
@@ -186,6 +189,7 @@ class ironic::pxe (
|
||||
source => "${::ironic::params::ipxe_rom_dir}/undionly.kpxe",
|
||||
backup => false,
|
||||
require => Anchor['ironic-inspector::install::end'],
|
||||
tag => 'ironic-tftp-file',
|
||||
}
|
||||
|
||||
file { "${tftp_root_real}/${uefi_ipxe_bootfile_name}":
|
||||
@@ -197,8 +201,11 @@ class ironic::pxe (
|
||||
source => "${::ironic::params::ipxe_rom_dir}/${ipxe_name_base}${arch}.efi",
|
||||
backup => false,
|
||||
require => Anchor['ironic-inspector::install::end'],
|
||||
tag => 'ironic-tftp-file',
|
||||
}
|
||||
|
||||
File["${tftp_root_real}"] -> File<| tag == 'ironic-tftp-file' |>
|
||||
|
||||
include apache
|
||||
|
||||
apache::vhost { 'ipxe_vhost':
|
||||
|
Reference in New Issue
Block a user