Verified Commit 274b950e authored by Giancarlo Razzolini's avatar Giancarlo Razzolini
Browse files

tf-stage1/archlinux: Lower TTL and create a new server for the wiki

Created a new CPX11 server for the wiki and lowered the TTL of the wiki CNAME
entry.
parent 94f7fb56
Pipeline #3791 passed with stage
in 33 seconds
......@@ -941,6 +941,7 @@ resource "hetznerdns_record" "archlinux_org_svn_cname" {
resource "hetznerdns_record" "archlinux_org_wiki_cname" {
zone_id = hetznerdns_zone.archlinux.id
name = "wiki"
ttl = 600
value = "apollo"
type = "CNAME"
}
......@@ -1416,3 +1417,24 @@ resource "hcloud_server" "archlinux" {
ignore_changes = [image]
}
}
resource "hcloud_rdns" "archwiki_ipv4" {
server_id = hcloud_server.archwiki.id
ip_address = hcloud_server.archwiki.ipv4_address
dns_ptr = "wiki.archlinux.org"
}
resource "hcloud_rdns" "archwiki_ipv6" {
server_id = hcloud_server.archwiki.id
ip_address = hcloud_server.archwiki.ipv6_address
dns_ptr = "wiki.archlinux.org"
}
resource "hcloud_server" "archwiki" {
name = "wiki.archlinux.org"
image = data.hcloud_image.archlinux.id
server_type = "cpx11"
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