1
0
mirror of https://github.com/krislamo/pup-tests synced 2025-09-07 15:29:29 +00:00

Added SSH keys for restoration

On "./pup-tests.sh create" SSH keys will be created and placed on
the webserver and backup server to allow the backup server to
restore files back to the webserver easily.
This commit is contained in:
2019-03-04 12:14:45 -05:00
parent 1b42ed53a3
commit 555304661b
5 changed files with 52 additions and 0 deletions

11
Vagrantfile vendored
View File

@@ -22,6 +22,17 @@ Vagrant.configure("2") do |config|
master.vm.synced_folder "./code", "/etc/puppet/code", type: "rsync",
rsync__args: ["--verbose", "--archive", "-z", "--copy-links"]
# Sync custom SSH keys to Puppet Master
modpath = "/etc/puppet/code/environments/production/modules/"
master.vm.provision "file",
source: "./keys/backup-key",
destination: modpath + "amanda/files/backup-key"
master.vm.provision "file",
source: "./keys/backup-key.pub",
destination: modpath + "amanda/files/backup-key.pub"
end
# Clients / Agents