Puppet Plan: peadm::restore_ca
- Defined in:
- plans/restore_ca.pp
Overview
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'plans/restore_ca.pp', line 1
plan peadm::restore_ca(
Peadm::SingleTargetSpec $target,
String $file_path,
Optional[String] $recovery_directory = '/tmp/peadm_recovery',
) {
out::message('# Restoring ca and ssl certificates')
# lint:ignore:strict_indent
run_command(@("CMD"/L), $target)
/opt/puppetlabs/bin/puppet-backup restore \
--scope=certs \
--tempdir=${shellquote($recovery_directory)} \
--force \
${shellquote($file_path)}
| CMD
}
|