]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/bacula/templates/per-client.conf.erb
TLS for -catalog storage
[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   RunScript {
25     RunsWhen = After
26     RunsOnClient = No
27     Console = "purge volume action=all allpools storage=%w"
28   }
29 }
30
31 # Client (File Services) to backup
32 Client {
33   Name = <%= bacula_client_name %>
34   Address = <%= client %>
35   FDPort = <%= bacula_client_port %>
36   Catalog = MyCatalog
37   Password = "<%= bacula_client_secret %>"
38   File Retention = 70 days            # a bit over 2 months
39   Job Retention = 6 months            # six months
40   AutoPrune = yes                     # Prune expired Jobs/Files
41
42   Heartbeat Interval = 180
43
44   TLS Enable = yes
45   TLS Require = yes
46   TLS CA Certificate File = "<%= bacula_ca_path %>"
47   # This is a client certificate, used by the director to connect to the client's file daemon
48   TLS Certificate = "<%= bacula_ssl_client_cert %>"
49   TLS Key = "<%= bacula_ssl_client_key %>"
50 }
51
52 ########################################################################
53 # Storage config                                                       #
54 ########################################################################
55
56 Storage {
57   Name = "<%= bacula_filestor_name %>-<%= client %>"
58   Address = <%= bacula_storage_address %>
59   SDPort = <%= bacula_storage_port %>
60   Password = "<%= bacula_storage_secret %>"
61   Device = "<%= bacula_filestor_device %>-<%= client %>"
62   Media Type = "<%= bacula_filestor_name %>-<%= client %>"
63   Maximum Concurrent Jobs = 10
64
65   TLS Enable = yes
66   TLS Require = yes
67   TLS CA Certificate File = "<%= bacula_ca_path %>"
68   # This is a client certificate, used by the director to connect to the storage daemon
69   TLS Certificate = "<%= bacula_ssl_client_cert %>"
70   TLS Key = "<%= bacula_ssl_client_key %>"
71 }
72
73 ########################################################################
74 # Pool definition                                                      #
75 ########################################################################
76 Pool {
77   Name = "poolfull-<%=bacula_pool_name%>-<%= client %>"
78   Pool Type = Backup
79   Storage = "<%=bacula_filestor_name%>-<%= client %>"
80   AutoPrune = yes
81   Volume Retention = 1 year
82   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}"
83   Volume Use Duration = 23h
84   Maximum Volume Jobs = 1
85   Maximum Volume Bytes = 50G
86   Action On Purge = Truncate
87   Recycle = yes
88   RecyclePool = "poolgraveyard-<%=bacula_pool_name%>-<%= client %>"
89 }
90
91 Pool {
92   Name = "pooldiff-<%=bacula_pool_name%>-<%= client %>"
93   Pool Type = Backup
94   Storage = "<%=bacula_filestor_name%>-<%= client %>"
95   AutoPrune = yes
96   Volume Retention = 6 months
97   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}"
98   Volume Use Duration = 23h
99   Maximum Volume Jobs = 1
100   Maximum Volume Bytes = 50G
101   Action On Purge = Truncate
102   Recycle = yes
103   RecyclePool = "poolgraveyard-<%=bacula_pool_name%>-<%= client %>"
104 }
105
106 Pool {
107   Name = "poolinc-<%=bacula_pool_name%>-<%= client %>"
108   Pool Type = Backup
109   Storage = "<%=bacula_filestor_name%>-<%= client %>"
110   AutoPrune = yes
111   Volume Retention = 70 days
112   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}"
113   Volume Use Duration = 23h
114   Maximum Volume Jobs = 1
115   Maximum Volume Bytes = 50G
116   Action On Purge = Truncate
117   Recycle = yes
118   RecyclePool = "poolgraveyard-<%=bacula_pool_name%>-<%= client %>"
119 }
120
121 Pool {
122   Name = "poolgraveyard-<%=bacula_pool_name%>-<%= client %>"
123   Pool Type = Backup
124   Storage = "<%=bacula_filestor_name%>-<%= client %>"
125   Recycle = yes
126   RecyclePool = "poolgraveyard-<%=bacula_pool_name%>-<%= client %>"
127 }