|
127 | 127 | out::message('No nodes to purge from old configuration') |
128 | 128 | } |
129 | 129 |
|
| 130 | + $peadm_config_before_postgres1 = run_task('peadm::get_peadm_config', $new_primary_host).first.value |
| 131 | + out::message("peadm_config_before_postgres1:${peadm_config_before_postgres1}.") |
130 | 132 | if $primary_postgresql_host { |
131 | 133 | run_plan('peadm::add_database', targets => $primary_postgresql_host, |
132 | 134 | primary_host => $new_primary_host, |
133 | 135 | is_migration => true, |
134 | 136 | ) |
| 137 | + $peadm_config_before_postgres2 = run_task('peadm::get_peadm_config', $new_primary_host).first.value |
| 138 | + out::message("peadm_config_before_postgres2:${peadm_config_before_postgres2}.") |
135 | 139 | if $replica_postgresql_host { |
136 | 140 | run_plan('peadm::add_database', targets => $replica_postgresql_host, |
137 | 141 | primary_host => $new_primary_host, |
138 | 142 | is_migration => true, |
139 | 143 | ) |
140 | 144 | } |
141 | 145 | } |
142 | | - |
| 146 | + $peadm_config_before_replica = run_task('peadm::get_peadm_config', $new_primary_host).first.value |
| 147 | + out::message("peadm_config_before_replica:${peadm_config_before_replica}.") |
143 | 148 | if $replica_host { |
144 | 149 | run_plan('peadm::add_replica', { |
145 | 150 | primary_host => $new_primary_host, |
146 | 151 | replica_host => $replica_host, |
147 | 152 | }) |
148 | 153 | } |
149 | | - |
| 154 | + $peadm_config_after_replica = run_task('peadm::get_peadm_config', $new_primary_host).first.value |
| 155 | + out::message("peadm_config_after_replica:${peadm_config_after_replica}.") |
150 | 156 | # ensure puppet agent enabled on the hosts we migrated to |
151 | 157 | run_command('puppet agent --enable', $new_hosts) |
152 | 158 |
|
|
0 commit comments