fix per-client.conf template
[mirror/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
33   Job Retention = 3 months
34   AutoPrune = yes
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   AutoPrune = yes
75   Volume Retention = 3 months
76   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}"
77   Volume Use Duration = 23h
78   Maximum Volume Jobs = 1
79   Maximum Volume Bytes = 50G
80   Action On Purge = Truncate
81   Recycle = yes
82   RecyclePool = "poolgraveyard-<%=@bacula_pool_name%>-<%= @client %>"
83 }
84
85 Pool {
86   Name = "pooldiff-<%=@bacula_pool_name%>-<%= @client %>"
87   Pool Type = Backup
88   Storage = "<%=@bacula_filestor_name%>-<%= @client %>"
89   AutoPrune = yes
90   Volume Retention = 2 months
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   Recycle = yes
97   RecyclePool = "poolgraveyard-<%=@bacula_pool_name%>-<%= @client %>"
98 }
99
100 Pool {
101   Name = "poolinc-<%=@bacula_pool_name%>-<%= @client %>"
102   Pool Type = Backup
103   Storage = "<%=@bacula_filestor_name%>-<%= @client %>"
104   AutoPrune = yes
105   Volume Retention = 30 days
106   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}"
107   Volume Use Duration = 23h
108   Maximum Volume Jobs = 1
109   Maximum Volume Bytes = 50G
110   Action On Purge = Truncate
111   Recycle = yes
112   RecyclePool = "poolgraveyard-<%=@bacula_pool_name%>-<%= @client %>"
113 }
114
115 Pool {
116   Name = "poolgraveyard-<%=@bacula_pool_name%>-<%= @client %>"
117   Pool Type = Backup
118   Storage = "<%=@bacula_filestor_name%>-<%= @client %>"
119   Recycle = yes
120   RecyclePool = "poolgraveyard-<%=@bacula_pool_name%>-<%= @client %>"
121 }