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 'proxmox fedora iso' (#52) from fenix-admin into main
Reviewed-on: fenix-gitea-admin/iac-teste#52
This commit is contained in:
@ -7,11 +7,11 @@ provider "proxmox" {
|
||||
}
|
||||
}
|
||||
resource "proxmox_virtual_environment_download_file" "Fedora-iso" {
|
||||
content_type = "import" # correto para qcow2/img # tipo do arquivo
|
||||
datastore_id = "local-lvm" # datastore do Proxmox onde o arquivo será guardado
|
||||
node_name = "fenix" # nó do Proxmox onde será armazenado
|
||||
content_type = "import"
|
||||
datastore_id = "local-lvm"
|
||||
node_name = "fenix"
|
||||
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" {
|
||||
@ -74,6 +74,7 @@ initialization {
|
||||
|
||||
|
||||
resource "proxmox_virtual_environment_vm" "VM-Kubernetes-01" {
|
||||
depends_on = [proxmox_virtual_environment_download_file.proxmox-kubernetes-VM-template]
|
||||
name = "VM-Kubernetes-01"
|
||||
node_name = "fenix"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user