Commit 81e4babc authored by Sven-Hendrik Haase's avatar Sven-Hendrik Haase
Browse files

Merge branch 'better-gitlab-pages-handling' into 'master'

Add A/AAAA domain for pages

See merge request !221
parents 26dcf64a 2972584f
Pipeline #3966 passed with stage
in 43 seconds
......@@ -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" {
......
......@@ -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"
......
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