Move bacula::bacula_ssl_ca_path to hiera
[mirror/dsa-puppet.git] / modules / bacula / templates / director / dir-per-client.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 = <%= @client_name %>
11
12   Pool = "poolfull-<%= @pool_name %>"
13   Differential Backup Pool = "pooldiff-<%= @pool_name %>"
14   Incremental Backup Pool = "poolinc-<%= @pool_name %>"
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 = <%= @client_name %>
27   Address = <%= @client %>
28   FDPort = <%= @port_fd %>
29   Catalog = MyCatalog
30   Password = "<%= @client_secret %>"
31   File Retention = <%= @file_retention %>
32   Job Retention = <%= @job_retention %>
33   AutoPrune = yes
34
35   TLS Enable = yes
36   TLS Require = yes
37   <%= scope['bacula::bacula_tls_ca_certificate_file'] %>
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