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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# File 'manifests/server.pp', line 1
class amanda::server (
$configs = [],
$configs_directory = undef,
$manage_configs_directory = true,
$configs_source = 'modules/amanda/server/example',
$mode = '0644',
$group = undef,
$owner = undef,
$xinetd = true
) {
include amanda
include amanda::params
include amanda::virtual::server
if $owner != undef {
$owner_real = $owner
} else {
$owner_real = $amanda::params::user
}
if $group != undef {
$group_real = $group
} else {
$group_real = $amanda::params::group
}
if $configs_directory != undef {
$configs_directory_real = $configs_directory
} else {
$configs_directory_real = $amanda::params::configs_directory
}
if $amanda::params::generic_package {
realize(Package['amanda'])
} else {
realize(Package['amanda/server'])
}
# for systems that don't use xinetd, don't use xinetd
if (("x$xinetd" == 'xtrue') and !$amanda::params::xinetd_unsupported) {
realize(
Xinetd::Service['amanda_indexd'],
Xinetd::Service['amanda_taped'],
Xinetd::Service['amanda_tcp'],
Xinetd::Service['amanda_udp'],
)
}
amanda::amandahosts { 'amanda::server::server_root@localhost':
content => 'localhost root amindexd amidxtaped',
order => '10';
}
amanda::config { $configs:
ensure => present,
manage_configs_directory => $manage_configs_directory,
configs_directory => $configs_directory,
configs_source => $configs_source,
owner => $owner_real,
group => $group_real,
mode => $mode,
}
}
|