diff --git a/plans/migrate.pp b/plans/migrate.pp index d6fb07d0..99796fd4 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, @@ -45,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', }) @@ -61,8 +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}.") - run_plan('peadm::install', { primary_host => $new_primary_host, console_password => $old_primary_password,