Skip to content

Commit 20b4b63

Browse files
committed
Adding changes to include XL with DR to this PR. Add new_replica_postgres_host as a parameter in migrate plan, un-comment XL with DR in test migration jobs
1 parent a631dbd commit 20b4b63

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/test-migration.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
- large
4343
- extra-large
4444
- large-with-dr
45-
# - extra-large-with-dr
45+
- extra-large-with-dr
4646
version: [2021.7.9, 2023.8.2, 2025.2.0]
4747
image: [almalinux-cloud/almalinux-8]
4848
include:

plans/migrate.pp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,16 @@
1212
# Optional new server that will become the PE replica server
1313
# @param primary_postgresql_host
1414
# Optional new server that will become the primary postgresql server
15-
#
15+
# @param new_replica_postgresql_host
16+
# Optional new server that will become the replica postgresql server
17+
1618
plan peadm::migrate (
1719
Peadm::SingleTargetSpec $old_primary_host,
1820
Peadm::SingleTargetSpec $new_primary_host,
1921
Optional[String] $upgrade_version = undef,
2022
Optional[Peadm::SingleTargetSpec] $replica_host = undef,
2123
Optional[Peadm::SingleTargetSpec] $primary_postgresql_host = undef,
24+
Optional[Peadm::SingleTargetSpec] $new_replica_postgresql_host = undef,
2225
) {
2326
# pre-migration checks
2427
out::message('This plan is a work in progress and it is not recommended to be used until it is fully implemented and supported')
@@ -31,7 +34,8 @@
3134
$new_hosts = peadm::flatten_compact([
3235
$new_primary_host,
3336
$replica_host ? { undef => [], default => [$replica_host] },
34-
$primary_postgresql_host ? { undef => [], default => [$primary_postgresql_host] }
37+
$primary_postgresql_host ? { undef => [], default => [$primary_postgresql_host] },
38+
$new_replica_postgresql_host ? { undef => [], default => [$new_replica_postgresql_host] },
3539
].flatten)
3640
$all_hosts = peadm::flatten_compact([
3741
$old_primary_host,

0 commit comments

Comments
 (0)