iac/terraform/proxmox/Plex.tf

56 lines
1 KiB
Terraform
Raw Normal View History

2025-01-08 00:28:56 -05:00
resource "proxmox_virtual_environment_vm" "Plex" {
node_name = "prox"
vm_id = "202"
name = "Plex"
description = "Plex"
cpu {
cores = "4"
type = "host"
architecture = "x86_64"
}
memory {
dedicated = "4096"
}
network_device {
bridge = "vmbr0"
2025-01-09 22:14:58 -05:00
vlan_id = 23
2025-01-08 00:28:56 -05:00
}
disk {
datastore_id = "Fast2Tb"
size = "30"
interface = "scsi0"
}
clone {
vm_id = "9996"
}
2025-01-09 22:14:58 -05:00
vga {
memory = 16
type = "serial0"
}
2025-01-08 00:28:56 -05:00
initialization {
ip_config {
ipv4 {
address = "dhcp"
}
}
user_data_file_id = proxmox_virtual_environment_file.cloud_config.id
}
lifecycle {
ignore_changes = [
initialization[0].user_account[0].keys,
initialization[0].user_account[0].password,
initialization[0].user_account[0].username,
initialization[0].user_data_file_id
]
}
}