mirror of https://github.com/zulip/zulip.git
puppet: Generalize docker detection.
This also has the benefit of detecting zulip::dockervoyager as well as zulip::profile::docker.
This commit is contained in:
parent
0f25acc7b3
commit
91cb0988e1
|
@ -35,13 +35,11 @@ class zulip::supervisor {
|
||||||
ensure => absent,
|
ensure => absent,
|
||||||
}
|
}
|
||||||
|
|
||||||
# In the dockervoyager environment, we don't want/need supervisor to be started/stopped
|
# In the docker environment, we don't want/need supervisor to be
|
||||||
# /bin/true is used as a decoy command, to maintain compatibility with other
|
# started/stopped /bin/true is used as a decoy command, to maintain
|
||||||
# code using the supervisor service.
|
# compatibility with other code using the supervisor service.
|
||||||
#
|
|
||||||
# This logic is definitely a hack, but it's less bad than the old hack :(
|
|
||||||
$puppet_classes = zulipconf('machine', 'puppet_classes', undef)
|
$puppet_classes = zulipconf('machine', 'puppet_classes', undef)
|
||||||
if $puppet_classes == 'zulip::dockervoyager' {
|
if 'docker' in $puppet_classes {
|
||||||
service { $supervisor_service:
|
service { $supervisor_service:
|
||||||
ensure => running,
|
ensure => running,
|
||||||
require => [
|
require => [
|
||||||
|
|
Loading…
Reference in New Issue