Move bacula::bacula_ssl_ca_path to hiera
[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 # "Global" File daemon configuration specifications
8 FileDaemon {
9   Name = <%= @client_name %>
10   FDAddresses = {
11     # bacula, on Debian 9 (stretch), does not resolve a single name
12     # to both v4 and v6 addresses.  Se we can't just say
13     # ip = { addr = <hostname> }.  Boo.
14     <%- if @has_ipv4 -%>
15     ipv4 = {
16       # use the hostname rather than the IP address from LDAP,
17       # as /etc/hosts might have a better answer in case of natted hosts.
18       addr = <%= @client %>
19       port = <%= @port_fd %>
20     }
21     <%- end -%>
22     <%- if @has_ipv6 -%>
23     ipv6 = {
24       addr = <%= @client %>
25       port = <%= @port_fd %>
26     }
27     <%- end -%>
28   }
29   WorkingDirectory = /var/lib/bacula
30 <%- if scope.call_function('versioncmp', [@lsbmajdistrelease, '8']) <= 0 -%>
31   Pid Directory = /var/run/bacula
32 <%- else -%>
33   Pid Directory = /run/bacula
34   Plugin Directory = /usr/lib/bacula
35 <%- end -%>
36   Maximum Concurrent Jobs = 20
37
38   TLS Enable = yes
39   TLS Require = yes
40   <%= scope['bacula::bacula_tls_ca_certificate_file'] %>
41   # This is a client certificate, used by the client to connect to the storage daemon
42   TLS Certificate = "<%= @bacula_ssl_client_cert %>"
43   TLS Key = "<%= @bacula_ssl_client_key %>"
44
45   Heartbeat Interval = 60
46 }
47
48 @|"sh -c 'for f in /etc/bacula/fd-conf.d/*.conf ; do echo @${f} ; done'"