diff --git a/kubernetes/terraform/vm_cloud_image.tf b/kubernetes/terraform/vm_cloud_image.tf index 97d58b5..66e2b06 100644 --- a/kubernetes/terraform/vm_cloud_image.tf +++ b/kubernetes/terraform/vm_cloud_image.tf @@ -6,13 +6,13 @@ # file_name = "Ubuntu_noble-server-cloudimg_managed_by_spa_terraform_runner_do_not_delete.img" # } -# resource "proxmox_virtual_environment_download_file" "cloud_image" { -# content_type = "iso" -# datastore_id = "local" -# node_name = var.node_name -# url = "https://cdimage.debian.org/images/cloud/bookworm/latest/debian-12-genericcloud-amd64.qcow2" -# file_name = "debian-12-cloudimg_managed_by_spa_terraform_runner_do_not_delete.img" -# } +resource "proxmox_virtual_environment_download_file" "cloud_image" { + content_type = "iso" + datastore_id = "local" + node_name = var.node_name + url = "https://cdimage.debian.org/images/cloud/bookworm/latest/debian-12-genericcloud-amd64.qcow2" + file_name = "debian-12-cloudimg_managed_by_spa_terraform_runner_do_not_delete.img" +} # resource "proxmox_virtual_environment_download_file" "cloud_image" { # content_type = "iso" diff --git a/kubernetes/terraform/vm_control_planes.tf b/kubernetes/terraform/vm_control_planes.tf index fde66c3..cb37647 100644 --- a/kubernetes/terraform/vm_control_planes.tf +++ b/kubernetes/terraform/vm_control_planes.tf @@ -23,14 +23,14 @@ resource "proxmox_virtual_environment_vm" "k8s_cp" { vlan_id = var.vlan_id } - clone { - vm_id = 100 - retries = 10 - } + # clone { + # vm_id = 100 + # retries = 10 + # } disk { datastore_id = "dellsan" - # file_id = proxmox_virtual_environment_download_file.cloud_image.id + file_id = proxmox_virtual_environment_download_file.cloud_image.id interface = "ide0" size = 40 } diff --git a/kubernetes/terraform/vm_large_worker.tf b/kubernetes/terraform/vm_large_worker.tf index e74329b..1d14b64 100644 --- a/kubernetes/terraform/vm_large_worker.tf +++ b/kubernetes/terraform/vm_large_worker.tf @@ -23,14 +23,14 @@ resource "proxmox_virtual_environment_vm" "k8s_worker_large" { vlan_id = var.vlan_id } - clone { - vm_id = 107 - retries = 10 - } + # clone { + # vm_id = 100 + # retries = 10 + # } disk { datastore_id = "dellsan" - # file_id = proxmox_virtual_environment_download_file.cloud_image.id + file_id = proxmox_virtual_environment_download_file.cloud_image.id interface = "ide0" size = 40 } diff --git a/kubernetes/terraform/vm_medium_worker.tf b/kubernetes/terraform/vm_medium_worker.tf index 21e4be3..aa26fbf 100644 --- a/kubernetes/terraform/vm_medium_worker.tf +++ b/kubernetes/terraform/vm_medium_worker.tf @@ -23,14 +23,15 @@ resource "proxmox_virtual_environment_vm" "k8s_worker_medium" { vlan_id = var.vlan_id } - clone { - vm_id = 109 - retries = 10 - } + + # clone { + # vm_id = 100 + # retries = 10 + # } disk { datastore_id = "dellsan" - # file_id = proxmox_virtual_environment_download_file.cloud_image.id + file_id = proxmox_virtual_environment_download_file.cloud_image.id interface = "ide0" size = 40 } diff --git a/kubernetes/terraform/vm_small_worker.tf b/kubernetes/terraform/vm_small_worker.tf index 88d9842..364338f 100644 --- a/kubernetes/terraform/vm_small_worker.tf +++ b/kubernetes/terraform/vm_small_worker.tf @@ -23,14 +23,14 @@ resource "proxmox_virtual_environment_vm" "k8s_worker_small" { vlan_id = var.vlan_id } - clone { - vm_id = 104 - retries = 10 - } + # clone { + # vm_id = 100 + # retries = 10 + # } disk { datastore_id = "dellsan" - # file_id = proxmox_virtual_environment_download_file.cloud_image.id + file_id = proxmox_virtual_environment_download_file.cloud_image.id interface = "ide0" size = 40 }