mirror of
https://gitea.fenix-dev.com/fenix-gitea-admin/iac-opentofu-private.git
synced 2025-10-27 15:53:06 +00:00
Update proxmox.tf
This commit is contained in:
13
proxmox.tf
13
proxmox.tf
@ -21,17 +21,8 @@ resource "null_resource" "download_image" {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
resource "proxmox_virtual_environment_download_file" "Fedora-iso" {
|
||||
content_type = "import"
|
||||
datastore_id = "local"
|
||||
file_name = "debian-12-generic-amd64-20231228-1609.qcow2"
|
||||
node_name = "fenix"
|
||||
url = "https://cloud.debian.org/images/cloud/bookworm/20231228-1609/debian-12-generic-amd64-20231228-1609.qcow2"
|
||||
}
|
||||
|
||||
resource "proxmox_virtual_environment_vm" "proxmox-kubernetes-VM-template" {
|
||||
depends_on = [proxmox_virtual_environment_download_file.Fedora-iso]
|
||||
depends_on = [null_resource.download_image]
|
||||
name = "proxmox-kubernetes-VM-template"
|
||||
node_name = "fenix"
|
||||
vm_id = 1002
|
||||
@ -64,7 +55,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 = "./images/ubuntu-bionic.img"
|
||||
size = 20
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user