mirror of
https://github.com/krislamo/pup-tests
synced 2024-09-20 09:40:36 +00:00
23 lines
399 B
ObjectPascal
23 lines
399 B
ObjectPascal
|
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"
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|