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