This repository has been archived on 2024-07-30. You can view files and clone it, but cannot push or open issues or pull requests.
IaC-Homelab/ubuntu22-template2.tf

41 lines
660 B
Terraform
Raw Permalink Normal View History

2024-06-24 17:36:44 -04:00
resource "proxmox_virtual_environment_vm" "Ubuntu-22-Template2" {
name = "ubuntu-22"
node_name = "pve2"
vm_id = 8101
tags = ["tofu", "ubuntu-22"]
template = true
started = false
disk {
datastore_id = "local-lvm"
2024-06-29 10:08:01 -04:00
file_id = "local:iso/jammy-server-cloudimg-amd64.img"
2024-06-24 17:36:44 -04:00
interface = "scsi0"
size = 4
}
agent {
enabled = true
}
initialization {
ip_config {
ipv4 {
address = "dhcp"
}
}
2024-06-24 19:47:57 -04:00
user_data_file_id = proxmox_virtual_environment_file.cloud_config2.id
2024-06-24 17:36:44 -04:00
}
serial_device {}
network_device {
bridge = "vmbr0"
}
vga {
type = "serial0"
}
}