X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fbacula%2Ftemplates%2Fbacula-fd.conf.erb;h=6f930d56979dd13866c9c24c2d4d955ed2715dbe;hb=4f011cbc16fddc4f475bf40ae11e3407bd4ac1dc;hp=eeb57888107b7f67d2c10a21ca7bf56aa7d04832;hpb=7a10c64995530d782139c05bbe4955ec1e4a180b;p=mirror%2Fdsa-puppet.git diff --git a/modules/bacula/templates/bacula-fd.conf.erb b/modules/bacula/templates/bacula-fd.conf.erb index eeb578881..6f930d569 100644 --- a/modules/bacula/templates/bacula-fd.conf.erb +++ b/modules/bacula/templates/bacula-fd.conf.erb @@ -15,13 +15,13 @@ FileDaemon { ipv4 = { # use the hostname rather than the IP address from LDAP, # as /etc/hosts might have a better answer in case of natted hosts. - addr = <%= @fqdn %> + addr = <%= @client %> port = <%= @port_fd %> } <%- end -%> <%- if @has_ipv6 -%> ipv6 = { - addr = <%= addr %> + addr = <%= @client %> port = <%= @port_fd %> } <%- end -%> @@ -37,15 +37,11 @@ FileDaemon { TLS Enable = yes TLS Require = yes - TLS CA Certificate File = "<%= @bacula_ca_path %>" - # This is a client certificate, used by the client to connect to the storage daemon - TLS Certificate = "<%= @bacula_ssl_client_cert %>" - TLS Key = "<%= @bacula_ssl_client_key %>" + <%= scope['bacula::bacula_tls_ca_certificate_file'] %> + <%= scope['bacula::bacula_tls_client_certificate'] %> + <%= scope['bacula::bacula_tls_client_key'] %> -<%- if scope.lookupvar('deprecated::nodeinfo')['hoster']['name'] == "brown" -%> - # broken firewall Heartbeat Interval = 60 -<%- end -%> } @|"sh -c 'for f in /etc/bacula/fd-conf.d/*.conf ; do echo @${f} ; done'"