puppet: Add a postfix.uninstall flag to allow skipping that step.

This commit is contained in:
Alex Vandiver 2025-11-04 15:30:16 +00:00 committed by Tim Abbott
parent 649a518b19
commit 45fc5c36df

View File

@ -1,18 +1,20 @@
class zulip::local_mailserver {
include zulip::snakeoil
package { 'postfix':
# TODO/compatibility: We can remove this when upgrading directly
# from 10.x is no longer possible. We do not use "purged" here,
# since that would remove config files, which users may have had
# installed.
ensure => absent,
if zulipconf('postfix', 'uninstall', true) {
package { 'postfix':
# TODO/compatibility: We can remove this when upgrading directly
# from 10.x is no longer possible. We do not use "purged" here,
# since that would remove config files, which users may have had
# installed.
ensure => absent,
before => Service[$zulip::common::supervisor_service],
}
}
file { "${zulip::common::supervisor_conf_dir}/email-mirror.conf":
ensure => file,
require => [
Package[supervisor],
Package[postfix],
],
owner => 'root',
group => 'root',