pxe: Create tftp_root directory before starting dnsmasq

... otherwise the service fails to start because of missing directory.

TFTP directory /tftpboot inaccessible: No such file or directory

Change-Id: I944af54f9788a722dee51aab40153a761fe02079
(cherry picked from commit 46bff5456a)
(cherry picked from commit e9a55081d1)
This commit is contained in:
Takashi Kajinami 2021-10-07 16:35:14 +09:00
parent 94c9347748
commit b50e1d4d3b
1 changed files with 1 additions and 0 deletions

View File

@ -208,6 +208,7 @@ class ironic::pxe (
}
Package['dnsmasq-tftp-server'] ~> Service['dnsmasq-tftp-server']
File[$tftp_root_real] -> Service['dnsmasq-tftp-server']
}
if $syslinux_path {