From 7f7c1646232ddd653d64b550ba875e342d1eb25f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20Ara=C3=B1a=20Cruz?= Date: Sat, 3 Feb 2018 19:16:15 +0100 Subject: [PATCH] Varnish: install the systemd drop-in file after varnish is installed. This way we don't block the first run of the service because of a ExecStartPre compiling a vcl that may not be present yet. --- manifests/varnish.pp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/manifests/varnish.pp b/manifests/varnish.pp index e6c9bb9..3d5d66f 100644 --- a/manifests/varnish.pp +++ b/manifests/varnish.pp @@ -19,7 +19,9 @@ # Restart varnish if the systemd unit has changed. # Note: system::dropin_file is available in systemd >= 1.0.0 if defined('::systemd') and defined(Class['::systemd']) and defined(Resource['::systemd::dropin_file']) { - Systemd::Dropin_file<| unit == 'varnish.service' |> ~> Class['::varnish::service'] + Class['::varnish::install'] + -> Systemd::Dropin_file<| unit == 'varnish.service' |> + ~> Class['::varnish::service'] } }