mirror of
https://github.com/krislamo/pup-tests
synced 2024-11-10 01:00:35 +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' {
|
node 'webserver' {
|
||||||
include wordpress
|
include wordpress
|
||||||
|
include amanda::client
|
||||||
}
|
}
|
||||||
|
|
||||||
node 'backups' {
|
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"
|
owner => "backup"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Backup config
|
# Deploy config
|
||||||
file { '/etc/amanda/MyConfig/amanda.conf':
|
file { '/etc/amanda/MyConfig/amanda.conf':
|
||||||
ensure => file,
|
ensure => file,
|
||||||
content => template('amanda/amanda.conf.epp'),
|
content => template('amanda/amanda.conf.epp'),
|
||||||
@ -47,5 +47,12 @@ class amanda {
|
|||||||
owner => "backup"
|
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
|
filemark 4 kbytes
|
||||||
}
|
}
|
||||||
|
|
||||||
define dumptype simple-gnutar-local {
|
define dumptype simple-gnutar-remote {
|
||||||
auth "local"
|
|
||||||
compress none
|
compress none
|
||||||
program "GNUTAR"
|
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.100 puppet
|
||||||
192.168.121.101 webserver
|
192.168.121.101 webserver
|
||||||
192.168.121.102 amanda
|
192.168.121.102 backups
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user