summaryrefslogtreecommitdiffstats
path: root/bin/helpers
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-10-03 12:50:29 -0400
committerJesse Luehrs <doy@tozt.net>2021-10-03 12:50:29 -0400
commit1d1e7008bf646998f2dea9b260843cd1c97524f8 (patch)
treeea955bf6987c9b3d8a413ae30ed2d3e57f46f3c5 /bin/helpers
parentae5d8d3bb27f5cf997b52d1f15d07211c3fe52d1 (diff)
downloadpuppet-tozt-1d1e7008bf646998f2dea9b260843cd1c97524f8.tar.gz
puppet-tozt-1d1e7008bf646998f2dea9b260843cd1c97524f8.zip
remove mail2 config for now
Diffstat (limited to 'bin/helpers')
-rwxr-xr-xbin/helpers/launch-mail234
1 files changed, 0 insertions, 34 deletions
diff --git a/bin/helpers/launch-mail2 b/bin/helpers/launch-mail2
deleted file mode 100755
index 38176d7..0000000
--- a/bin/helpers/launch-mail2
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/usr/bin/env bash
-set -eu
-set -o pipefail
-
-# shellcheck source=functions.sh
-. "$(dirname "$0")/functions.sh"
-
-create_droplet mail2.tozt.net s-1vcpu-1gb 0812b69f-dde4-11eb-9b7e-0a58ac1465ad
-
-echo "Creating DNS entry for $ip..."
-record_id=$(
- doctl \
- -t "$(cat /mnt/digitalocean)" \
- compute domain records list \
- tozt.net \
- --format Name,Type,ID \
- --no-header |
- grep '^smtp2 \+A ' |
- awk '{print $3}'
-)
-doctl \
- -t "$(cat /mnt/digitalocean)" \
- compute domain records update \
- tozt.net \
- --record-id "$record_id" \
- --record-type A \
- --record-name smtp2 \
- --record-data "$ip" \
- --record-ttl 600
-echo "Done creating DNS entry"
-
-provision_droplet mail2
-
-echo "Done"