Skip to content

Commit

Permalink
cron puppetdb-dlo-cleanup requires package
Browse files Browse the repository at this point in the history
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
  • Loading branch information
glennaaldering authored and h0tw1r3 committed Dec 9, 2021
1 parent 3afd693 commit 5eca5fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions manifests/server.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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],
}
}
}
Expand Down

0 comments on commit 5eca5fd

Please sign in to comment.