mirror of
https://github.com/krislamo/pup-tests
synced 2025-01-05 17:00:34 +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:
parent
8f82dc0117
commit
1b42ed53a3
@ -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
|
||||
|
||||
|
@ -8,5 +8,5 @@ ff02::2 ip6-allrouters
|
||||
|
||||
192.168.121.100 puppet
|
||||
192.168.121.101 webserver
|
||||
192.168.121.102 amanda
|
||||
192.168.121.102 backups
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user