homelab/infra/server.tf
vincent 7fb16ee116
Some checks failed
continuous-integration/drone/push Build is failing
move to heztner DNS
2023-09-17 19:47:14 +02:00

18 lines
382 B
HCL

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]
labels = {
}
lifecycle {
ignore_changes = [
ssh_keys,
]
}
}