mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
install: Add PUPPET_CLASSES variable.
This commit is contained in:
@@ -9,6 +9,10 @@ APT_OPTIONS="${APT_OPTIONS:-}"
|
|||||||
ADDITIONAL_PACKAGES=${ADDITIONAL_PACKAGES:-}
|
ADDITIONAL_PACKAGES=${ADDITIONAL_PACKAGES:-}
|
||||||
# Deployment type is almost always voyager.
|
# Deployment type is almost always voyager.
|
||||||
DEPLOYMENT_TYPE="${DEPLOYMENT_TYPE:-voyager}"
|
DEPLOYMENT_TYPE="${DEPLOYMENT_TYPE:-voyager}"
|
||||||
|
# Comma-separated list of puppet manifests to install. default is
|
||||||
|
# zulip::voyager for an all-in-one system or zulip::dockervoyager for
|
||||||
|
# Docker. Use e.g. zulip::app_frontend for a Zulip frontend server.
|
||||||
|
PUPPET_CLASSES="${PUPPET_CLASSES:-zulip::voyager}"
|
||||||
|
|
||||||
# First, install any updates from the apt repo that may be needed
|
# First, install any updates from the apt repo that may be needed
|
||||||
wget -O /root/zulip-ppa.asc https://zulip.com/dist/keys/zulip-ppa.asc
|
wget -O /root/zulip-ppa.asc https://zulip.com/dist/keys/zulip-ppa.asc
|
||||||
@@ -23,7 +27,7 @@ apt-get -y dist-upgrade $APT_OPTIONS
|
|||||||
apt-get install -y puppet git python $ADDITIONAL_PACKAGES
|
apt-get install -y puppet git python $ADDITIONAL_PACKAGES
|
||||||
|
|
||||||
mkdir -p /etc/zulip
|
mkdir -p /etc/zulip
|
||||||
echo -e "[machine]\npuppet_classes = zulip::voyager\ndeploy_type = $DEPLOYMENT_TYPE" > /etc/zulip/zulip.conf
|
echo -e "[machine]\npuppet_classes = $PUPPET_CLASSES\ndeploy_type = $DEPLOYMENT_TYPE" > /etc/zulip/zulip.conf
|
||||||
/root/zulip/scripts/zulip-puppet-apply -f
|
/root/zulip/scripts/zulip-puppet-apply -f
|
||||||
|
|
||||||
# These server restarting bits should be moveable into puppet-land, ideally
|
# These server restarting bits should be moveable into puppet-land, ideally
|
||||||
|
|||||||
Reference in New Issue
Block a user