From 5eca5fd11e1d9c9a6096227a29ac6d6b15fed839 Mon Sep 17 00:00:00 2001 From: Glenn Aaldering Date: Mon, 8 Feb 2021 12:25:52 +0100 Subject: [PATCH] cron puppetdb-dlo-cleanup requires package Fixes the following error Error: /Stage[main]/Puppetdb::Server/Cron[puppetdb-dlo-cleanup]: Could not evaluate: Cannot write the puppetdb user's crontab: The user does not exist --- manifests/server.pp | 1 + 1 file changed, 1 insertion(+) diff --git a/manifests/server.pp b/manifests/server.pp index 6cae51d5..95f878c1 100644 --- a/manifests/server.pp +++ b/manifests/server.pp @@ -664,6 +664,7 @@ weekday => '*', command => "/usr/bin/find ${vardir}/stockpile/discard/ -type f -mtime ${dlo_max_age} -delete", user => $puppetdb_user, + require => Package[$puppetdb_package], } } }