feat: add minio machine

This commit is contained in:
Alexander Navarro 2025-02-10 16:09:34 -03:00
parent fd44bd54a5
commit c48fdfe84f
5 changed files with 54 additions and 7 deletions

View file

@ -1,9 +1,15 @@
# docs: https://registry.terraform.io/providers/bpg/proxmox/latest/docs/resources/virtual_environment_container
resource "proxmox_virtual_environment_container" "banana-hoard" {
vm_id = 160
variable "vm_names" {
type = list(string)
default = ["donkey-kong"]
}
resource "proxmox_virtual_environment_container" "vm" {
for_each = toset(var.vm_names)
vm_id = 160 + index(var.vm_names, each.key)
node_name = "pve"
description = "S3 data storage manager"
description = "S3 data storage"
unprivileged = true
start_on_boot = "true"
@ -14,17 +20,16 @@ resource "proxmox_virtual_environment_container" "banana-hoard" {
}
initialization {
hostname = "banana-hoard"
hostname = each.key
ip_config {
ipv4 {
address = "10.0.10.60/24"
address = "10.0.10.${160 + index(var.vm_names, each.key)}/24"
gateway = "10.0.0.10"
}
}
user_account {
# keys = [data.localfile.aleidk_key_pub.filename."/home/aleidk/Repos/Private/homelab/"]
password = var.root_password
}
}