Skip to content

Commit eeb4d7c

Browse files
(PE-40379) try to output hostcert and hostprivkey
1 parent 11c3619 commit eeb4d7c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

plans/restore.pp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -299,15 +299,15 @@
299299
# or other factors.
300300
if getvar('recovery_opts.puppetdb') and $restore_type == 'migration' {
301301
out::message('# hostcert')
302-
run_command(@("CMD"/L), $primary_target)
302+
$hostcert = run_command(@("CMD"/L), $primary_target)
303303
/opt/puppetlabs/bin/puppet config print hostcert
304304
| CMD
305-
305+
out::message("# hostcert:${hostcert}.")
306306
out::message('# hostprivkey')
307-
run_command(@("CMD"/L), $primary_target)
307+
$hostprivkey = run_command(@("CMD"/L), $primary_target)
308308
/opt/puppetlabs/bin/puppet config print hostprivkey
309309
| CMD
310-
310+
out::message("# hostprivkey:${hostprivkey}.")
311311
out::message('# Importing puppetdb')
312312
run_command(@("CMD"/L), $primary_target)
313313
/opt/puppetlabs/bin/puppet-db import \

0 commit comments

Comments
 (0)