Skip to content

Files

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
39 lines (24 loc) · 1.57 KB
·

backup_restore_ca.md

File metadata and controls

39 lines (24 loc) · 1.57 KB
·

Backup and Restore Puppet Enterprise CA

Overview

Backup and restore plans for the Puppet Enterprise CA. This utilises the puppet_backup tool. This plan has scope set to only CERTS, and will backup CA and SSL certificates. The backup plan will create a tarball of the CA and store it by default in the /tmp directory. The restore plan will restore the CA from the tarball at the path you provide.

Notes

There can be some downtime associated with the restore process. Restore will stop PE services, restore the CA, and then start the PE services. This can take a few minutes.

Usage

Backup

peadm backup_ca target=primary.example.com

Backup will output the path to a timestamped folder containing the backup file. The backup file will be named backup_ca.tgz. At this stage the backup file can be copied to a safe location.

Optionaly "output_directory" can be specified to change the location of the backup file.

peadm::backup_ca target=primary.example.com output_directory=/custompath

Restore

peadm::restore_ca target=primary2.example.com path=/tmp/backup_ca.tgz file_path=/tmp/backup_ca.tgz

Restore will stop PE services, restore the CA, and then start the PE services. This can take a few minutes.

Optionaly "recovery_directory" can be specified to change the temporary location where the backup file will be unzipped.

peadm::restore_ca target=primary2.example.com path=/tmp/backup_ca.tgz file_path=/tmp/backup_ca.tgz recovery_directory=/custompath