1
0
mirror of https://github.com/krislamo/pup-tests synced 2024-11-14 10:30:35 +00:00
pup-tests/code/environments/production/modules/amanda/manifests/client.pp

36 lines
719 B
ObjectPascal
Raw Normal View History

class amanda::client {
# Install Amanda
package { ['amanda-client', 'amanda-common']:
ensure => present
}
# Enable "backup" user account
user { 'backup':
ensure => present,
shell => "/bin/bash"
}
# Enable remote access from backup server
file { '/var/backups/.ssh':
ensure => directory
}
# Deploy temporary backup key made by pup-tests.sh
file { '/var/backups/.ssh/authorized_keys':
ensure => file,
content => file('amanda/backup-key.pub'),
owner => 'backup',
mode => "644"
}
# Deploy amanda hosts for clients
file { '/etc/amandahosts':
ensure => file,
content => template('amanda/amandahosts-client.epp'),
owner => "backup"
}
}