-
Notifications
You must be signed in to change notification settings - Fork 12
/
pillar.example
484 lines (437 loc) · 14 KB
/
pillar.example
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
# -*- coding: utf-8 -*-
# vim: ft=yaml
############### FULL EXAMPLE (not necessarily a working one) ###################
# The following configuration example is a full example matching what is
# configured, by default, when you install the packages bareos-director,
# bareos-storage and bareos-client from the upstream repository.
bareos:
config_dir: /etc/bareos
default_password: default_bareos_formula_password
# Generate_unique_password enables a mode where a password is generated on
# initial config and stored in /etc/bareos/password.conf
#generate_unique_password: True
use_upstream_repo: true
# One of http://download.bareos.org/bareos/release/
# Repo URL is built with grains values. If desired, it can be completely
# overwritten with the pillar parameter 'repo_url'
repo:
url_base: 'http://download.bareos.org/bareos/release'
keyid: 093BFBA2
keyserver: keyserver.ubuntu.com
humanname: Bareos Official Repository
version: latest
# to get key from Release.key file in repo, keyid and keyserver will be ignored
use_key_url: true
director:
pkg: bareos-director
plugins: []
config_file: bareos-dir.conf
config:
Director:
bareos-dir:
Messages: Daemon
QueryFile: /usr/lib/bareos/scripts/query.sql
MaximumConcurrentJobs: 10
NdmpSfalseoping: false
AbsoluteJobTimeout: 0
Auditing: true
Client:
bareos-fd:
Description: Client resource of the Director itself.
Catalog: MyCatalog
MaximumBandwidthPerJob: 0
JobDefs:
DefaultJob:
Type: Backup
Level: Incremental
Messages: Standard
Storage: File
Pool: Incremental
FullBackupPool: Full
IncrementalBackupPool: Incremental
DifferentialBackupPool: Differential
Client: bareos-fd
FileSet: SelfTest
Schedule: WeeklyCycle
WriteBootstrap: '/var/lib/bareos/%c.bsr'
MaximumBandwidth: 0
MaxRunSchedTime: 0
MaxRunTime: 0
FullMaxWaitTime: 0
IncrementalMaxWaitTime: 0
DifferentialMaxWaitTime: 0
FullMaxRuntime: 0
IncrementalMaxRuntime: 0
DifferentialMaxRuntime: 0
MaxWaitTime: 0
MaxStartDelay: 0
MaxFullInterval: 0
MaxVirtualFullInterval: 0
MaxDiffInterval: 0
SpoolSize: 0
Priority: 10
WritePartAfterJob: false
AlwaysIncrementalMaxFullAge: 0
Job:
RestoreFiles:
Description: Standard Restore template. Only one such job is needed for all standard Jobs/Clients/Storage ...
Type: Restore
Messages: Standard
Storage: File
Pool: Incremental
Client: bareos-fd
FileSet: LinuxAll
Where: /tmp/bareos-restores
MaximumBandwidth: 0
MaxRunSchedTime: 0
MaxRunTime: 0
FullMaxWaitTime: 0
IncrementalMaxWaitTime: 0
DifferentialMaxWaitTime: 0
FullMaxRuntime: 0
IncrementalMaxRuntime: 0
DifferentialMaxRuntime: 0
MaxWaitTime: 0
MaxStartDelay: 0
MaxFullInterval: 0
MaxVirtualFullInterval: 0
MaxDiffInterval: 0
SpoolSize: 0
WritePartAfterJob: false
AlwaysIncrementalMaxFullAge: 0
BackupCatalog:
Description: Backup the catalog database (after the nightly save)
Level: Full
FileSet: Catalog
Schedule: WeeklyCycleAfterBackup
JobDefs: DefaultJob
WriteBootstrap: '|/usr/bin/bsmtp -h localhost -f "(Bareos) " -s "Bootstrap for Job %j" root@localhost'
MaximumBandwidth: 0
MaxRunSchedTime: 0
MaxRunTime: 0
FullMaxWaitTime: 0
IncrementalMaxWaitTime: 0
DifferentialMaxWaitTime: 0
FullMaxRuntime: 0
IncrementalMaxRuntime: 0
DifferentialMaxRuntime: 0
MaxWaitTime: 0
MaxStartDelay: 0
MaxFullInterval: 0
MaxVirtualFullInterval: 0
MaxDiffInterval: 0
SpoolSize: 0
Priority: 11
WritePartAfterJob: false
RunBeforeJob: '/usr/lib/bareos/scripts/make_catalog_backup.pl MyCatalog'
RunAfterJob: '/usr/lib/bareos/scripts/delete_catalog_backup'
AlwaysIncrementalMaxFullAge: 0
backup-bareos-fd:
Client: bareos-fd
JobDefs: DefaultJob
MaximumBandwidth: 0
MaxRunSchedTime: 0
MaxRunTime: 0
FullMaxWaitTime: 0
IncrementalMaxWaitTime: 0
DifferentialMaxWaitTime: 0
FullMaxRuntime: 0
IncrementalMaxRuntime: 0
DifferentialMaxRuntime: 0
MaxWaitTime: 0
MaxStartDelay: 0
MaxFullInterval: 0
MaxVirtualFullInterval: 0
MaxDiffInterval: 0
SpoolSize: 0
WritePartAfterJob: false
AlwaysIncrementalMaxFullAge: 0
Storage:
File:
Address: bareos-debian-jessie64
Password: '[md5]abfc1f5292616091194dd851bee2aaf7'
Device: FileStorage
MediaType: File
SddPort: 0
MaximumBandwidthPerJob: 0
Catalog:
MyCatalog:
DbPort: 0
DbUser: bareos
DbName: bareos
DbDriver: postgresql
MultipleConnections: false
Schedule:
WeeklyCycle:
run:
- 'Full 1st Sat at 21:00'
- 'Differential 2nd-5th Sat at 21:00'
- 'Incremental Mon-Fri at 21:00'
WeeklyCycleAfterBackup:
Description: This schedule does the catalog. It starts after the WeeklyCycle.
run:
- 'Full Mon-Fri at 21:10'
FileSet:
"Windows All Drives":
Include:
Options:
Signature: MD5
IgfalsereCase: Yes
Exclude: Yes
WildDir:
- '[A-Z]:/RECYCLER'
- '[A-Z]:/$RECYCLE.BIN'
- '[A-Z]:/System Volume Information'
WildFile: '[A-Z]:/pagefile.sys'
DriveType: fixed
File: /
SelfTest:
Include:
Options:
Signature: MD5
File: /usr/sbin
LinuxAll:
Include:
Options:
Signature: MD5
OneFS: No
FsType:
- btrfs
- ext2
- ext3
- ext4
- reiserfs
- jfs
- xfs
- zfs
File: /
Exclude:
File:
- /var/lib/bareos
- /var/lib/bareos/storage
- /proc
- /tmp
- /var/tmp
- /.journal
- /.fsck
Catalog:
Include:
Options:
Signature: MD5
File:
- /var/lib/bareos/bareos.sql
- /etc/bareos
Pool:
Scratch:
PoolType: Scratch
LabelType: bareos
UseVolumeOnce: false
MaximumVolumes: 0
MaximumVolumeJobs: 0
MaximumVolumeFiles: 0
MaximumVolumeBytes: 0
VolumeUseDuration: 0
MigrationTime: 0
MigrationHighBytes: 0
MigrationLowBytes: 0
FileRetention: 0
JobRetention: 0
MinimumBlockSize: 0
MaximumBlockSize: 0
Incremental:
PoolType: Backup
LabelFormat: Incremental-
LabelType: bareos
UseVolumeOnce: false
MaximumVolumes: 100
MaximumVolumeJobs: 0
MaximumVolumeFiles: 0
MaximumVolumeBytes: 1 g
VolumeRetention: 1 months
VolumeUseDuration: 0
MigrationTime: 0
MigrationHighBytes: 0
MigrationLowBytes: 0
AutoPrune: true
Recycle: true
FileRetention: 0
JobRetention: 0
MinimumBlockSize: 0
MaximumBlockSize: 0
Full:
PoolType: Backup
LabelFormat: Full-
LabelType: bareos
UseVolumeOnce: false
MaximumVolumes: 100
MaximumVolumeJobs: 0
MaximumVolumeFiles: 0
MaximumVolumeBytes: 50 g
VolumeRetention: 1 years
VolumeUseDuration: 0
MigrationTime: 0
MigrationHighBytes: 0
MigrationLowBytes: 0
AutoPrune: true
Recycle: true
FileRetention: 0
JobRetention: 0
MinimumBlockSize: 0
MaximumBlockSize: 0
Differential:
PoolType: Backup
LabelFormat: Differential-
LabelType: bareos
UseVolumeOnce: false
MaximumVolumes: 100
MaximumVolumeJobs: 0
MaximumVolumeFiles: 0
MaximumVolumeBytes: 10 g
VolumeRetention: 3 months
VolumeUseDuration: 0
MigrationTime: 0
MigrationHighBytes: 0
MigrationLowBytes: 0
AutoPrune: true
Recycle: true
FileRetention: 0
JobRetention: 0
MinimumBlockSize: 0
MaximumBlockSize: 0
Messages:
Standard:
MailCommand: '/usr/bin/bsmtp -h localhost -f \"\(Bareos\) \<%r\>\" -s \"Bareos: %t %e of %c %l\" %r'
OperatorCommand: '/usr/bin/bsmtp -h localhost -f \"\(Bareos\) \<%r\>\" -s \"Bareos: Intervention needed for %j\" %r'
catalog: 'all,!saved,!skipped,!audit'
append: '/var/log/bareos/bareos.log = all,!saved,!skipped,!audit'
console: 'all,!saved,!skipped,!audit'
mail: 'root@localhost = all,!saved,!skipped,!audit'
operator: 'root@localhost = mount'
Daemon:
MailCommand: '/usr/bin/bsmtp -h localhost -f \"\(Bareos\) \<%r\>\" -s \"Bareos daemon message\" %r'
append:
- '/var/log/bareos/bareos-audit.log = audit'
- '/var/log/bareos/bareos.log = all,!skipped,!audit'
console: 'all,!saved,!skipped,!audit'
mail: 'root@localhost = all,!skipped,!audit'
Profile:
operator:
Description: Profile allowing falsermal Bareos operations.
JobACL: '*all*'
ClientACL: '*all*'
StorageACL: '*all*'
ScheduleACL: '*all*'
PoolACL: '*all*'
CommandACL: '"!.bvfs_clear_cache","!.exit","!.sql","!configure","!create","!delete","!purge","!sqlquery","!umount","!unmount","*all*"'
FileSetACL: '*all*'
CatalogACL: '*all*'
WhereACL: '*all*'
PluginOptionsACL: '*all*'
Console:
bareos-mon:
Description: Restricted console used by tray-monitor to get the status of the director.
Password: '[md5]52cac8957be7f13d8d37c222a0768872'
JobACL: '*all*'
CommandACL: '"status",".status"'
service: bareos-director
storage:
pkg: bareos-storage
backends: []
config_file: bareos-sd.conf
config:
Director:
bareos-mon:
Description: Restricted Director, used by tray-monitor to get the status of this storage daemon.
Password: '[md5]95983592338a5acbf125e956b2d7725c'
Monitor: true
MaximumBandwidthPerJob: 0
bareos-dir:
Description: Director, who is permitted to contact this storage daemon.
Password: '[md5]abfc1f5292616091194dd851bee2aaf7'
Monitor: false
MaximumBandwidthPerJob: 0
Storage:
bareos-sd:
MaximumConcurrentJobs: 20
MaximumNetworkBufferSize: 0
MaximumBandwidthPerJob: 0
AbsoluteJobTimeout: 0
Device:
FileStorage:
Description: File device. A connecting Director must have the same Name and MediaType.
MediaType: File
ArchiveDevice: /var/lib/bareos/storage
RemovableMedia: false
RandomAccess: true
AutomaticMount: true
LabelMedia: true
AlwaysOpen: false
MaximumNetworkBufferSize: 0
MinimumBlockSize: 0
MaximumVolumeSize: 0
VolumeCapacity: 0
MaximumConcurrentJobs: 0
MaximumSpoolSize: 0
MaximumJobSpoolSize: 0
DriveIndex: 0
MaximumPartSize: 0
LabelType: bareos
DriveTapeAlertEnabled: false
DriveCryptoEnabled: false
QueryCryptoStatus: false
Messages:
Standard:
director: bareos-dir = all
service: bareos-storage
filedaemon:
pkg: bareos-filedaemon
plugins: []
config_file: bareos-fd.conf
config:
Director:
bareos-dir:
Description: The default BareOS director resource
bareos-mon:
Description: A monitor resource
Monitor: true
Client:
bareos-fd:
MaximumConcurrentJobs: 20
Messages:
Standard:
Director: bareos-debian-jessie64-dir = all, !skipped, !restored
service: bareos-fd
client:
pkg: bareos-client
traymonitor:
pkg: bareos-traymonitor
config_file: tray-monitor.conf
config:
Monitor:
bareos-debian-jessie64-mon:
Password: "[md5]52cac8957be7f13d8d37c222a0768872"
RefreshInterval: 30 seconds
Director:
bareos-debian-jessie64-dir:
DirPort: 9101
Address: "bareos-debian-jessie64"
Client:
bareos-debian-jessie64-fd:
Address: "bareos-debian-jessie64"
FdPort: 9102
Password: "[md5]6a8fc2ca1763e0bdb7dadd8a84c03312"
Storage:
bareos-debian-jessie64-sd:
SdPort: 9103
Address: "bareos-debian-jessie64"
SdAddress: "bareos-debian-jessie64"
Password: "[md5]95983592338a5acbf125e956b2d7725c"
SdPassword: "[md5]95983592338a5acbf125e956b2d7725c"
console:
pkg: bareos-console
config:
Director:
bareos-debian-jessie64-dir:
DirPort: 9101
Address: bareos-debian-jessie64
Password: "[md5]ff0f8e427999d2b25c1bd81e98590ed9"