2021-04-19 21:16:56 +01:00
|
|
|
module "walker_firewall" {
|
|
|
|
source = "./vultr_firewall/"
|
|
|
|
|
|
|
|
description = "walker"
|
2021-04-24 21:19:04 +01:00
|
|
|
ports = [
|
|
|
|
"80/tcp",
|
2024-02-01 19:41:47 +00:00
|
|
|
"443/tcp",
|
|
|
|
"41641/udp"
|
2021-04-24 21:19:04 +01:00
|
|
|
]
|
2021-04-19 21:16:56 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
resource "vultr_instance" "walker" {
|
2023-02-21 08:47:21 +00:00
|
|
|
plan = "vhf-1c-2gb"
|
2021-04-19 21:16:56 +01:00
|
|
|
region = "lhr"
|
|
|
|
hostname = "walker"
|
|
|
|
firewall_group_id = module.walker_firewall.firewall_group.id
|
|
|
|
}
|
2022-01-19 08:29:56 +00:00
|
|
|
|
|
|
|
resource "vultr_reverse_ipv4" "walker_reverse_ipv4" {
|
|
|
|
instance_id = vultr_instance.walker.id
|
|
|
|
ip = vultr_instance.walker.main_ip
|
2023-12-31 18:22:21 +00:00
|
|
|
reverse = cloudflare_record.sys_domain_walker.hostname
|
2022-01-19 08:29:56 +00:00
|
|
|
}
|
2023-04-23 13:56:44 +01:00
|
|
|
|
|
|
|
resource "vultr_reverse_ipv6" "walker_reverse_ipv6" {
|
|
|
|
instance_id = vultr_instance.walker.id
|
|
|
|
ip = vultr_instance.walker.v6_main_ip
|
2023-12-31 18:22:21 +00:00
|
|
|
reverse = cloudflare_record.sys_domain_walker.hostname
|
2023-04-23 13:56:44 +01:00
|
|
|
}
|
2024-05-04 13:20:15 +01:00
|
|
|
|
|
|
|
resource "hcloud_server" "walker" {
|
|
|
|
name = "walker"
|
|
|
|
image = "debian-12" # Not true - that was just the initial install.
|
|
|
|
server_type = "cpx11"
|
|
|
|
location = "nbg1"
|
|
|
|
delete_protection = true
|
|
|
|
rebuild_protection = true
|
|
|
|
|
|
|
|
firewall_ids = [
|
|
|
|
hcloud_firewall.base.id,
|
|
|
|
hcloud_firewall.tailscale.id,
|
|
|
|
hcloud_firewall.web.id,
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "hcloud_rdns" "walker_reverse_ipv4" {
|
|
|
|
server_id = hcloud_server.walker.id
|
|
|
|
ip_address = hcloud_server.walker.ipv4_address
|
|
|
|
dns_ptr = cloudflare_record.sys_domain_walker.hostname
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "hcloud_rdns" "walker_reverse_ipv6" {
|
|
|
|
server_id = hcloud_server.walker.id
|
|
|
|
ip_address = hcloud_server.walker.ipv6_address
|
|
|
|
dns_ptr = cloudflare_record.sys_domain_walker.hostname
|
|
|
|
}
|