1
1
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2024-09-26 22:11:09 +02:00

Add A/AAAA domain for pages

This makes it easier for projects to use it as they only have to provide a single CNAME entry
instead of having to provide a A and a AAAA entry.
This commit is contained in:
Sven-Hendrik Haase 2020-12-23 16:43:22 +01:00
parent 26dcf64a41
commit 2972584fcc
No known key found for this signature in database
GPG Key ID: 39E4B877E62EB915
2 changed files with 17 additions and 10 deletions

View File

@ -24,18 +24,11 @@ something hosted below one of our domains is official).
1. [ ] At this point, we'll need to add some stuff to `archlinux.tf`. It should look something like this.
Make sure to substitute the `your_domain` and `your-domain` strings accordingly:
resource "hetznerdns_record" "gitlab_pages_your_domain_a" {
resource "hetznerdns_record" "gitlab_pages_your_domain_cname" {
zone_id = hetznerdns_zone.archlinux.id
name = "your-domain"
value = hcloud_floating_ip.gitlab_pages.ip_address
type = "A"
}
resource "hetznerdns_record" "gitlab_pages_your_domain_aaaa" {
zone_id = hetznerdns_zone.archlinux.id
name = "your-domain"
value = var.gitlab_pages_ipv6
type = "AAAA"
value = "pages"
type = "CNAME"
}
resource "hetznerdns_record" "gitlab_pages_your_domain_verification" {

View File

@ -1077,6 +1077,20 @@ resource "hcloud_server" "gitlab" {
}
}
resource "hetznerdns_record" "archlinux_org_gitlab_pages_a" {
zone_id = hetznerdns_zone.archlinux.id
name = "pages"
value = hcloud_floating_ip.gitlab_pages.ip_address
type = "A"
}
resource "hetznerdns_record" "archlinux_org_gitlab_pages_aaaa" {
zone_id = hetznerdns_zone.archlinux.id
name = "pages"
value = var.gitlab_pages_ipv6
type = "AAAA"
}
resource "hcloud_floating_ip" "gitlab_pages" {
type = "ipv4"
description = "GitLab Pages"