45 lines
822 B
HCL
45 lines
822 B
HCL
terraform {
|
|
required_providers {
|
|
proxmox = {
|
|
source = "Telmate/proxmox"
|
|
version = "2.9.11"
|
|
}
|
|
}
|
|
}
|
|
|
|
provider "proxmox" {
|
|
pm_api_url = var.proxmox_api_url
|
|
pm_api_token_id = var.proxmox_token_id
|
|
pm_api_token_secret = var.proxmox_token_secret
|
|
pm_tls_insecure = true
|
|
}
|
|
|
|
resource "proxmox_lxc" "minio" {
|
|
target_node = "pve"
|
|
hostname = "minio"
|
|
ostemplate = "loki:vztmpl/nixos-23.05-default_20230104_amd64.tar.xz"
|
|
unprivileged = false
|
|
|
|
memory = 2048
|
|
swap = 2048
|
|
|
|
rootfs {
|
|
storage = "local-lvm"
|
|
size = "32G"
|
|
}
|
|
|
|
mountpoint {
|
|
key = "0"
|
|
slot = 0
|
|
storage = "local-lvm"
|
|
mp = "/data"
|
|
size = "256G"
|
|
}
|
|
|
|
network {
|
|
name = "eth0"
|
|
bridge = "vmbr0"
|
|
ip = "10.0.0.204/24"
|
|
gw = "10.0.0.1"
|
|
}
|
|
}
|