mirror of
https://github.com/krislamo/pup-tests
synced 2025-09-09 08:09: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:
@@ -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"
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user