add dependency on the stunnel service so refresh_stunnel is not run until the service... reload_dependency
authorMicah Anderson <micah@riseup.net>
Tue, 9 Dec 2014 21:24:22 +0000 (16:24 -0500)
committerMicah Anderson <micah@riseup.net>
Tue, 9 Dec 2014 21:24:22 +0000 (16:24 -0500)
manifests/init.pp

index 0d960c0..c5ad70b 100644 (file)
@@ -59,7 +59,7 @@ class stunnel (
 
   exec { 'refresh_stunnel':
     refreshonly => true,
-    require     => [ Package['stunnel'], File[$stunnel_compdir] ],
+    require     => [ Service['stunnel'], Package['stunnel'], File[$stunnel_compdir] ],
     subscribe   => File[$stunnel_compdir],
     command     => "${stunnel_staging}/bin/refresh_stunnel.sh"
   }