mirror of
https://gitea.fenix-dev.com/fenix-gitea-admin/iac-opentofu-private.git
synced 2025-10-27 15:53:06 +00:00
proxmox fedora iso
This commit is contained in:
@ -7,11 +7,11 @@ provider "proxmox" {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
resource "proxmox_virtual_environment_download_file" "Fedora-iso" {
|
resource "proxmox_virtual_environment_download_file" "Fedora-iso" {
|
||||||
content_type = "import" # correto para qcow2/img # tipo do arquivo
|
content_type = "import"
|
||||||
datastore_id = "local-lvm" # datastore do Proxmox onde o arquivo será guardado
|
datastore_id = "local-lvm"
|
||||||
node_name = "fenix" # nó do Proxmox onde será armazenado
|
node_name = "fenix"
|
||||||
file_name = "Fedora-Cloud-Base-Generic-41-1.4.x86_64.qcow2"
|
file_name = "Fedora-Cloud-Base-Generic-41-1.4.x86_64.qcow2"
|
||||||
url = "https://mirror.csclub.uwaterloo.ca/fedora/linux/releases/41/Cloud/x86_64/images/Fedora-Cloud-Base-Generic-41-1.4.x86_64.qcow2"
|
url = "https://download.fedoraproject.org/pub/fedora/linux/releases/41/Cloud/x86_64/images/Fedora-Cloud-Base-Generic-41-1.4.x86_64.qcow2"
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "proxmox_virtual_environment_vm" "proxmox-kubernetes-VM-template" {
|
resource "proxmox_virtual_environment_vm" "proxmox-kubernetes-VM-template" {
|
||||||
@ -74,6 +74,7 @@ initialization {
|
|||||||
|
|
||||||
|
|
||||||
resource "proxmox_virtual_environment_vm" "VM-Kubernetes-01" {
|
resource "proxmox_virtual_environment_vm" "VM-Kubernetes-01" {
|
||||||
|
depends_on = [proxmox_virtual_environment_download_file.proxmox-kubernetes-VM-template]
|
||||||
name = "VM-Kubernetes-01"
|
name = "VM-Kubernetes-01"
|
||||||
node_name = "fenix"
|
node_name = "fenix"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user