25 lines
589 B
HCL
25 lines
589 B
HCL
resource "hcloud_server" "HomeLab" {
|
|
count = var.instances
|
|
name = "merlin"
|
|
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]
|
|
labels = {
|
|
}
|
|
|
|
}
|
|
#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 = {
|
|
# }
|
|
#
|
|
#}
|