Try after unbound.service instead of network-online.target
authorPeter Palfrader <peter@palfrader.org>
Wed, 25 Sep 2019 09:20:39 +0000 (11:20 +0200)
committerPeter Palfrader <peter@palfrader.org>
Wed, 25 Sep 2019 09:20:49 +0000 (11:20 +0200)
Doing the after network-online.target was not sufficient.

: Config error: Cannot add hostname(adayevskaya.debian.org) and port(9102) to addrlist (Cannot resolve hostname(adayevskaya.debian.org) Temporary failure in name resolution)
:             : line 23, col 5 of file /etc/bacula/bacula-fd.conf
:     }

modules/bacula/manifests/client.pp
modules/bacula/manifests/storage.pp

index dbd8d44..bfceebf 100644 (file)
@@ -89,7 +89,7 @@ class bacula::client(
     ensure  => $ensure,
     content => @(EOF),
       [Unit]
-      After=network-online.target
+      After=unbound.service
       [Service]
       ExecStart=
       ExecStart=/usr/sbin/bacula-fd -c $CONFIG -f -u bacula -k
index a9dc565..2e7a417 100644 (file)
@@ -27,7 +27,7 @@ class bacula::storage (
   dsa_systemd::override { 'bacula-sd':
     content => @(EOT)
       [Unit]
-      After=network-online.target
+      After=unbound.service
       [Service]
       Group=bacula
       SupplementaryGroups=ssl-cert