Skip to content

Commit 7b4a8ef

Browse files
more debug
1 parent f9c6515 commit 7b4a8ef

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

plans/replace_failed_postgresql.pp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
$failed_postgresql_host,
2020
$replacement_postgresql_host,
2121
])
22+
# output value of each parameter individually
23+
out::message("Primary host: ${$primary_host}")
24+
out::message("Replica host: ${$replica_host}")
25+
out::message("Working PostgreSQL host: ${$working_postgresql_host}")
26+
out::message("Failed PostgreSQL host: ${$failed_postgresql_host}")
27+
out::message("Replacement PostgreSQL host: ${$replacement_postgresql_host}")
2228

2329
# verify we can connect to targets proded before proceeding
2430
run_command('hostname', $all_hosts)
@@ -41,6 +47,7 @@
4147
run_task('service', $pe_hosts, 'action' => 'stop', 'name' => 'puppet.service')
4248

4349
# Temporarily set both primary and replica server nodes so that they use the remaining healthy PE-PostgreSQL server
50+
out::message("Updating database settings on ${$pe_hosts} to use ${$working_postgresql_host}")
4451
run_plan('peadm::util::update_db_setting', $pe_hosts,
4552
postgresql_host => $working_postgresql_host,
4653
override => true,

0 commit comments

Comments
 (0)