diff --git a/infra/output.tf b/infra/output.tf index f97f80a..fea008b 100644 --- a/infra/output.tf +++ b/infra/output.tf @@ -1,13 +1,13 @@ output "homelab_servers_status" { value = { - for server in hcloud_server.HomeLab : + for server in hcloud_server.HomeLab2 : server.name => server.status } } output "homelab_servers_ips" { value = { - for server in hcloud_server.HomeLab : + for server in hcloud_server.HomeLab2 : server.name => server.ipv4_address } } diff --git a/infra/server.tf b/infra/server.tf index 1c0e611..6847c54 100644 --- a/infra/server.tf +++ b/infra/server.tf @@ -1,7 +1,7 @@ -resource "hcloud_server" "HomeLab" { +resource "hcloud_server" "HomeLab2" { count = var.instances - name = "merlin" - image = var.os_type + name = "corwin" + image = "rocky-9" server_type = var.server_type location = var.location ssh_keys = [hcloud_ssh_key.default.id] @@ -15,15 +15,3 @@ resource "hcloud_server" "HomeLab" { ] } } -#resource "hcloud_server" "HomeLab2" { -# count = var.instances -# name = "corwin" -# image = "rocky-9" -# server_type = var.server_type -# location = var.location -# ssh_keys = [hcloud_ssh_key.default.id] -# firewall_ids = [hcloud_firewall.prod.id] -# labels = { -# } -# -#}