Merge "Provision pxeboot service in USM upgrade"

This commit is contained in:
Zuul 2024-07-30 14:05:47 +00:00 committed by Gerrit Code Review
commit 5f1506276b
2 changed files with 9 additions and 1 deletions

View File

@ -0,0 +1,7 @@
# Returns true the USM upgrade in progress flag exists
Facter.add("usm_upgrade_in_progress") do
setcode do
File.exist?('/etc/platform/.usm_upgrade_in_progress')
end
end

View File

@ -488,7 +488,8 @@ class platform::sm
# PXEBOOT
# Create the PXEBoot IP service if it is configured
# PXEBoot only supports IPv4 config
if str2bool($::is_initial_config) {
# TODO(heitormatsui) review if we can change this 'if' or move elsewhere like the other ipvX services
if str2bool($::is_initial_config) or str2bool($::usm_upgrade_in_progress) {
exec { 'Configure PXEBoot IPv4 service in SM (service-group-member pxeboot-ipv4)':
command => 'sm-provision service-group-member controller-services pxeboot-ipv4',
}