Skip to content

Commit 2b1459b

Browse files
committed
* 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 2e696da commit 2b1459b

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

plans/migrate.pp

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@
4444
getvar('cluster.params.compiler_hosts'),
4545
)
4646

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+
4752
$backup_file = run_plan('peadm::backup', $old_primary_host, {
4853
backup_type => 'migration',
4954
})
@@ -60,13 +65,6 @@
6065
$old_primary_password = peadm::get_pe_conf($old_primary_target)['console_admin_password']
6166
$old_pe_conf = run_task('peadm::get_peadm_config', $old_primary_target).first.value
6267

63-
out::message("old_pe_conf:${old_pe_conf}.")
64-
65-
$old_primary_platform = run_task('peadm::precheck', $old_primary_host).first['platform']
66-
$new_primary_platform = run_task('peadm::precheck', $new_primary_host).first['platform']
67-
out::message("old_primary_platform: ${old_primary_platform}")
68-
out::message("new_primary_platform: ${new_primary_platform}")
69-
7068
run_plan('peadm::install', {
7169
primary_host => $new_primary_host,
7270
console_password => $old_primary_password,

0 commit comments

Comments
 (0)