mirror of
https://github.com/krislamo/pup-tests
synced 2025-09-08 07:49:28 +00:00
Added network backup
Installed the amanda client on webserver to back it up. Changed host name of backup server from "amanda" to "backups."
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
node 'webserver' {
|
||||
include wordpress
|
||||
include amanda::client
|
||||
}
|
||||
|
||||
node 'backups' {
|
||||
|
@@ -0,0 +1,22 @@
|
||||
class amanda::client {
|
||||
|
||||
# Install Amanda
|
||||
package { ['amanda-client', 'amanda-common']:
|
||||
ensure => present
|
||||
}
|
||||
|
||||
# Enable "backup" user account
|
||||
user { 'backup':
|
||||
ensure => present,
|
||||
shell => "/bin/bash"
|
||||
}
|
||||
|
||||
# Deploy amanda hosts for clients
|
||||
file { '/etc/amandahosts':
|
||||
ensure => file,
|
||||
content => template('amanda/amandahosts-client.epp'),
|
||||
owner => "backup"
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -33,7 +33,7 @@ class amanda {
|
||||
owner => "backup"
|
||||
}
|
||||
|
||||
# Backup config
|
||||
# Deploy config
|
||||
file { '/etc/amanda/MyConfig/amanda.conf':
|
||||
ensure => file,
|
||||
content => template('amanda/amanda.conf.epp'),
|
||||
@@ -47,5 +47,12 @@ class amanda {
|
||||
owner => "backup"
|
||||
}
|
||||
|
||||
# Deploy amanda hosts for the amanda server
|
||||
file { '/etc/amandahosts':
|
||||
ensure => file,
|
||||
content => template('amanda/amandahosts-server.epp'),
|
||||
owner => "backup"
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@@ -17,8 +17,7 @@ define tapetype TEST-TAPE {
|
||||
filemark 4 kbytes
|
||||
}
|
||||
|
||||
define dumptype simple-gnutar-local {
|
||||
auth "local"
|
||||
define dumptype simple-gnutar-remote {
|
||||
compress none
|
||||
program "GNUTAR"
|
||||
}
|
||||
|
@@ -0,0 +1,2 @@
|
||||
backups backup amdump
|
||||
|
@@ -0,0 +1,2 @@
|
||||
localhost root amindexd amidxtaped
|
||||
|
@@ -1,2 +1,2 @@
|
||||
localhost /etc simple-gnutar-local
|
||||
webserver /var/www simple-gnutar-remote
|
||||
|
||||
|
Reference in New Issue
Block a user