debcache creation

This commit is contained in:
tolerryan
2025-04-08 00:29:40 -05:00
parent 31a5ac2ff3
commit 16255c1d0e
5 changed files with 163 additions and 0 deletions

48
debcache.tf Normal file
View File

@@ -0,0 +1,48 @@
resource "proxmox_lxc" "debcache" {
target_node = "ryuk2"
hostname = "debcache"
vmid = 224
ostemplate = "cephfs:vztmpl/debian-12-standard_12.7-1_amd64.tar.zst"
password = "terraform"
unprivileged = true
cores = 6
memory = 2096
swap = 1024
start = true
tags = "terraform"
nameserver = "192.168.0.24"
ssh_public_keys = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINFw70PrMsilcsqCrwW1I6PAt3anQbhmVg+t/HUfomug ryan@mxDesktop"
features {
nesting = true
}
rootfs {
storage = "local-lvm"
size = "64G"
}
mountpoint{
key = "0"
slot = 0
storage = "IntelSSD"
mp = "/data"
size = "200G"
}
network {
name = "eth0"
bridge = "vmbr0"
ip = "192.168.0.60/24"
gw = "192.168.0.1"
}
provisioner "local-exec" {
command = "./.ansible.d/setup.sh $IP"
environment = {
IP = "192.168.0.60"
}
}
}