mirror of
https://gitea.fenix-dev.com/fenix-gitea-admin/iac-opentofu-private.git
synced 2025-10-27 07:43:07 +00:00
Merge pull request 'Update proxmox.tf' (#56) from fenix-admin into main
Reviewed-on: fenix-gitea-admin/iac-teste#56
This commit is contained in:
10
proxmox.tf
10
proxmox.tf
@ -7,11 +7,11 @@ provider "proxmox" {
|
||||
}
|
||||
}
|
||||
resource "proxmox_virtual_environment_download_file" "Fedora-iso" {
|
||||
content_type = "import"
|
||||
datastore_id = "local-lvm"
|
||||
content_type = "import" # for disk images
|
||||
datastore_id = "local" # storage on your node
|
||||
node_name = "fenix"
|
||||
file_name = "Fedora-Cloud-Base-Generic-41-1.4.x86_64.qcow2"
|
||||
url = "https://mirror.plusline.net/fedora/linux/releases/41/Cloud/x86_64/images/Fedora-Cloud-Base-Generic-41-1.4.x86_64.qcow2"
|
||||
file_name = "jammy-server-cloudimg-amd64.img"
|
||||
url = "https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img"
|
||||
}
|
||||
|
||||
resource "proxmox_virtual_environment_vm" "proxmox-kubernetes-VM-template" {
|
||||
@ -48,7 +48,7 @@ resource "proxmox_virtual_environment_vm" "proxmox-kubernetes-VM-template" {
|
||||
disk {
|
||||
datastore_id = "local-lvm"
|
||||
interface = "scsii"
|
||||
file_id = proxmox_virtual_environment_download_file.Fedora-iso.id
|
||||
file_id = proxmox_virtual_environment_download_file.Fedora-iso.file_name
|
||||
size = 20
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user