Skip to content

Commit 11c3619

Browse files
(PE-40379) debug for hostcert and hostprivkey
1 parent d63a8a6 commit 11c3619

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

plans/restore.pp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,16 @@
298298
# TODO: consider adding a heuristic to skip when innappropriate due to size
299299
# or other factors.
300300
if getvar('recovery_opts.puppetdb') and $restore_type == 'migration' {
301+
out::message('# hostcert')
302+
run_command(@("CMD"/L), $primary_target)
303+
/opt/puppetlabs/bin/puppet config print hostcert
304+
| CMD
305+
306+
out::message('# hostprivkey')
307+
run_command(@("CMD"/L), $primary_target)
308+
/opt/puppetlabs/bin/puppet config print hostprivkey
309+
| CMD
310+
301311
out::message('# Importing puppetdb')
302312
run_command(@("CMD"/L), $primary_target)
303313
/opt/puppetlabs/bin/puppet-db import \

0 commit comments

Comments
 (0)