mirror of
https://github.com/Noratrieb/vps.git
synced 2026-01-16 17:45:14 +01:00
cleanup
This commit is contained in:
parent
6d47ea67f0
commit
e6e0400c54
11 changed files with 29 additions and 71 deletions
13
newinfra/nix/deploy/deploy-dns.sh
Executable file
13
newinfra/nix/deploy/deploy-dns.sh
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -euxo pipefail
|
||||
|
||||
cd "$(dirname "$(realpath "$0")")/.."
|
||||
|
||||
./deploy/smoke-tests.sh
|
||||
|
||||
colmena apply --on dns1
|
||||
./deploy/smoke-tests.sh
|
||||
|
||||
colmena apply --on dns2
|
||||
./deploy/smoke-tests.sh
|
||||
15
newinfra/nix/deploy/smoke-tests.sh
Executable file
15
newinfra/nix/deploy/smoke-tests.sh
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# This script does a few basic smoke tests to ensure the servers haven't completely died.
|
||||
|
||||
set -eux
|
||||
|
||||
# Check DNS name servers
|
||||
dig @ns1.noratrieb.dev dns1.infra.noratrieb.dev +noall +answer | grep 154.38.163.74
|
||||
dig @ns2.noratrieb.dev dns1.infra.noratrieb.dev +noall +answer | grep 154.38.163.74
|
||||
|
||||
dig @ns1.noratrieb.dev nilstrieb.dev +noall +answer | grep 185.199.108.153
|
||||
dig @ns2.noratrieb.dev nilstrieb.dev +noall +answer | grep 185.199.108.153
|
||||
|
||||
# Check HTTP responses
|
||||
curl --fail https://vps1.infra.noratrieb.dev
|
||||
Loading…
Add table
Add a link
Reference in a new issue