Ensure tftp root directory is created
... before creating any file under the directory.
Change-Id: I549d2217668d84f170b5c7a989c2acf2b9a0e16a
(cherry picked from commit 0112497161
)
This commit is contained in:
parent
8062614074
commit
c94502c5fe
|
@ -110,15 +110,17 @@ class ironic::pxe (
|
|||
owner => 'ironic',
|
||||
group => 'ironic',
|
||||
require => Anchor['ironic::install::end'],
|
||||
tag => 'ironic-tftp-file',
|
||||
}
|
||||
|
||||
if $enable_ppc64le {
|
||||
file { "${tftp_root_real}/ppc64le":
|
||||
ensure => 'directory',
|
||||
seltype => 'tftpdir_t',
|
||||
owner => 'ironic',
|
||||
group => 'ironic',
|
||||
require => Anchor['ironic::install::end'],
|
||||
ensure => 'directory',
|
||||
seltype => 'tftpdir_t',
|
||||
owner => 'ironic',
|
||||
group => 'ironic',
|
||||
require => Anchor['ironic::install::end'],
|
||||
tag => 'ironic-tftp-file',
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -156,6 +158,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 {
|
||||
|
@ -187,6 +190,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_real}":
|
||||
|
@ -198,8 +202,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':
|
||||
|
|
Loading…
Reference in New Issue