1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# File 'manifests/client.pp', line 1
class amanda::client (
$remote_user = undef,
$server = "backup.$::domain",
$xinetd = true
) {
include amanda
include amanda::params
include concat::setup
if $remote_user != undef {
$remote_user_real = $remote_user
} else {
$remote_user_real = $amanda::params::user
}
# for systems that don't use xinetd, don't use xinetd
if (("x$xinetd" == 'xtrue') and !$amanda::params::xinetd_unsupported) {
realize(
Xinetd::Service['amanda_tcp'],
Xinetd::Service['amanda_udp'],
)
}
if $amanda::params::generic_package {
realize(Package['amanda'])
} else {
realize(Package['amanda/client'])
}
amanda::amandahosts { "amanda::client::amdump_${remote_user_real}@${server}":
content => "${server} ${remote_user_real} amdump",
order => '00';
}
}
|