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: Generalize docker detection.

Alex Vandiver91cb0988e118
diff --git a/puppet/zulip/manifests/supervisor.pp b/puppet/zulip/manifests/supervisor.pp
index 6eb70e4d2e9..db650a8be31 100644
--- a/puppet/zulip/manifests/supervisor.pp
+++ b/puppet/zulip/manifests/supervisor.pp
@@ -35,13 +35,11 @@ class zulip::supervisor {
ensure => absent,
}
- # In the dockervoyager environment, we don't want/need supervisor to be started/stopped
- # /bin/true is used as a decoy command, to maintain compatibility with other
- # code using the supervisor service.
- #
- # This logic is definitely a hack, but it's less bad than the old hack :(
+ # In the docker environment, we don't want/need supervisor to be
+ # started/stopped /bin/true is used as a decoy command, to maintain
+ # compatibility with other code using the supervisor service.
$puppet_classes = zulipconf('machine', 'puppet_classes', undef)
- if $puppet_classes == 'zulip::dockervoyager' {
+ if 'docker' in $puppet_classes {
service { $supervisor_service:
ensure => running,
require => [