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:
11
Vagrantfile
vendored
11
Vagrantfile
vendored
@@ -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
|
||||
|
Reference in New Issue
Block a user