terraform: remove corwin
This commit is contained in:
parent
2ea4992f57
commit
e083f4da7a
@ -1,13 +1,13 @@
|
||||
output "homelab_servers_status" {
|
||||
value = {
|
||||
for server in hcloud_server.HomeLab2 :
|
||||
for server in hcloud_server.merlin :
|
||||
server.name => server.status
|
||||
}
|
||||
}
|
||||
|
||||
output "homelab_servers_ips" {
|
||||
value = {
|
||||
for server in hcloud_server.HomeLab2 :
|
||||
for server in hcloud_server.merlin :
|
||||
server.name => server.ipv4_address
|
||||
}
|
||||
}
|
||||
|
@ -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" {
|
||||
with_selector = "os-flavor=archlinux"
|
||||
@ -48,6 +26,7 @@ resource "hcloud_server" "merlin" {
|
||||
lifecycle {
|
||||
ignore_changes = [
|
||||
ssh_keys,
|
||||
image,
|
||||
]
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user