mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
Puppet 6.x and above moved the `cron` resource type out of core Puppet, into a "cron_core" module[^1]; thus Debian 12 and Ubuntu 24.04, with the newer Puppet, fail to compile if backups are configured: ``` Error: Evaluation Error: Error while evaluating a Resource Statement, Unknown resource type: 'cron' (file: /home/zulip/deployments/current/puppet/zulip/manifests/postgresql_backups.pp, line: 32, column: 3) on node zulip.example ``` However, we only use the `cron` package to assert that we no longer use it, for installs which are coming up from Zulip 4.x where it _was_ used. Since Zulip 4.x does not support Ubuntu 24.04 or Debian 12, having Puppet >= 6.x means that the cron must have been previously removed in a previous upgrade, and we can skip the block. In `main`, this block is removed entirely. [^1]: https://forge.puppet.com/modules/puppetlabs/cron_core/readme