diff --git a/tools/setup/install-aws-server b/tools/setup/install-aws-server index fb7f078c9b..db25078f3a 100755 --- a/tools/setup/install-aws-server +++ b/tools/setup/install-aws-server @@ -2,33 +2,68 @@ set -eu set -o pipefail -SERVER=${1:-} -ROLES=${2:-} -BRANCH=${3:-} -if [ -z "$SERVER" ] || [ -z "$ROLES" ]; then - echo "USAGE: $0 server roles [branch]" - echo - echo "Installs an empty Ubuntu server in AWS with a Zulip server role." - echo - echo " * server is the local part of the hostname (e.g. postgres0)" - echo " * roles is a comma-separated list of Puppet profile names; these" - echo " will get 'zulip_ops::profile::' prepended to them, and passed" - echo " to scripts/lib/install -- e.g. 'postgresql'" - echo " * branch is used to override the default branch to install from." - echo - echo "Reads configuration from $HOME/.zulip-install-server.conf, which should look like:" - echo - echo "[repo]" - echo "repo_url=git@github.com:zulip/zulip.git" - echo "default_branch=main" - echo "[aws]" - echo "zone_id=Z2U988IEXAMPLE" - echo "security_groups=sg-01234567" - echo "image_id=ami-0dc45e3d9be6ab7b5" - echo "instance_type=m4.large" - echo "ssh_secret_id=prod/git/deploy" +usage() { + cat <