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
This commit is contained in:
Colleen Murphy 2018-09-11 23:37:57 +02:00
parent db3962c1a0
commit 327523ddd8
1 changed files with 1 additions and 0 deletions

View File

@ -37,6 +37,7 @@ define asterisk::function::customdir(
purge => true,
recurse => true,
require => File[$basedir],
before => Service['asterisk'],
}
}