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/arm.tf
2024-06-24 15:33:09 -04:00

68 lines
No EOL
1.6 KiB
HCL

resource "proxmox_virtual_environment_vm" "ARM" {
# VM General Settings
node_name = "prox"
vm_id = 8100
name = "ARM"
description = "Ubuntu 24 ARM"
tags = ["tofu", "ubuntu-22", "auto-homelab-repo", "infrastructure"]
bios = "ovmf"
started = false
agent {
enabled = false # read 'Qemu guest agent' section, change to true only when ready
}
# VM Memory Settings
memory {
dedicated = 2048
}
# VM Network Settings
network_device {
bridge = "vmbr0"
vlan_id = 1
}
# VM Disk Settings
disk {
datastore_id = "Fast2Tb"
file_id = proxmox_virtual_environment_download_file.latest_ubuntu_22_arm_jammy_qcow2_img.id
size = 100
interface = "scsi0"
}
efi_disk {
type = "4m"
}
vga {
type = "serial0"
}
initialization {
ip_config {
ipv4 {
address = "dhcp"
}
}
user_account {}
}
lifecycle {
ignore_changes = [
initialization[0].user_account[0].keys,
initialization[0].user_account[0].password,
initialization[0].user_account[0].username,
]
}
}
resource "proxmox_virtual_environment_download_file" "latest_ubuntu_22_arm_jammy_qcow2_img" {
content_type = "iso"
datastore_id = "local"
node_name = "prox"
url = "https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-arm64.img"
}