1
0
mirror of https://github.com/krislamo/pup-tests synced 2025-09-08 07:49:28 +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

View File

@@ -11,6 +11,19 @@ class amanda::client {
shell => "/bin/bash"
}
# Enable remote access from backup server
file { '/var/backups/.ssh':
ensure => directory
}
# Deploy temporary backup key made by pup-tests.sh
file { '/var/backups/.ssh/authorized_keys':
ensure => file,
content => file('amanda/backup-key.pub'),
owner => 'backup',
mode => "644"
}
# Deploy amanda hosts for clients
file { '/etc/amandahosts':
ensure => file,

View File

@@ -47,6 +47,19 @@ class amanda {
owner => "backup"
}
# # Enable remote access from backup server
# file { '/var/backups/.ssh':
# ensure => directory
# }
# Deploy temporary backup key made by pup-tests.sh
file { '/home/vagrant/.ssh/id_rsa':
ensure => file,
content => file('amanda/backup-key'),
owner => 'vagrant',
mode => "600"
}
# Deploy amanda hosts for the amanda server
file { '/etc/amandahosts':
ensure => file,