infrastructure/terraform/walker_vps.tf

27 lines
779 B
Terraform
Raw Normal View History

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
2024-09-14 21:24:12 +01:00
dns_ptr = gandi_livedns_record.sys_domain_walker.href
2024-05-04 13:20:15 +01:00
}
resource "hcloud_rdns" "walker_reverse_ipv6" {
server_id = hcloud_server.walker.id
ip_address = hcloud_server.walker.ipv6_address
2024-09-14 21:24:12 +01:00
dns_ptr = gandi_livedns_record.sys_domain_walker.href
2024-05-04 13:20:15 +01:00
}