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