terraform: remove corwin

This commit is contained in:
vincent 2024-02-03 09:53:40 +01:00
parent 2ea4992f57
commit e083f4da7a
2 changed files with 3 additions and 24 deletions

View File

@ -1,13 +1,13 @@
output "homelab_servers_status" { output "homelab_servers_status" {
value = { value = {
for server in hcloud_server.HomeLab2 : for server in hcloud_server.merlin :
server.name => server.status server.name => server.status
} }
} }
output "homelab_servers_ips" { output "homelab_servers_ips" {
value = { value = {
for server in hcloud_server.HomeLab2 : for server in hcloud_server.merlin :
server.name => server.ipv4_address server.name => server.ipv4_address
} }
} }

View File

@ -1,25 +1,3 @@
resource "hcloud_server" "HomeLab2" {
count = var.instances
name = "corwin"
image = var.os_type
server_type = var.server_type
location = var.location
ssh_keys = [hcloud_ssh_key.default.id]
firewall_ids = [
hcloud_firewall.prod.id,
hcloud_firewall.Gitea_SSH.id,
hcloud_firewall.torrent.id,
hcloud_firewall.mail.id,
]
labels = {
}
lifecycle {
ignore_changes = [
ssh_keys,
]
}
}
data "hcloud_image" "arch" { data "hcloud_image" "arch" {
with_selector = "os-flavor=archlinux" with_selector = "os-flavor=archlinux"
@ -48,6 +26,7 @@ resource "hcloud_server" "merlin" {
lifecycle { lifecycle {
ignore_changes = [ ignore_changes = [
ssh_keys, ssh_keys,
image,
] ]
} }
} }