1
0
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:
Kris Lamoureux 2019-02-26 14:26:55 -05:00
parent 8f82dc0117
commit 1b42ed53a3
Signed by: kris
GPG Key ID: A30022791E1719A4
8 changed files with 38 additions and 5 deletions

View File

@ -1,5 +1,6 @@
node 'webserver' { node 'webserver' {
include wordpress include wordpress
include amanda::client
} }
node 'backups' { node 'backups' {

View File

@ -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"
}
}

View File

@ -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"
}
} }

View File

@ -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"
} }

View File

@ -0,0 +1,2 @@
backups backup amdump

View File

@ -0,0 +1,2 @@
localhost root amindexd amidxtaped

View File

@ -1,2 +1,2 @@
localhost /etc simple-gnutar-local webserver /var/www simple-gnutar-remote

View File

@ -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