Creating Semaphore

This commit is contained in:
tolerryan
2025-08-17 23:25:02 -05:00
parent 4e059b8330
commit 7d61d77c26
3 changed files with 98 additions and 20 deletions

47
semaphore.tf Normal file
View File

@@ -0,0 +1,47 @@
resource "proxmox_lxc" "semaphore" {
target_node = "ryuk"
hostname = "semaphore"
vmid = 226
ostemplate = "cephfs:vztmpl/debian-12-standard_12.7-1_amd64.tar.zst"
password = "terraform"
unprivileged = true
cores = 6
memory = 2024
start = true
tags = "terraform"
nameserver = "192.168.0.224"
ssh_public_keys = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINFw70PrMsilcsqCrwW1I6PAt3anQbhmVg+t/HUfomug ryan@mxDesktop"
features {
nesting = true
}
rootfs {
storage = "local-lvm"
size = "128G"
}
mountpoint{
key = "0"
slot = 0
storage = "CephSSD"
mp = "/data"
size = "128G"
}
network {
name = "eth0"
bridge = "vmbr0"
ip = "192.168.0.62/24"
gw = "192.168.0.1"
}
provisioner "local-exec" {
command = "./.ansible.d/setup.sh $IP"
environment = {
IP = "192.168.0.62"
}
}
}