2022-06-19 14:04:32 +00:00
|
|
|
resource "hcloud_server" "HomeLab" {
|
|
|
|
count = var.instances
|
2022-06-19 14:17:06 +00:00
|
|
|
name = "merlin"
|
2022-06-19 14:04:32 +00:00
|
|
|
image = var.os_type
|
|
|
|
server_type = var.server_type
|
|
|
|
location = var.location
|
|
|
|
ssh_keys = [hcloud_ssh_key.default.id]
|
2022-10-08 07:12:41 +00:00
|
|
|
firewall_ids = [hcloud_firewall.prod.id,hcloud_firewall.Gitea_SSH.id]
|
2022-06-19 14:04:32 +00:00
|
|
|
labels = {
|
|
|
|
}
|
|
|
|
|
2022-10-15 11:23:31 +00:00
|
|
|
lifecycle {
|
|
|
|
ignore_changes = [
|
|
|
|
ssh_keys,
|
|
|
|
]
|
|
|
|
}
|
2022-06-19 14:04:32 +00:00
|
|
|
}
|
2022-10-07 13:04:10 +00:00
|
|
|
#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 = {
|
|
|
|
# }
|
|
|
|
#
|
|
|
|
#}
|