sd and fd look up hostnames, so start them only after the network is online -a
authorPeter Palfrader <peter@palfrader.org>
Wed, 25 Sep 2019 09:18:11 +0000 (11:18 +0200)
committerPeter Palfrader <peter@palfrader.org>
Wed, 25 Sep 2019 09:18:11 +0000 (11:18 +0200)
modules/bacula/manifests/client.pp
modules/bacula/manifests/storage.pp

index 8890cb7..3837699 100644 (file)
@@ -85,6 +85,13 @@ class bacula::client(
     enable    => $service_enable,
     hasstatus => true,
   }
+  dsa_systemd::override { 'bacula-fd':
+    ensure  => $ensure,
+    content => @(EOF),
+      [Unit]
+      After=network-online.target
+      | EOF
+  }
 
   exec { 'bacula-fd restart-when-idle':
     path        => '/usr/bin:/usr/sbin:/bin:/sbin',
index 0a445e0..a9dc565 100644 (file)
@@ -26,6 +26,8 @@ class bacula::storage (
   }
   dsa_systemd::override { 'bacula-sd':
     content => @(EOT)
+      [Unit]
+      After=network-online.target
       [Service]
       Group=bacula
       SupplementaryGroups=ssl-cert