summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-02-22 00:09:13 -0500
committerJesse Luehrs <doy@tozt.net>2019-02-22 00:09:13 -0500
commit40857d23443b69cd76b1c198aa620b27e82238cf (patch)
treea3923c0abefed77c52a7ba41b39bd619571347fd /bin
parenta4a4e82c98222d11d4c508247d7e6a73dba99abb (diff)
downloadpuppet-tozt-40857d23443b69cd76b1c198aa620b27e82238cf.tar.gz
puppet-tozt-40857d23443b69cd76b1c198aa620b27e82238cf.zip
mailu needs more ram
Diffstat (limited to 'bin')
-rw-r--r--bin/helpers/functions.sh7
-rwxr-xr-xbin/helpers/launch-base2
-rwxr-xr-xbin/helpers/launch-mail2
-rwxr-xr-xbin/helpers/launch-tozt2
4 files changed, 7 insertions, 6 deletions
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: