initial terraform commit
This commit is contained in:
48
main.tf
Normal file
48
main.tf
Normal file
@@ -0,0 +1,48 @@
|
||||
terraform {
|
||||
required_providers {
|
||||
proxmox = {
|
||||
source = "bpg/proxmox"
|
||||
version = ">= 0.50.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
provider "proxmox" {
|
||||
endpoint = "https://192.168.0.166:8006"
|
||||
api_token = var.proxmox_api_token
|
||||
insecure = true
|
||||
}
|
||||
|
||||
#109 - ubuntu22
|
||||
#128 - ubuntu24
|
||||
#118 - debian12
|
||||
resource "proxmox_virtual_environment_vm" "media-management" {
|
||||
name = "media-management"
|
||||
node_name = "homestrg1"
|
||||
clone {
|
||||
vm_id = 128
|
||||
full = false
|
||||
}
|
||||
|
||||
cpu {
|
||||
cores = 2
|
||||
}
|
||||
|
||||
memory {
|
||||
dedicated = 4096
|
||||
}
|
||||
|
||||
disk {
|
||||
datastore_id = "local-lvm"
|
||||
interface = "scsi0"
|
||||
size = "15"
|
||||
}
|
||||
|
||||
network_device {
|
||||
model = "virtio"
|
||||
bridge = "vmbr0"
|
||||
}
|
||||
|
||||
boot_order = ["scsi0"]
|
||||
}
|
||||
Reference in New Issue
Block a user