From 327523ddd82b699f6a48f29363201e30cfe77024 Mon Sep 17 00:00:00 2001 From: Colleen Murphy Date: Tue, 11 Sep 2018 23:37:57 +0200 Subject: [PATCH] Ensure asterisk refresh happens last The new resource ordering algorithm in puppet 4 may cause the asterisk service to be refreshed before the module directories are in place, which then causes the module reload exec to fail. This patch adds an explicit ordering to the customdir defined type to ensure that the module directory exists before the asterisk service is refreshed. Change-Id: Ic892983476c7da60e4801779dfecc50587a2404d --- manifests/function/customdir.pp | 1 + 1 file changed, 1 insertion(+) diff --git a/manifests/function/customdir.pp b/manifests/function/customdir.pp index 002f864..175d7bb 100644 --- a/manifests/function/customdir.pp +++ b/manifests/function/customdir.pp @@ -37,6 +37,7 @@ define asterisk::function::customdir( purge => true, recurse => true, require => File[$basedir], + before => Service['asterisk'], } }