diff options
author | Jesse Luehrs <doy@tozt.net> | 2023-03-27 22:56:13 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2023-03-27 22:56:13 -0400 |
commit | 95aa55f06f4c148640537d8135c513a1a4a7da12 (patch) | |
tree | f89df2bed59e4a68b045edf7bf893c8efd3f6fb9 /bin | |
parent | e04ae5b511181c5955a8672005c4e96fe04fed63 (diff) | |
download | puppet-tozt-95aa55f06f4c148640537d8135c513a1a4a7da12.tar.gz puppet-tozt-95aa55f06f4c148640537d8135c513a1a4a7da12.zip |
remove tozt from existing scripts
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/helpers/launch-tozt | 23 | ||||
-rwxr-xr-x | bin/launch | 2 | ||||
-rwxr-xr-x | bin/terminate | 5 |
3 files changed, 2 insertions, 28 deletions
diff --git a/bin/helpers/launch-tozt b/bin/helpers/launch-tozt deleted file mode 100755 index 4777472..0000000 --- a/bin/helpers/launch-tozt +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env bash -set -eu -set -o pipefail - -# shellcheck source=functions.sh -. "$(dirname "$0")/functions.sh" - -create_droplet tozt.net s-1vcpu-2gb 4206344e-cf4f-11e8-a5a7-0a58ac1465db - -echo "Assigning floating ip to tozt..." -# XXX this returns an error for some reason, but actually succeeds: -# Error: could not assign IP to droplet: json: cannot unmarshal number -# 2328181259 into Go struct field Action.resource_id of type int -doctl \ - -t "$(cat /mnt/digitalocean)" \ - compute floating-ip-action assign \ - 138.197.58.11 \ - "$id" || true -echo "Done assigning floating ip" - -provision_droplet tozt - -echo "Done" @@ -6,7 +6,7 @@ script_path="$(realpath "$(dirname "$0")")" secrets_bin="${script_path}/secrets" case "$1" in -base | tozt | algo | mail | partofme) +base | algo | mail | partofme) "$secrets_bin" open trap '"$secrets_bin" close' EXIT "$(dirname "$0")/helpers/launch-$1" diff --git a/bin/terminate b/bin/terminate index 202e236..e760c09 100755 --- a/bin/terminate +++ b/bin/terminate @@ -6,13 +6,10 @@ script_path="$(realpath "$(dirname "$0")")" secrets_bin="${script_path}/secrets" case "$1" in -tozt | algo | mail | mail2) +algo | mail | mail2) "$secrets_bin" open trap '"$secrets_bin" close' EXIT case "$1" in - tozt) - hostname=tozt.net - ;; algo) hostname=algo.tozt.net ;; |