51 lines
990 B
HCL
51 lines
990 B
HCL
# docs: https://registry.terraform.io/providers/bpg/proxmox/latest/docs/resources/virtual_environment_container
|
|
|
|
resource "proxmox_virtual_environment_container" "banana-hoard" {
|
|
vm_id = 160
|
|
node_name = "pve"
|
|
description = "S3 data storage manager"
|
|
unprivileged = true
|
|
|
|
start_on_boot = "true"
|
|
|
|
disk {
|
|
datastore_id = "local-lvm"
|
|
size = 8
|
|
}
|
|
|
|
initialization {
|
|
hostname = "banana-hoard"
|
|
|
|
ip_config {
|
|
ipv4 {
|
|
address = "10.0.10.60/24"
|
|
gateway = "10.0.0.10"
|
|
}
|
|
}
|
|
|
|
user_account {
|
|
# keys = [data.localfile.aleidk_key_pub.filename."/home/aleidk/Repos/Private/homelab/"]
|
|
password = var.root_password
|
|
}
|
|
}
|
|
|
|
network_interface {
|
|
name = "eth0"
|
|
firewall = true
|
|
bridge = "vnet10"
|
|
}
|
|
|
|
operating_system {
|
|
template_file_id = "local:vztmpl/alpine-latest-base-2024-12-30.tar.gz"
|
|
type = "alpine"
|
|
}
|
|
|
|
tags = [
|
|
"storage",
|
|
"s3",
|
|
]
|
|
|
|
features {
|
|
nesting = true
|
|
}
|
|
}
|