Skip to content
Snippets Groups Projects
Verified Commit 45805763 authored by Frederik Schwan's avatar Frederik Schwan
Browse files

fixups to minimize terraform state changes while applying !238

parent e4c51998
No related branches found
No related tags found
No related merge requests found
Pipeline #4164 passed
...@@ -44,11 +44,11 @@ locals { ...@@ -44,11 +44,11 @@ locals {
"archlinux.org" = { "archlinux.org" = {
server_type = "cpx11" server_type = "cpx11"
domain = "@" domain = "@"
ttl = 600
} }
"accounts.archlinux.org" = { "accounts.archlinux.org" = {
server_type = "cx11" server_type = "cx11"
domain = "accounts" domain = "accounts"
ttl = 600
} }
"aur-dev.archlinux.org" = { "aur-dev.archlinux.org" = {
server_type = "cx11" server_type = "cx11"
...@@ -82,7 +82,6 @@ locals { ...@@ -82,7 +82,6 @@ locals {
"mailman3.archlinux.org" = { "mailman3.archlinux.org" = {
server_type = "cx11" server_type = "cx11"
domain = "mailman3" domain = "mailman3"
ttl = 600
} }
"matrix.archlinux.org" = { "matrix.archlinux.org" = {
server_type = "cpx31" server_type = "cpx31"
...@@ -99,6 +98,7 @@ locals { ...@@ -99,6 +98,7 @@ locals {
"patchwork.archlinux.org" = { "patchwork.archlinux.org" = {
server_type = "cx11" server_type = "cx11"
domain = "patchwork" domain = "patchwork"
ttl = 600
} }
"phrik.archlinux.org" = { "phrik.archlinux.org" = {
server_type = "cx11" server_type = "cx11"
...@@ -119,14 +119,16 @@ locals { ...@@ -119,14 +119,16 @@ locals {
"security.archlinux.org" = { "security.archlinux.org" = {
server_type = "cx11" server_type = "cx11"
domain = "security" domain = "security"
ttl = 600
} }
"svn2gittest.archlinux.org" = { "svn2gittest.archlinux.org" = {
server_type = "cx11" server_type = "cx11"
domain = "svn2gittest" domain = "svn2gittest"
} }
"wiki.archlinux.org" = { "wiki.archlinux.org" = {
server_type = "cx11" server_type = "cpx11"
domain = "wiki" domain = "wiki"
ttl = 600
} }
"mirror.pkgbuild.com" = { "mirror.pkgbuild.com" = {
server_type = "cx11" server_type = "cx11"
...@@ -236,7 +238,7 @@ locals { ...@@ -236,7 +238,7 @@ locals {
repos = { value = "gemini" } repos = { value = "gemini" }
rsync = { value = "gemini" } rsync = { value = "gemini" }
sources = { value = "gemini" } sources = { value = "gemini" }
"static.conf" = { value = "apollo" } "static.conf" = { value = "redirect" }
static = { value = "apollo" } static = { value = "apollo" }
status = { value = "stats.uptimerobot.com." } status = { value = "stats.uptimerobot.com." }
svn = { value = "gemini" } svn = { value = "gemini" }
......
...@@ -13,7 +13,7 @@ resource "hetznerdns_record" "archlinux_org_gitlab_pages_verification_code_txt" ...@@ -13,7 +13,7 @@ resource "hetznerdns_record" "archlinux_org_gitlab_pages_verification_code_txt"
for_each = local.archlinux_org_gitlab_pages for_each = local.archlinux_org_gitlab_pages
zone_id = hetznerdns_zone.archlinux.id zone_id = hetznerdns_zone.archlinux.id
name = "_gitlab-pages-verification-code.${each.value}" name = "_gitlab-pages-verification-code.${each.key}"
value = "gitlab-pages-verification-code=${each.value}" value = "gitlab-pages-verification-code=${each.value}"
type = "TXT" type = "TXT"
} }
...@@ -87,7 +87,7 @@ resource "hcloud_rdns" "rdns_ipv6" { ...@@ -87,7 +87,7 @@ resource "hcloud_rdns" "rdns_ipv6" {
resource "hcloud_server" "machine" { resource "hcloud_server" "machine" {
for_each = local.machines for_each = local.machines
name = each.value.domain name = each.key
image = data.hcloud_image.archlinux.id image = data.hcloud_image.archlinux.id
server_type = each.value.server_type server_type = each.value.server_type
lifecycle { lifecycle {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment