mirror of
https://gitea.fenix-dev.com/fenix-gitea-admin/iac-opentofu-private.git
synced 2025-10-27 07:43:07 +00:00
proxmox vm01
This commit is contained in:
53
proxmox.tf
53
proxmox.tf
@ -1,3 +1,56 @@
|
||||
provider "proxmox" {
|
||||
pm_api_url = var.proxmox_server
|
||||
}
|
||||
|
||||
resource "proxmox_vm_qemu" "vm-kubernetes-01" {
|
||||
name = "VM-kubernetes-01"
|
||||
target_node = "fenix"
|
||||
vmid = 1001
|
||||
desc = "VM kubernetes 01 created via iac"
|
||||
bios = "seabios"
|
||||
onboot = true
|
||||
vm_state = "running"
|
||||
boot = "scsi0;ide2;net0"
|
||||
agent = 1
|
||||
hastate = "enabled"
|
||||
hagroup = "kubernetes-group"
|
||||
qemu_os
|
||||
memory = 4096
|
||||
hotplug = "network,disk,usb"
|
||||
scsihw = "virtio-scsi-single"
|
||||
pool
|
||||
tags = "iac-tag"
|
||||
os_type = "ubuntu"
|
||||
ipconfig0 = "ip=192.168.1.24"
|
||||
cpu {
|
||||
cores = 2
|
||||
sockets = 1
|
||||
type = "x86-64-v2-AES"
|
||||
}
|
||||
network {
|
||||
id = 0
|
||||
model = "virtio"
|
||||
bridge = "vmbr0"
|
||||
}
|
||||
disks {
|
||||
|
||||
ide {
|
||||
ide2 {
|
||||
cdrom {
|
||||
iso = "Fedora-Workstation-Live-x86_64-41-1.4.iso"
|
||||
}
|
||||
}
|
||||
},
|
||||
scsi {
|
||||
disk {
|
||||
backup = true
|
||||
size = "64G"
|
||||
storage = "local-lvm"
|
||||
}
|
||||
}
|
||||
},
|
||||
efidisk {
|
||||
efitype = "4m",
|
||||
storage = "local-lvm"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user