213bfe2e194a52f8d14f6ad3e8254325a9ebda08
[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   Reschedule On Error = yes
17   Reschedule Interval = 4 hours
18   Reschedule Times = 2
19
20   Cancel Lower Level Duplicates = yes
21   Cancel Queued Duplicates = yes
22 }
23
24 # Client (File Services) to backup
25 Client {
26   Name = <%= @bacula_client_name %>
27   Address = <%= @client %>
28   FDPort = <%= @port_fd %>
29   Catalog = MyCatalog
30   Password = "<%= @bacula_client_secret %>"
31   File Retention = 30 days
32   Job Retention = 3 months
33   AutoPrune = yes
34
35   TLS Enable = yes
36   TLS Require = yes
37   TLS CA Certificate File = "<%= @bacula_ca_path %>"
38   # This is a client certificate, used by the director to connect to the client's file daemon
39   TLS Certificate = "<%= @bacula_ssl_client_cert %>"
40   TLS Key = "<%= @bacula_ssl_client_key %>"
41 }
42
43 ########################################################################
44 # Storage config                                                       #
45 ########################################################################
46
47 Storage {
48   Name = "<%= @bacula_filestor_name %>-<%= @client %>"
49   Address = <%= @bacula_storage_address %>
50   SDPort = <%= @bacula_storage_port %>
51   Password = "<%= @bacula_storage_secret %>"
52   Device = "<%= @bacula_filestor_device %>-<%= @client %>"
53   Media Type = "<%= @bacula_filestor_name %>-<%= @client %>"
54   Maximum Concurrent Jobs = 10
55
56   TLS Enable = yes
57   TLS Require = yes
58   TLS CA Certificate File = "<%= @bacula_ca_path %>"
59   # This is a client certificate, used by the director to connect to the storage daemon
60   TLS Certificate = "<%= @bacula_ssl_client_cert %>"
61   TLS Key = "<%= @bacula_ssl_client_key %>"
62 }
63
64 ########################################################################
65 # Pool definition                                                      #
66 ########################################################################
67 Pool {
68   Name = "poolfull-<%=@bacula_pool_name%>-<%= @client %>"
69   Pool Type = Backup
70   Storage = "<%=@bacula_filestor_name%>-<%= @client %>"
71   AutoPrune = yes
72   Volume Retention = 100 days
73   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}"
74   Volume Use Duration = 23h
75   Maximum Volume Jobs = 1
76   Maximum Volume Bytes = 500G
77   Action On Purge = Truncate
78   Recycle = yes
79   RecyclePool = "poolgraveyard-<%=@bacula_pool_name%>-<%= @client %>"
80 }
81
82 Pool {
83   Name = "pooldiff-<%=@bacula_pool_name%>-<%= @client %>"
84   Pool Type = Backup
85   Storage = "<%=@bacula_filestor_name%>-<%= @client %>"
86   AutoPrune = yes
87   Volume Retention = 50 days
88   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}"
89   Volume Use Duration = 23h
90   Maximum Volume Jobs = 1
91   Maximum Volume Bytes = 500G
92   Action On Purge = Truncate
93   Recycle = yes
94   RecyclePool = "poolgraveyard-<%=@bacula_pool_name%>-<%= @client %>"
95 }
96
97 Pool {
98   Name = "poolinc-<%=@bacula_pool_name%>-<%= @client %>"
99   Pool Type = Backup
100   Storage = "<%=@bacula_filestor_name%>-<%= @client %>"
101   AutoPrune = yes
102   Volume Retention = 30 days
103   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}"
104   Volume Use Duration = 23h
105   Maximum Volume Jobs = 1
106   Maximum Volume Bytes = 500G
107   Action On Purge = Truncate
108   Recycle = yes
109   RecyclePool = "poolgraveyard-<%=@bacula_pool_name%>-<%= @client %>"
110 }
111
112 Pool {
113   Name = "poolgraveyard-<%=@bacula_pool_name%>-<%= @client %>"
114   Pool Type = Backup
115   Storage = "<%=@bacula_filestor_name%>-<%= @client %>"
116   Recycle = yes
117   RecyclePool = "poolgraveyard-<%=@bacula_pool_name%>-<%= @client %>"
118 }