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
|
# File 'modules/profile/manifests/backup/storage/databases.pp', line 5
class profile::backup::storage::databases {
include profile::backup::storage::common
# Databases setup:
# 2 storage devices in a single disk array (dumps
# and snapshots)
file { '/srv/bacula':
ensure => directory,
owner => 'bacula',
group => 'bacula',
mode => '0660',
}
file { [ '/srv/bacula/dumps',
'/srv/bacula/snapshots', ]:
ensure => directory,
owner => 'bacula',
group => 'bacula',
mode => '0660',
require => File['/srv/bacula'],
}
$upcase_site = capitalize($::site)
bacula::storage::device { "FileStorageDumps${upcase_site}":
device_type => 'File',
media_type => 'File',
archive_device => '/srv/bacula/dumps',
max_concur_jobs => 2,
require => File['/srv/bacula/dumps'],
}
bacula::storage::device { "FileStorageSnapshots${upcase_site}":
device_type => 'File',
media_type => 'File',
archive_device => '/srv/bacula/snapshots',
max_concur_jobs => 2,
require => File['/srv/bacula/snapshots'],
}
}
|