Reprovision SM services on duplex

Update SM provisioning for duplex to reprovision services
if needed. The default configuration in SM is duplex services,
and a simplex node will reprovision these to be simplex. In
order to support SX to DX migration, these services will also
be reprovisioned on duplex to ensure the configuration
is correct.

Story: 2008587
Task: 41743

Change-Id: Ifb61a6046c680d0dee7c76660397c6fe8c2cbe73
Signed-off-by: Don Penney <don.penney@windriver.com>
This commit is contained in:
Don Penney 2021-01-31 22:02:43 -05:00
parent 00996c9258
commit fbb4cdef07
1 changed files with 49 additions and 0 deletions

View File

@ -603,6 +603,55 @@ class platform::sm
command => "sm-configure service_group yes controller distributed-cloud-services N 1 0 \"\" \"\"",
}
}
} else {
exec { 'Provision oam-ip service group member':
command => 'sm-provision service-group-member oam-services oam-ip',
}
-> exec { 'Provision oam-ip service':
command => 'sm-provision service oam-ip',
}
exec { 'Configure oam-service redundancy model to DX':
command => "sm-configure service_group yes controller oam-services 'N + M' 1 1 \"\" directory-services",
}
exec { 'Configure controller-services redundancy model to DX':
command => "sm-configure service_group yes controller controller-services 'N + M' 1 1 \"\" directory-services",
}
exec { 'Configure cloud-services redundancy model to DX':
command => "sm-configure service_group yes controller cloud-services 'N + M' 1 1 \"\" directory-services",
}
exec { 'Configure vim-services redundancy model to DX':
command => "sm-configure service_group yes controller vim-services 'N + M' 1 1 \"\" directory-services",
}
exec { 'Configure patching-services redundancy model to DX':
command => "sm-configure service_group yes controller patching-services 'N + M' 1 1 \"\" \"\"",
}
exec { 'Configure directory-services redundancy model to DX':
command => "sm-configure service_group yes controller directory-services N 2 0 \"\" \"\"",
}
exec { 'Configure web-services redundancy model to DX':
command => "sm-configure service_group yes controller web-services N 2 0 \"\" \"\"",
}
exec { 'Configure storage-services redundancy model to DX':
command => "sm-configure service_group yes controller storage-services N 2 0 \"\" \"\"",
}
exec { 'Configure storage-monitoring-services redundancy model to DX':
command => "sm-configure service_group yes controller storage-monitoring-services 'N + M' 1 1 \"\" \"\"",
}
if $::platform::params::distributed_cloud_role == 'subcloud' {
exec { 'Configure distributed-cloud-services redundancy model to DX':
command => "sm-configure service_group yes controller distributed-cloud-services 'N + M' 1 1 \"\" \"\"",
}
}
}
exec { 'Provision extension-fs (service-group-member)':