From 2bc65f1346ee9e0d5e8157aab09ed0e4f487373a Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Tue, 7 Aug 2018 10:17:05 +0200 Subject: [PATCH] bacula-fd: se ipv6 address from ldap since DNS during boot is icky --- modules/bacula/manifests/client.pp | 3 --- modules/bacula/templates/bacula-fd.conf.erb | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/modules/bacula/manifests/client.pp b/modules/bacula/manifests/client.pp index 7eedbf5bc..8c33181b2 100644 --- a/modules/bacula/manifests/client.pp +++ b/modules/bacula/manifests/client.pp @@ -18,7 +18,6 @@ class bacula::client inherits bacula { package { ['bacula-fd']: ensure => installed } - include stretch::network_online service { 'bacula-fd': ensure => running, @@ -66,8 +65,6 @@ class bacula::client inherits bacula { } 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 diff --git a/modules/bacula/templates/bacula-fd.conf.erb b/modules/bacula/templates/bacula-fd.conf.erb index 38f13ac7f..0be7a28d8 100644 --- a/modules/bacula/templates/bacula-fd.conf.erb +++ b/modules/bacula/templates/bacula-fd.conf.erb @@ -34,9 +34,9 @@ FileDaemon { 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 -%> -- 2.20.1