]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/bacula/templates/per-client.conf.erb
Add per client pools, storages, devices, mediatypes
[dsa-puppet.git] / modules / bacula / templates / per-client.conf.erb
1 ##
2 ## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
3 ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
4 ##
5 #  For Bacula release 5.0.1 (24 February 2010) -- debian 5.0.4
6
7 Job {
8   Name = "<%= client %>"
9   JobDefs = "Standardbackup"
10   Client = <%= bacula_client_name %>
11
12   Pool = "poolfull-<%= bacula_pool_name %>-<%= client %>"
13   Differential Backup Pool = "pooldiff-<%= bacula_pool_name %>-<%= client %>"
14   Incremental Backup Pool = "poolinc-<%= bacula_pool_name %>-<%= client %>"
15
16   #Rerun Failed Levels = yes
17   Reschedule On Error = yes
18   Reschedule Interval = 4 hours
19   Reschedule Times = 2
20
21   Cancel Lower Level Duplicates = yes
22   Cancel Queued Duplicates = yes
23 }
24
25 # Client (File Services) to backup
26 Client {
27   Name = <%= bacula_client_name %>
28   Address = <%= client %>
29   FDPort = <%= bacula_client_port %>
30   Catalog = MyCatalog
31   Password = "<%= bacula_client_secret %>"
32   File Retention = 30 days            # 30 days
33   Job Retention = 6 months            # six months
34   AutoPrune = yes                     # Prune expired Jobs/Files
35
36   Heartbeat Interval = 180
37
38   TLS Enable = yes
39   TLS Require = yes
40   TLS CA Certificate File = "<%= bacula_ca_path %>"
41   # This is a client certificate, used by the director to connect to the client's file daemon
42   TLS Certificate = "<%= bacula_ssl_client_cert %>"
43   TLS Key = "<%= bacula_ssl_client_key %>"
44 }
45
46 ########################################################################
47 # Storage config                                                       #
48 ########################################################################
49
50 Storage {
51   Name = "<%= bacula_filestor_name %>-<%= client %>"
52   Address = <%= bacula_storage_address %>
53   SDPort = <%= bacula_storage_port %>
54   Password = "<%= bacula_storage_secret %>"
55   Device = "<%= bacula_filestor_device %>-<%= client %>"
56   Media Type = "<%= bacula_filestor_name %>-<%= client %>"
57   Maximum Concurrent Jobs = 10
58
59   TLS Enable = yes
60   TLS Require = yes
61   TLS CA Certificate File = "<%= bacula_ca_path %>"
62   # This is a client certificate, used by the director to connect to the storage daemon
63   TLS Certificate = "<%= bacula_ssl_client_cert %>"
64   TLS Key = "<%= bacula_ssl_client_key %>"
65 }
66
67 ########################################################################
68 # Pool definition                                                      #
69 ########################################################################
70 Pool {
71   Name = "poolfull-<%=bacula_pool_name%>-<%= client %>"
72   Pool Type = Backup
73   Storage = "<%=bacula_filestor_name%>-<%= client %>"
74   Recycle = no
75   AutoPrune = yes
76   Volume Retention = 1 year
77   Label Format = "<%= bacula_pool_name %>-full-<%= client %>.${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}_${Hour:p/2/0/r}:${Minute:p/2/0/r}"
78   Volume Use Duration = 23h
79   Maximum Volume Jobs = 1
80   Maximum Volume Bytes = 50G
81   Action On Purge = Truncate
82 }
83
84 Pool {
85   Name = "pooldiff-<%=bacula_pool_name%>-<%= client %>"
86   Pool Type = Backup
87   Storage = "<%=bacula_filestor_name%>-<%= client %>"
88   Recycle = no
89   AutoPrune = yes
90   Volume Retention = 1 year
91   Label Format = "<%= bacula_pool_name %>-diff-<%= client %>.${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}_${Hour:p/2/0/r}:${Minute:p/2/0/r}"
92   Volume Use Duration = 23h
93   Maximum Volume Jobs = 1
94   Maximum Volume Bytes = 50G
95   Action On Purge = Truncate
96 }
97
98 Pool {
99   Name = "poolinc-<%=bacula_pool_name%>-<%= client %>"
100   Pool Type = Backup
101   Storage = "<%=bacula_filestor_name%>-<%= client %>"
102   Recycle = no
103   AutoPrune = yes
104   Volume Retention = 2 months
105   Label Format = "<%= bacula_pool_name %>-inc-<%= client %>.${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}_${Hour:p/2/0/r}:${Minute:p/2/0/r}"
106   Volume Use Duration = 23h
107   Maximum Volume Jobs = 1
108   Maximum Volume Bytes = 50G
109   Action On Purge = Truncate
110 }