Commit bcbfb2d1 authored by Giancarlo Razzolini's avatar Giancarlo Razzolini Committed by Sven-Hendrik Haase
Browse files

tf-stage1/archlinux.tf: Lower TTL for archlinux.org and www.archlinux.org and...

tf-stage1/archlinux.tf: Lower TTL for archlinux.org and www.archlinux.org and create a new server for archlinux.org

For the archweb migration, we need to lower the TTL and create a new archlinux.org server to host the site.
parent 458217f4
......@@ -218,6 +218,7 @@ resource "hetznerdns_record" "pkgbuild_com_www_aaaa" {
resource "hetznerdns_record" "archlinux_org_origin_a" {
zone_id = hetznerdns_zone.archlinux.id
name = "@"
ttl = 600
value = "138.201.81.199"
type = "A"
}
......@@ -225,6 +226,7 @@ resource "hetznerdns_record" "archlinux_org_origin_a" {
resource "hetznerdns_record" "archlinux_org_origin_aaaa" {
zone_id = hetznerdns_zone.archlinux.id
name = "@"
ttl = 600
value = "2a01:4f8:172:1d86::1"
type = "AAAA"
}
......@@ -890,6 +892,7 @@ resource "hetznerdns_record" "archlinux_org_wiki_cname" {
resource "hetznerdns_record" "archlinux_org_www_cname" {
zone_id = hetznerdns_zone.archlinux.id
name = "www"
ttl = 600
value = "apollo"
type = "CNAME"
}
......@@ -1297,3 +1300,24 @@ resource "hcloud_server" "openpgpkey" {
ignore_changes = [image]
}
}
resource "hcloud_rdns" "archlinux_ipv4" {
server_id = hcloud_server.archlinux.id
ip_address = hcloud_server.archlinux.ipv4_address
dns_ptr = "archlinux.org"
}
resource "hcloud_rdns" "archlinux_ipv6" {
server_id = hcloud_server.archlinux.id
ip_address = hcloud_server.archlinux.ipv6_address
dns_ptr = "archlinux.org"
}
resource "hcloud_server" "archlinux" {
name = "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