19 lines
No EOL
476 B
HCL
19 lines
No EOL
476 B
HCL
resource "hcloud_server" "server" {
|
|
name = "vm-${var.server_name}"
|
|
server_type = var.server_type
|
|
image = var.server_image
|
|
location = var.server_location
|
|
backups = var.server_backups
|
|
ssh_keys = [data.hcloud_ssh_key.ansible_provision_key.id]
|
|
labels = merge(
|
|
var.labels,
|
|
{
|
|
"Resource_Type" = "Virtual_Machine"
|
|
"Service_Type" = var.service_type
|
|
}
|
|
)
|
|
public_net {
|
|
ipv4_enabled = true
|
|
ipv6_enabled = true
|
|
}
|
|
} |