Skip to content

Commit 0342b51

Browse files
author
petergmurphy
committed
(PE-40372) Add optional replica host to migration plan
This commit extends the migration plan to support and utilise an optional new replica host parameter.
1 parent 70c0478 commit 0342b51

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

plans/migrate.pp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
Peadm::SingleTargetSpec $old_primary_host,
1212
Peadm::SingleTargetSpec $new_primary_host,
1313
Optional[String] $upgrade_version = undef,
14+
Optional[SingleTargetSpec] $replica_host = undef,
1415
) {
1516
peadm::assert_supported_bolt_version()
1617

@@ -36,6 +37,7 @@
3637
code_manager_auto_configure => true,
3738
download_mode => 'direct',
3839
version => $old_pe_conf['pe_version'],
40+
replica_host => $replica_host,
3941
})
4042

4143
run_plan('peadm::restore', {
@@ -48,7 +50,8 @@
4850
run_plan('peadm::upgrade', {
4951
primary_host => $new_primary_host,
5052
version => $upgrade_version,
51-
download_mode => 'direct',
53+
download_mode => 'direct',
54+
replica_host => $replica_host,
5255
})
5356
}
5457
}

0 commit comments

Comments
 (0)