5f67f7166a6ebe4057a585c4e599308e0cb58a82
[mirror/dsa-puppet.git] / modules / bacula / templates / director / dir-per-client-from-storage.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 ########################################################################
8 # Storage config                                                       #
9 ########################################################################
10
11 Storage {
12   Name = "<%= @storage_name %>"
13   Address = <%= @storage_address %>
14   SDPort = <%= @port_sd %>
15   Password = "<%= @storage_secret %>"
16   Device = "<%= @storage_device_name %>"
17   Media Type = "<%= @storage_media_type_name %>"
18   Maximum Concurrent Jobs = 10
19
20   TLS Enable = yes
21   TLS Require = yes
22   TLS CA Certificate File = "<%= @bacula_ca_path %>"
23   # This is a client certificate, used by the director to connect to the storage daemon
24   TLS Certificate = "<%= @bacula_ssl_client_cert %>"
25   TLS Key = "<%= @bacula_ssl_client_key %>"
26 }
27
28 ########################################################################
29 # Pool definition                                                      #
30 ########################################################################
31 Pool {
32   Name = "poolfull-<%=@pool_name %>"
33   Pool Type = Backup
34   Storage = "<%= @storage_name %>"
35   AutoPrune = yes
36   Volume Retention = <%= @volume_retention_full %>
37   Label Format = "<%= @pool_name %>-full.${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}_${Hour:p/2/0/r}:${Minute:p/2/0/r}"
38   Volume Use Duration = 23h
39   Maximum Volume Jobs = 1
40   Maximum Volume Bytes = 500G
41   Action On Purge = Truncate
42   Recycle = yes
43   RecyclePool = "poolgraveyard-<%= @pool_name %>"
44 }
45
46 Pool {
47   Name = "pooldiff-<%= @pool_name %>"
48   Pool Type = Backup
49   Storage = "<%= @storage_name %>"
50   AutoPrune = yes
51   Volume Retention = <%= @volume_retention_diff %>
52   Label Format = "<%= @pool_name %>-diff.${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}_${Hour:p/2/0/r}:${Minute:p/2/0/r}"
53   Volume Use Duration = 23h
54   Maximum Volume Jobs = 1
55   Maximum Volume Bytes = 500G
56   Action On Purge = Truncate
57   Recycle = yes
58   RecyclePool = "poolgraveyard-<%= @pool_name %>"
59 }
60
61 Pool {
62   Name = "poolinc-<%= @pool_name %>"
63   Pool Type = Backup
64   Storage = "<%= @storage_name %>"
65   AutoPrune = yes
66   Volume Retention = <%= @volume_retention_inc %>
67   Label Format = "<%= @pool_name %>-inc.${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}_${Hour:p/2/0/r}:${Minute:p/2/0/r}"
68   Volume Use Duration = 23h
69   Maximum Volume Jobs = 1
70   Maximum Volume Bytes = 500G
71   Action On Purge = Truncate
72   Recycle = yes
73   RecyclePool = "poolgraveyard-<%= @pool_name %>"
74 }
75
76 Pool {
77   Name = "poolgraveyard-<%=@pool_name %>"
78   Pool Type = Backup
79   Storage = "<%= @storage_name %>"
80   Recycle = yes
81   RecyclePool = "poolgraveyard-<%= @pool_name %>"
82 }