Skip to content
Snippets Groups Projects
Verified Commit 034acc66 authored by Evangelos Foutras's avatar Evangelos Foutras :smiley_cat:
Browse files

tf-stage1: add state.archlinux.org to machines

There's a bit of a chicken and egg situation here but it's preferable to
manage the server's attributes the same way as all of the cloud servers.
parent 1050ebc2
No related branches found
No related tags found
No related merge requests found
......@@ -149,6 +149,11 @@ locals {
server_type = "cx11"
domain = "security"
}
"state.archlinux.org" = {
server_type = "cx11"
domain = "state"
backups = true
}
"wiki.archlinux.org" = {
server_type = "cpx21"
domain = "wiki"
......@@ -271,10 +276,6 @@ locals {
ipv4_address = "116.202.134.150"
ipv6_address = "2a01:4f8:231:4e1e::2"
}
state = {
ipv4_address = "116.203.16.252"
ipv6_address = "2a01:4f8:c2c:474::1"
}
www = {
ipv4_address = hcloud_server.machine["archlinux.org"].ipv4_address
ipv6_address = hcloud_server.machine["archlinux.org"].ipv6_address
......
......@@ -148,6 +148,7 @@ resource "hcloud_server" "machine" {
name = each.key
image = data.hcloud_image.archlinux.id
server_type = each.value.server_type
backups = lookup(local.machines[each.key], "backups", false)
keep_disk = true
location = "fsn1"
delete_protection = true
......
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