package { ['bacula-fd']:
ensure => installed
}
- include stretch::network_online
service { 'bacula-fd':
ensure => running,
}
systemd::override { 'bacula-fd':
content => @(EOT)
- [Unit]
- After=network-online.target unbound.service
[Service]
ExecStart=
ExecStart=/usr/sbin/bacula-fd -c $CONFIG -f -u bacula -k
port = <%= @bacula_client_port %>
}
<%- end -%>
- <%- if scope.lookupvar('site::nodeinfo')['misc']['has_v6_ldap'] -%>
+ <%- scope.lookupvar('site::nodeinfo')['misc']['v6_ldap'].each do |addr| -%>
ipv6 = {
- addr = <%= @fqdn %>
+ addr = <%= addr %>
port = <%= @bacula_client_port %>
}
<%- end -%>