From 40857d23443b69cd76b1c198aa620b27e82238cf Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 22 Feb 2019 00:09:13 -0500 Subject: mailu needs more ram --- bin/helpers/functions.sh | 7 ++++--- bin/helpers/launch-base | 2 +- bin/helpers/launch-mail | 2 +- bin/helpers/launch-tozt | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) (limited to 'bin') diff --git a/bin/helpers/functions.sh b/bin/helpers/functions.sh index a606a9b..e4ce5a4 100644 --- a/bin/helpers/functions.sh +++ b/bin/helpers/functions.sh @@ -5,9 +5,10 @@ conf_repo="git://github.com/doy/puppet-tozt" create_droplet() { _name="$1" + _size="$2" - if [ -n "${2:-}" ]; then - _volume_opt="--volumes $2" + if [ -n "${3:-}" ]; then + _volume_opt="--volumes $3" else _volume_opt="" fi @@ -21,7 +22,7 @@ create_droplet() { "$_name" \ --image debian-9-x64 \ --region nyc3 \ - --size s-1vcpu-1gb \ + --size ${_size} \ --ssh-keys 23160354 \ $_volume_opt \ --format ID,PublicIPv4 \ diff --git a/bin/helpers/launch-base b/bin/helpers/launch-base index 7ca91cd..f00a7d9 100755 --- a/bin/helpers/launch-base +++ b/bin/helpers/launch-base @@ -5,7 +5,7 @@ set -o pipefail # shellcheck source=functions.sh . "$(dirname "$0")/functions.sh" -create_droplet base +create_droplet base s-1vcpu-1gb provision_droplet base diff --git a/bin/helpers/launch-mail b/bin/helpers/launch-mail index 634c86a..abbd073 100755 --- a/bin/helpers/launch-mail +++ b/bin/helpers/launch-mail @@ -5,7 +5,7 @@ set -o pipefail # shellcheck source=functions.sh . "$(dirname "$0")/functions.sh" -create_droplet mail 5e4d8c7b-f840-11e8-b59e-0a58ac1467fb +create_droplet mail s-1vcpu-2gb 5e4d8c7b-f840-11e8-b59e-0a58ac1467fb echo "Creating DNS entry for $ip..." record_id=$(doctl \ diff --git a/bin/helpers/launch-tozt b/bin/helpers/launch-tozt index 006cc1d..d9eca39 100755 --- a/bin/helpers/launch-tozt +++ b/bin/helpers/launch-tozt @@ -5,7 +5,7 @@ set -o pipefail # shellcheck source=functions.sh . "$(dirname "$0")/functions.sh" -create_droplet tozt 4206344e-cf4f-11e8-a5a7-0a58ac1465db +create_droplet tozt s-1vcpu-1gb 4206344e-cf4f-11e8-a5a7-0a58ac1465db echo "Assigning floating ip to tozt..." # XXX this returns an error for some reason, but actually succeeds: -- cgit v1.2.3-54-g00ecf