Skip to content

Commit e47b724

Browse files
(PE-40386) add debug
1 parent 091a2a1 commit e47b724

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

plans/migrate.pp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,26 +127,32 @@
127127
out::message('No nodes to purge from old configuration')
128128
}
129129

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}.")
130132
if $primary_postgresql_host {
131133
run_plan('peadm::add_database', targets => $primary_postgresql_host,
132134
primary_host => $new_primary_host,
133135
is_migration => true,
134136
)
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}.")
135139
if $replica_postgresql_host {
136140
run_plan('peadm::add_database', targets => $replica_postgresql_host,
137141
primary_host => $new_primary_host,
138142
is_migration => true,
139143
)
140144
}
141145
}
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}.")
143148
if $replica_host {
144149
run_plan('peadm::add_replica', {
145150
primary_host => $new_primary_host,
146151
replica_host => $replica_host,
147152
})
148153
}
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}.")
150156
# ensure puppet agent enabled on the hosts we migrated to
151157
run_command('puppet agent --enable', $new_hosts)
152158

0 commit comments

Comments
 (0)