Add support for additional disks for config-local (#5030) (#5040)

* Add support for additional disks for config-local

(cherry picked from commit e4861f52e0)
This commit is contained in:
mergify[bot]
2019-07-12 10:01:07 -06:00
committed by Dan Albert
parent 086e20f6c7
commit 81dbe3c49b
7 changed files with 121 additions and 4 deletions

View File

@@ -28,6 +28,7 @@ maybeStakeNodesInGenesisBlock=
maybeExternalPrimordialAccountsFile=
maybeLamports=
maybeLetsEncrypt=
maybeFullnodeAdditionalDiskSize=
usage() {
exitcode=0
@@ -80,6 +81,8 @@ Deploys a CD testnet
- If set, will not fetch logs from remote nodes
--letsencrypt [dns name]
- Attempt to generate a TLS certificate using this DNS name
--fullnode-additional-disk-size-gb [number]
- Size of additional disk in GB for all fullnodes
Note: the SOLANA_METRICS_CONFIG environment variable is used to configure
metrics
@@ -113,6 +116,9 @@ while [[ -n $1 ]]; do
elif [[ $1 = --letsencrypt ]]; then
maybeLetsEncrypt="$1 $2"
shift 2
elif [[ $1 = --fullnode-additional-disk-size-gb ]]; then
maybeFullnodeAdditionalDiskSize="$1 $2"
shift 2
else
usage "Unknown long option: $1"
fi
@@ -292,6 +298,11 @@ if ! $skipCreate; then
create_args+=(-f)
fi
if [[ -n $maybeFullnodeAdditionalDiskSize ]]; then
# shellcheck disable=SC2206 # Do not want to quote
create_args+=($maybeFullnodeAdditionalDiskSize)
fi
time net/"$cloudProvider".sh create "${create_args[@]}"
else
echo "--- $cloudProvider.sh config"