Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

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

Alex Vandiver45fc5c36dfd6
diff --git a/puppet/zulip/manifests/local_mailserver.pp b/puppet/zulip/manifests/local_mailserver.pp
index e797ecfe572..a8ce3a264ed 100644
--- a/puppet/zulip/manifests/local_mailserver.pp
+++ b/puppet/zulip/manifests/local_mailserver.pp
@@ -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',