Decommission decker server

It's been replaced by prometheus running internally, and uptimerobot checking.
This commit is contained in:
Jake Howard
2022-12-09 19:04:13 +00:00
parent 413400cbc6
commit e86ed81102
17 changed files with 0 additions and 170 deletions

View File

@ -4,7 +4,6 @@ resource "local_file" "hosts" {
casey_ip : linode_instance.casey.ip_address,
walker_ip : vultr_instance.walker.main_ip,
grimes_ip : vultr_instance.grimes.main_ip,
decker_ip : linode_instance.decker.ip_address,
}
})
filename = "${path.module}/../ansible/group_vars/all/hosts.yml"

View File

@ -1,45 +0,0 @@
resource "linode_instance" "decker" {
label = "decker"
image = "linode/arch"
region = "eu-central"
type = "g6-nanode-1"
private_ip = true
}
resource "linode_firewall" "decker" {
label = "decker"
linodes = [linode_instance.decker.id]
outbound_policy = "ACCEPT"
inbound_policy = "DROP"
inbound {
label = "allow-ping"
action = "ACCEPT"
protocol = "ICMP"
ipv4 = ["0.0.0.0/0"]
ipv6 = ["::/0"]
}
inbound {
label = "allow-inbound-https"
action = "ACCEPT"
protocol = "TCP"
ports = "443"
ipv4 = ["0.0.0.0/0"]
ipv6 = ["::/0"]
}
inbound {
label = "allow-inbound-http"
action = "ACCEPT"
protocol = "TCP"
ports = "80"
ipv4 = ["0.0.0.0/0"]
ipv6 = ["::/0"]
}
}
resource "linode_rdns" "decker_reverse_ipv4" {
address = linode_instance.decker.ip_address
rdns = "decker.sys.theorangeone.net"
}

View File

@ -21,11 +21,3 @@ resource "cloudflare_record" "sys_domain_grimes" {
type = "A"
ttl = 1
}
resource "cloudflare_record" "sys_domain_decker" {
zone_id = cloudflare_zone.theorangeonenet.id
name = "decker.sys"
value = linode_instance.decker.ip_address
type = "A"
ttl = 1
}

View File

@ -197,14 +197,6 @@ resource "cloudflare_record" "theorangeonenet_dokku_wildcard" {
ttl = 1
}
resource "cloudflare_record" "theorangeonenet_status" {
zone_id = cloudflare_zone.theorangeonenet.id
name = "status"
value = linode_instance.decker.ip_address
type = "A"
ttl = 1
}
resource "cloudflare_record" "theorangeonenet_google_site_verification" {
zone_id = cloudflare_zone.theorangeonenet.id
name = "@"

View File

@ -2,7 +2,6 @@ resource "uptimerobot_monitor" "vps_ping" {
for_each = {
casey = linode_instance.casey.ip_address
walker = vultr_instance.walker.main_ip
decker = linode_instance.decker.ip_address
grimes = vultr_instance.grimes.main_ip
}