Merge "Provision pxeboot service in USM upgrade"
This commit is contained in:
commit
5f1506276b
@ -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
|
@ -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',
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user