|
2 | 2 | String $primary_host, |
3 | 3 | String $new_primary_host, |
4 | 4 | Optional[String] $new_replica_host = undef, |
| 5 | + Optional[String] $primary_postgresql_host = undef, |
5 | 6 | Optional[String] $new_primary_postgresql_host = undef, |
6 | 7 | Optional[String] $new_replica_postgresql_host = undef, |
7 | 8 | Optional[String] $upgrade_version = undef, |
|
10 | 11 | $primary_target = $primary_host ? { '' => undef, default => peadm::get_targets($primary_host, 1) } |
11 | 12 | $new_primary_target = $new_primary_host ? { '' => undef, default => peadm::get_targets($new_primary_host, 1) } |
12 | 13 | $new_replica_target = $new_replica_host ? { '' => undef, default => peadm::get_targets($new_replica_host, 1) } |
| 14 | + $primary_postgresql_target = $primary_postgresql_host ? { '' => undef, default => peadm::get_targets($primary_postgresql_host, 1) } |
13 | 15 | $new_primary_postgresql_target = $new_primary_postgresql_host ? { '' => undef, default => peadm::get_targets($new_primary_postgresql_host, 1) } |
14 | 16 | $new_replica_postgresql_target = $new_replica_postgresql_host ? { '' => undef, default => peadm::get_targets($new_replica_postgresql_host, 1) } |
15 | 17 |
|
|
30 | 32 | new_primary_host => $new_primary_target, |
31 | 33 | upgrade_version => $upgrade_version, |
32 | 34 | replica_host => $new_replica_target, |
| 35 | + primary_postgresql_host => $primary_postgresql_target, |
| 36 | + new_primary_postgresql_host => $new_primary_postgresql_target, |
33 | 37 | ) |
34 | 38 |
|
35 | 39 | # run infra status on the new primary |
|
0 commit comments