Merge "inspector: Show warning when dhcp hostsdir is not configured"

This commit is contained in:
Zuul 2023-11-07 21:05:42 +00:00 committed by Gerrit Code Review
commit 53c4c4cc2a

View File

@ -39,6 +39,10 @@ class ironic::inspector::pxe_filter::dnsmasq (
include ironic::deps include ironic::deps
include ironic::inspector include ironic::inspector
if $::ironic::inspector::dnsmasq_dhcp_hostsdir == undef {
warning("The ironic::inspector::dnsmasq_dhcp_hostsdir parameter should be \
configured properly to use dnsmasq PXE filter.")
}
$hostsdir = pick($::ironic::inspector::dnsmasq_dhcp_hostsdir, $facts['os_service_default']) $hostsdir = pick($::ironic::inspector::dnsmasq_dhcp_hostsdir, $facts['os_service_default'])
ironic_inspector_config { ironic_inspector_config {