Verified Commit c313f7f2 authored by Giancarlo Razzolini's avatar Giancarlo Razzolini
Browse files

tf-stage1/archlinux: Create patchwork server and lower its DNS record TTL

Created a cx11 server for the patchwork migration and lowered its CNAME DNS record.
parent 33e3d776
Pipeline #3871 passed with stage
in 43 seconds
......@@ -862,6 +862,7 @@ resource "hetznerdns_record" "archlinux_org_packages_cname" {
resource "hetznerdns_record" "archlinux_org_patchwork_cname" {
zone_id = hetznerdns_zone.archlinux.id
name = "patchwork"
ttl = 600
value = "apollo"
type = "CNAME"
}
......@@ -1446,3 +1447,24 @@ resource "hcloud_server" "archwiki" {
ignore_changes = [image]
}
}
resource "hcloud_rdns" "patchwork_ipv4" {
server_id = hcloud_server.patchwork.id
ip_address = hcloud_server.patchwork.ipv4_address
dns_ptr = "patchwork.archlinux.org"
}
resource "hcloud_rdns" "patchwork_ipv6" {
server_id = hcloud_server.patchwork.id
ip_address = hcloud_server.patchwork.ipv6_address
dns_ptr = "patchwork.archlinux.org"
}
resource "hcloud_server" "patchwork" {
name = "patchwork.archlinux.org"
image = data.hcloud_image.archlinux.id
server_type = "cx11"
lifecycle {
ignore_changes = [image]
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment