mirror of
https://github.com/RealOrangeOne/infrastructure.git
synced 2026-01-23 02:14:14 +00:00
26 lines
834 B
HCL
26 lines
834 B
HCL
resource "hcloud_server" "grimes" {
|
|
name = "grimes"
|
|
image = "debian-12"
|
|
server_type = "cx22"
|
|
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" "grimes_reverse_ipv4" {
|
|
server_id = hcloud_server.grimes.id
|
|
ip_address = hcloud_server.grimes.ipv4_address
|
|
dns_ptr = "${gandi_livedns_record.sys_domain_grimes.name}.${gandi_livedns_record.sys_domain_grimes.zone}"
|
|
}
|
|
|
|
resource "hcloud_rdns" "grimes_reverse_ipv6" {
|
|
server_id = hcloud_server.grimes.id
|
|
ip_address = hcloud_server.grimes.ipv6_address
|
|
dns_ptr = "${gandi_livedns_record.sys_domain_grimes.name}.${gandi_livedns_record.sys_domain_grimes.zone}"
|
|
}
|