Try to avoid reserved site keyword
[mirror/dsa-puppet.git] / modules / bacula / templates / bacula-sd.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 Storage {
8   Name = <%= @bacula_storage_name %>
9   SDAddresses = {
10     # bacula, on Debian 9 (stretch), does not resolve a single name
11     # to both v4 and v6 addresses.  Se we can't just say
12     # ip = { addr = <hostname> }.  Boo.
13     <%- if scope.lookupvar('deprecated::nodeinfo')['misc']['has_v4_ldap'] -%>
14     ipv4 = {
15       # use the hostname rather than the IP address from LDAP,
16       # as /etc/hosts might have a better answer in case of natted hosts.
17       addr = <%= @bacula_storage_address %>
18       port = <%= @bacula_storage_port %>
19     }
20     <%- end -%>
21     <%- if scope.lookupvar('deprecated::nodeinfo')['misc']['has_v6_ldap'] -%>
22     ipv6 = {
23       addr = <%= @bacula_storage_address %>
24       port = <%= @bacula_storage_port %>
25     }
26     <%- end -%>
27   }
28   WorkingDirectory = "/var/lib/bacula"
29   Pid Directory = "/run/bacula"
30   Plugin Directory = "/usr/lib/bacula"
31   Maximum Concurrent Jobs = 21
32   Heartbeat Interval = 60
33
34   TLS Enable = yes
35   TLS Require = yes
36   TLS Verify Peer = yes
37   # TLS Allowed CN = "clientcerts/<%= @bacula_director_address %>"
38   TLS CA Certificate File = "<%= @bacula_ca_path %>"
39   # This is a server certificate, used for incoming connections.
40   TLS Certificate = "<%= @bacula_ssl_server_cert %>"
41   TLS Key = "<%= @bacula_ssl_server_key %>"
42 }
43
44 # List Directors who are permitted to contact Storage daemon
45 #
46 Director {
47   Name = <%= @bacula_director_name %>
48   Password = "<%= @bacula_storage_secret %>"
49
50   TLS Enable = yes
51   TLS Require = yes
52   TLS Verify Peer = yes
53   TLS Allowed CN = "clientcerts/<%= @bacula_director_address %>"
54   TLS CA Certificate File = "<%= @bacula_ca_path %>"
55   # This is a server certificate, used for incoming director connections.
56   TLS Certificate = "<%= @bacula_ssl_server_cert %>"
57   TLS Key = "<%= @bacula_ssl_server_key %>"
58 }
59
60 # Send all messages to the Director,
61 # mount messages also are sent to the email address
62 #
63 Messages {
64   Name = Standard
65   director = <%= @bacula_director_name %> = all
66 }
67
68 Device {
69   Name = "<%= @bacula_filestor_device %>-catalog"
70   Media Type = "<%= @bacula_filestor_name %>-catalog"
71   Archive Device = "<%= @bacula_backup_path %>/Catalog"
72   LabelMedia = yes;
73   Random Access = Yes;
74   AutomaticMount = yes;
75   RemovableMedia = no;
76   AlwaysOpen = no;
77 }
78
79 @|"sh -c 'for f in /etc/bacula/storage-conf.d/*.conf ; do echo @${f} ; done'"