From 3de0ad50947e21356f4683e21fe4501fba9ed0f2 Mon Sep 17 00:00:00 2001 From: fenix-gitea-admin Date: Thu, 21 Aug 2025 11:11:01 +0000 Subject: [PATCH] disco usando imagem local --- proxmox.tf | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/proxmox.tf b/proxmox.tf index 7cff4dc..3c8ace6 100644 --- a/proxmox.tf +++ b/proxmox.tf @@ -6,13 +6,6 @@ provider "proxmox" { username = "terraform" } } -resource "proxmox_virtual_environment_download_file" "fedora_cloud_image" { - content_type = "iso" - datastore_id = "local" - node_name = "fedora" - url = "https://dl.fedoraproject.org/pub/fedora/linux/releases/41/Cloud/x86_64/images/Fedora-Cloud-Base-Generic-41-1.4.x86_64.qcow2" - file_name = "Fedora-Cloud-Base-41.qcow2.img" -} resource "proxmox_virtual_environment_file" "fedora_user_data" { content_type = "snippets" @@ -75,15 +68,14 @@ resource "proxmox_virtual_environment_vm" "proxmox-kubernetes-VM-template" { interface = "scsi0" size = 64 } - + disk { - datastore_id = "local-lvm" # armazenamento para disco da VM - file_id = proxmox_virtual_environment_download_file.fedora_cloud_image.id + datastore_id = "local-lvm" + file_id = "local:iso/Fedora-Cloud-Base-41.qcow2" interface = "scsi1" size = 10 - iothread = true - discard = "on" - } + } + # Configuração da interface de rede network_device { bridge = "vmbr0"