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 'ns mais' (#16) from fenix-admin into main
Reviewed-on: fenix-gitea-admin/iac-teste#16
This commit is contained in:
49
proxmox.tf
49
proxmox.tf
@ -1,10 +1,12 @@
|
|||||||
provider "proxmox" {
|
provider "proxmox" {
|
||||||
pm_api_url = var.proxmox_server
|
pm_api_url = var.proxmox_server
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "proxmox_pool" "resource-pool" {
|
resource "proxmox_pool" "resource-pool" {
|
||||||
poolid = "resource-pool"
|
poolid = "resource-pool"
|
||||||
comment = "pool auto created"
|
comment = "pool auto created"
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "proxmox_vm_qemu" "vm-kubernetes-01" {
|
resource "proxmox_vm_qemu" "vm-kubernetes-01" {
|
||||||
name = "VM-kubernetes-01"
|
name = "VM-kubernetes-01"
|
||||||
target_node = "fenix"
|
target_node = "fenix"
|
||||||
@ -23,38 +25,35 @@ resource "proxmox_vm_qemu" "vm-kubernetes-01" {
|
|||||||
pool = "resource-pool"
|
pool = "resource-pool"
|
||||||
tags = "iac-tag"
|
tags = "iac-tag"
|
||||||
os_type = "ubuntu"
|
os_type = "ubuntu"
|
||||||
ipconfig0 = "ip=192.168.1.24/24"
|
|
||||||
cpu {
|
cpu {
|
||||||
cores = 2
|
cores = 2
|
||||||
sockets = 1
|
sockets = 1
|
||||||
type = "x86-64-v2-AES"
|
type = "host"
|
||||||
}
|
}
|
||||||
|
|
||||||
network {
|
network {
|
||||||
id = 0
|
id = 0
|
||||||
model = "virtio"
|
model = "virtio"
|
||||||
bridge = "vmbr0"
|
bridge = "vmbr0"
|
||||||
}
|
}
|
||||||
disks {
|
|
||||||
|
|
||||||
ide {
|
disk {
|
||||||
ide2 {
|
type = "scsi"
|
||||||
cdrom {
|
storage = "local-lvm"
|
||||||
iso = "Fedora-Workstation-Live-x86_64-41-1.4.iso"
|
size = "64G"
|
||||||
}
|
backup = true
|
||||||
}
|
|
||||||
}
|
|
||||||
scsi {
|
|
||||||
scsi0 {
|
|
||||||
disk {
|
|
||||||
backup = true
|
|
||||||
size = "64G"
|
|
||||||
storage = "local-lvm"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
efidisk {
|
|
||||||
efitype = "4m"
|
cdrom {
|
||||||
|
iso = "Fedora-Workstation-Live-x86_64-41-1.4.iso"
|
||||||
storage = "local-lvm"
|
storage = "local-lvm"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
efidisk {
|
||||||
|
size = "4M"
|
||||||
|
storage = "local-lvm"
|
||||||
|
}
|
||||||
|
|
||||||
|
ipconfig0 = "ip=192.168.1.24/24"
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user