bacula-fd: listen on both ipv4 and ipv6
[mirror/dsa-puppet.git] / modules / bacula / templates / bacula-fd.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 # List Directors who are permitted to contact this File daemon
8 Director {
9   Name = <%= @bacula_director_name %>
10   Password = "<%= @bacula_client_secret %>"
11
12   TLS Enable = yes
13   TLS Require = yes
14   TLS Verify Peer = yes
15   TLS Allowed CN = "clientcerts/<%= @bacula_director_address %>"
16   TLS CA Certificate File = "<%= @bacula_ca_path %>"
17   # This is a server certificate, used for incoming director connections.
18   TLS Certificate = "<%= @bacula_ssl_server_cert %>"
19   TLS Key = "<%= @bacula_ssl_server_key %>"
20 }
21
22 # "Global" File daemon configuration specifications
23 FileDaemon {
24   Name = <%= @bacula_client_name %>
25   FDAddresses = {
26     # bacula, on Debian 9 (stretch) does not resolve a single name
27     # to both v4 and v6 addresses.  Se we can't just say
28     # ip = { addr = <hostname> }.  Boo.
29     <%- if scope.lookupvar('site::nodeinfo')['misc']['has_v4_ldap'] -%>
30     ipv4 = {
31       # use the hostname rather than the IP address from LDAP,
32       # as /etc/hosts might have a better answer in case of natted hosts.
33       addr = <%= @fqdn %>
34       port = <%= @bacula_client_port %>
35     }
36     <%- end -%>
37     <%- if scope.lookupvar('site::nodeinfo')['misc']['has_v6_ldap'] -%>
38     ipv6 = {
39       addr = <%= @fqdn %>
40       port = <%= @bacula_client_port %>
41     }
42     <%- end -%>
43   }
44   WorkingDirectory = /var/lib/bacula
45   Pid Directory = /var/run/bacula
46   Maximum Concurrent Jobs = 20
47   #Maximum Network Buffer Size = 524288
48
49   TLS Enable = yes
50   TLS Require = yes
51   TLS CA Certificate File = "<%= @bacula_ca_path %>"
52   # This is a client certificate, used by the client to connect to the storage daemon
53   TLS Certificate = "<%= @bacula_ssl_client_cert %>"
54   TLS Key = "<%= @bacula_ssl_client_key %>"
55
56 <%- if scope.lookupvar('site::nodeinfo')['hoster']['name'] == "brown" -%>
57   # broken firewall
58   Heartbeat Interval = 60
59 <%- end -%>
60 }
61
62 # Send all messages except skipped files back to Director
63 Messages {
64   Name = Standard
65   director = <%= @bacula_director_name %> = all, !skipped, !restored
66 }