From c588e230e19997c22915802f30379f2c1f82f585 Mon Sep 17 00:00:00 2001 From: Tobias Urdin Date: Thu, 22 Nov 2018 10:29:25 +0100 Subject: [PATCH] Install heat cron job after all heat packages Noticed this in integration job on Ubuntu Bionic. 2018-11-22 06:45:17 +0000 Puppet (err): Could not prefetch cron provider 'crontab' target 'heat': Could not read crontab for heat: Execution of 'crontab -u heat -l' returned 1: crontab: user `heat' unknown. Treating as empty The user is probably not installed in the common package so changing the dep chaining to wait for all the heat-package tagged packages. Change-Id: I0245b91a475a37a86297e888232c8a3e4b7d119e --- manifests/cron/purge_deleted.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/cron/purge_deleted.pp b/manifests/cron/purge_deleted.pp index a0d148b2..e86e5df7 100644 --- a/manifests/cron/purge_deleted.pp +++ b/manifests/cron/purge_deleted.pp @@ -82,5 +82,5 @@ class heat::cron::purge_deleted ( weekday => $weekday } - Package['heat-common'] -> Cron['heat-manage purge_deleted'] + Package<| tag == 'heat-package' |> -> Cron['heat-manage purge_deleted'] }