Skip to content

Commit 7614192

Browse files
authored
PE-40374 migrate to different OS (#567)
* add out message in migrate plan stating the old and new OS family and version when migrating between OS's * - * * Changing old/new primary hosts output to be more user-readable * move old/new primary host check and output to just before backup running * remove output stating the old PE configuration
1 parent 4158630 commit 7614192

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

plans/migrate.pp

+5-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
# @param upgrade_version
1010
# Optional version to upgrade to after migration is complete
1111
#
12-
#
1312
plan peadm::migrate (
1413
Peadm::SingleTargetSpec $old_primary_host,
1514
Peadm::SingleTargetSpec $new_primary_host,
@@ -45,6 +44,11 @@
4544
getvar('cluster.params.compiler_hosts'),
4645
)
4746

47+
$old_primary_platform = run_task('peadm::precheck', $old_primary_host).first['platform']
48+
$new_primary_platform = run_task('peadm::precheck', $new_primary_host).first['platform']
49+
out::message("Old primary platform: ${old_primary_platform}")
50+
out::message("New primary platform: ${new_primary_platform}")
51+
4852
$backup_file = run_plan('peadm::backup', $old_primary_host, {
4953
backup_type => 'migration',
5054
})
@@ -61,8 +65,6 @@
6165
$old_primary_password = peadm::get_pe_conf($old_primary_target)['console_admin_password']
6266
$old_pe_conf = run_task('peadm::get_peadm_config', $old_primary_target).first.value
6367

64-
out::message("old_pe_conf:${old_pe_conf}.")
65-
6668
run_plan('peadm::install', {
6769
primary_host => $new_primary_host,
6870
console_password => $old_primary_password,

0 commit comments

Comments
 (0)