diff --git a/terraform/kasm.tf b/terraform/kasm.tf index c5cd0c8..8cd1f6f 100644 --- a/terraform/kasm.tf +++ b/terraform/kasm.tf @@ -44,7 +44,8 @@ resource "proxmox_virtual_environment_vm" "Kasm" { initialization { ip_config { ipv4 { - address = "dhcp" + address = var.kasm_ip + gateway = var.vlan_gateway } } diff --git a/terraform/vars.tf b/terraform/vars.tf index 3462ab1..47448eb 100644 --- a/terraform/vars.tf +++ b/terraform/vars.tf @@ -44,4 +44,8 @@ variable "init_username" { variable "init_password" { type = string +} + +variable "kasm_ip" { + type = string } \ No newline at end of file