Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
install: Move PUPPET_CLASSES env var to --puppet-classes argument.
Alex Vandiver7187146422c7
diff --git a/docs/production/deployment.md b/docs/production/deployment.mdindex fe2b79d6c4d..51c79382928 100644--- a/docs/production/deployment.md+++ b/docs/production/deployment.md@@ -199,7 +199,7 @@ For example, to install a Zulip Redis server on a machine, you can runthe following after unpacking a Zulip production release tarball:```bash-env PUPPET_CLASSES=zulip::profile::redis ./scripts/setup/install+./scripts/setup/install --puppet-classes zulip::profile::redis```All puppet modules under `zulip::profile` are allowed to be configured@@ -234,10 +234,10 @@ Follow the [standard instructions](install.md), with modified `install`arguments:```bash-export PUPPET_CLASSES=zulip::profile::standalone_nodb./zulip-server-*/scripts/setup/install --certbot \--email=YOUR_EMAIL --hostname=YOUR_HOSTNAME \- --no-init-db --postgresql-missing-dictionaries+ --puppet-classes=zulip::profile::standalone_nodb \+ --postgresql-missing-dictionaries```#### Step 2: Create the PostgreSQL databasediff --git a/scripts/lib/install b/scripts/lib/installindex e6884ff6a18..d57ecdcc6e7 100755--- a/scripts/lib/install+++ b/scripts/lib/install@@ -10,12 +10,14 @@ Usage:Options:--hostname=zulip.example.com- The user-accessible domain name for this Zulip server, i.e., what users will type- in their web browser. Required, unless --no-init-db is set and --certbot is not.+ The user-accessible domain name for this Zulip server, i.e.,+ what users will type in their web browser. Required, unless+ --no-init-db or --puppet-classes is set, and --certbot is not.+- The email address of the person or team who should get support and error emails- from this Zulip server. Required, unless --no-init-db is set and --certbot is- not.+ The email address of the person or team who should get support+ and error emails from this Zulip server. Required, unless+ --no-init-db or --puppet-classes is set and --certbot is not.--certbotObtains a free SSL certificate for the server using Certbot,@@ -37,9 +39,13 @@ Options:--postgresql-missing-dictionariesSet postgresql.missing_dictionaries, which alters the initial database. Use withcloud managed databases like RDS. Conflicts with --no-overwrite-settings.+--no-init-dbDoes not do any database initialization; use when you already have a Zulipdatabase.+ --puppet-classes+ Comma-separated list of Puppet classes to install; defaults to+ 'zulip:::profile::standalone'. Implies --no-init-db.--no-overwrite-settingsPreserve existing `/etc/zulip` configuration files.@@ -119,6 +125,12 @@ while true; doNO_INIT_DB=1shift;;+ --puppet-classes)+ PUPPET_CLASSES="$2"+ NO_INIT_DB=1+ shift+ shift+ ;;--no-overwrite-settings)NO_OVERWRITE_SETTINGS=1diff --git a/tools/setup/bootstrap-aws-installer b/tools/setup/bootstrap-aws-installerindex 11d4185e235..5977cf05a66 100644--- a/tools/setup/bootstrap-aws-installer+++ b/tools/setup/bootstrap-aws-installer@@ -71,11 +71,8 @@ git clone "$REPO_URL" zulip -b "$BRANCH"git -C zulip checkout "$BRANCH"(- export PUPPET_CLASSES="$FULL_ROLES"export APT_OPTIONS="-o Dpkg::Options::=--force-confnew"- /root/zulip/scripts/setup/install \- --self-signed-cert \- --no-init-db+ /root/zulip/scripts/setup/install --puppet-classes "$FULL_ROLES")# Delete the ubuntu user