feat: provisioned
This commit is contained in:
16
terraform/main.tf
Normal file
16
terraform/main.tf
Normal file
@@ -0,0 +1,16 @@
|
||||
resource "hcloud_ssh_key" "key" {
|
||||
name = "kthw-key"
|
||||
public_key = file(var.public_key_file)
|
||||
}
|
||||
|
||||
resource "hcloud_server" "boxes" {
|
||||
for_each = var.boxes
|
||||
name = each.value
|
||||
image = "debian-12"
|
||||
ssh_keys = [hcloud_ssh_key.key.id]
|
||||
server_type = "cx23"
|
||||
public_net {
|
||||
ipv4_enabled = true
|
||||
ipv6_enabled = false
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user