Try to wait for both network-online *and* unbound
authorPeter Palfrader <peter@palfrader.org>
Wed, 25 Sep 2019 14:54:18 +0000 (16:54 +0200)
committerPeter Palfrader <peter@palfrader.org>
Wed, 25 Sep 2019 14:54:18 +0000 (16:54 +0200)
modules/bacula/manifests/client.pp
modules/bacula/manifests/director.pp
modules/bacula/manifests/storage.pp

index 75bae98..98ea8a6 100644 (file)
@@ -100,7 +100,7 @@ class bacula::client(
     ensure  => $ensure,
     content => @(EOF),
       [Unit]
     ensure  => $ensure,
     content => @(EOF),
       [Unit]
-      After=unbound.service
+      After=network-online.target unbound.service
       [Service]
       ExecStart=
       ExecStart=/usr/sbin/bacula-fd -c $CONFIG -f -u bacula -k
       [Service]
       ExecStart=
       ExecStart=/usr/sbin/bacula-fd -c $CONFIG -f -u bacula -k
index 93e38d8..26ed44f 100644 (file)
@@ -63,7 +63,7 @@ class bacula::director(
   dsa_systemd::override { 'bacula-director':
     content => @(EOT)
       [Unit]
   dsa_systemd::override { 'bacula-director':
     content => @(EOT)
       [Unit]
-      After=unbound.service
+      After=network-online.target unbound.service
       | EOT
   }
 
       | EOT
   }
 
index 4f63f4b..8128fde 100644 (file)
@@ -27,7 +27,7 @@ class bacula::storage (
   dsa_systemd::override { 'bacula-sd':
     content => @(EOT)
       [Unit]
   dsa_systemd::override { 'bacula-sd':
     content => @(EOT)
       [Unit]
-      After=unbound.service
+      After=network-online.target unbound.service
       [Service]
       Group=bacula
       SupplementaryGroups=ssl-cert
       [Service]
       Group=bacula
       SupplementaryGroups=ssl-cert