mirror of
https://gitea.fenix-dev.com/fenix-gitea-admin/iac-opentofu-private.git
synced 2025-10-27 15:53:06 +00:00
Merge pull request 'disco usando imagem local' (#64) from fenix-admin into main
Reviewed-on: fenix-gitea-admin/iac-teste#64
This commit is contained in:
14
proxmox.tf
14
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"
|
||||
@ -77,13 +70,12 @@ resource "proxmox_virtual_environment_vm" "proxmox-kubernetes-VM-template" {
|
||||
}
|
||||
|
||||
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"
|
||||
|
||||
Reference in New Issue
Block a user