From 7f1a4febfc559e54eb02269b5483e962693491a9 Mon Sep 17 00:00:00 2001 From: B00885424 Date: Thu, 20 Mar 2025 09:48:55 +0000 Subject: [PATCH 1/3] add out message in migrate plan stating the old and new OS family and version when migrating between OS's --- plans/migrate.pp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plans/migrate.pp b/plans/migrate.pp index d6fb07d0..b53581e5 100644 --- a/plans/migrate.pp +++ b/plans/migrate.pp @@ -63,6 +63,11 @@ out::message("old_pe_conf:${old_pe_conf}.") + $old_primary_platform = run_task('peadm::precheck', $old_primary_host).first['platform'] + $new_primary_platform = run_task('peadm::precheck', $new_primary_host).first['platform'] + out::message("old_primary_platform: ${old_primary_platform}") + out::message("new_primary_platform: ${new_primary_platform}") + run_plan('peadm::install', { primary_host => $new_primary_host, console_password => $old_primary_password, From 2e696da816910f06babc0a12a494cdc36f0b5913 Mon Sep 17 00:00:00 2001 From: B00885424 Date: Fri, 21 Mar 2025 10:07:11 +0000 Subject: [PATCH 2/3] - --- plans/migrate.pp | 1 - 1 file changed, 1 deletion(-) diff --git a/plans/migrate.pp b/plans/migrate.pp index b53581e5..51281f51 100644 --- a/plans/migrate.pp +++ b/plans/migrate.pp @@ -9,7 +9,6 @@ # @param upgrade_version # Optional version to upgrade to after migration is complete # -# plan peadm::migrate ( Peadm::SingleTargetSpec $old_primary_host, Peadm::SingleTargetSpec $new_primary_host, From 2b1459bd3148a76ef264286ec01429b98aaf4416 Mon Sep 17 00:00:00 2001 From: B00885424 Date: Mon, 24 Mar 2025 10:54:42 +0000 Subject: [PATCH 3/3] * 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 --- plans/migrate.pp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/plans/migrate.pp b/plans/migrate.pp index 51281f51..99796fd4 100644 --- a/plans/migrate.pp +++ b/plans/migrate.pp @@ -44,6 +44,11 @@ getvar('cluster.params.compiler_hosts'), ) + $old_primary_platform = run_task('peadm::precheck', $old_primary_host).first['platform'] + $new_primary_platform = run_task('peadm::precheck', $new_primary_host).first['platform'] + out::message("Old primary platform: ${old_primary_platform}") + out::message("New primary platform: ${new_primary_platform}") + $backup_file = run_plan('peadm::backup', $old_primary_host, { backup_type => 'migration', }) @@ -60,13 +65,6 @@ $old_primary_password = peadm::get_pe_conf($old_primary_target)['console_admin_password'] $old_pe_conf = run_task('peadm::get_peadm_config', $old_primary_target).first.value - out::message("old_pe_conf:${old_pe_conf}.") - - $old_primary_platform = run_task('peadm::precheck', $old_primary_host).first['platform'] - $new_primary_platform = run_task('peadm::precheck', $new_primary_host).first['platform'] - out::message("old_primary_platform: ${old_primary_platform}") - out::message("new_primary_platform: ${new_primary_platform}") - run_plan('peadm::install', { primary_host => $new_primary_host, console_password => $old_primary_password,