Try to move bacula fd port config to the client class
[mirror/dsa-puppet.git] / modules / bacula / templates / bacula-fd.conf.erb
index 2952195..861209d 100644 (file)
@@ -31,13 +31,13 @@ FileDaemon {
       # 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 %>
-      port = <%= @bacula_client_port %>
+      port = <%= @port_fd %>
     }
     <%- end -%>
     <%- scope.lookupvar('deprecated::nodeinfo')['misc']['v6_ldap'].each do |addr| -%>
     ipv6 = {
       addr = <%= addr %>
-      port = <%= @bacula_client_port %>
+      port = <%= @port_fd %>
     }
     <%- end -%>
   }