factorio first run

This commit is contained in:
Ryan Toler
2025-12-21 06:12:05 +00:00
parent dbbec62c2b
commit 018f470bdb
4 changed files with 151 additions and 1 deletions

40
factorio.tf Normal file
View File

@@ -0,0 +1,40 @@
resource "proxmox_lxc" "factorio" {
target_node = "ryuk"
hostname = "factorio"
vmid = 217
ostemplate = "cephfs:vztmpl/debian-13-standard_13.1-2_amd64.tar.zst"
password = "terraform"
unprivileged = true
cores = 8
memory = 4096
swap = 1024
start = true
tags = "terraform;deb13"
nameserver = "192.168.0.224"
ssh_public_keys = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINFw70PrMsilcsqCrwW1I6PAt3anQbhmVg+t/HUfomug ryan@mxDesktop"
features {
nesting = true
}
rootfs {
storage = "local-lvm"
size = "64G"
}
network {
name = "eth0"
bridge = "vmbr0"
ip = "192.168.0.63/24"
gw = "192.168.0.1"
}
provisioner "local-exec" {
command = "./.ansible.d/setup.sh $IP"
environment = {
IP = "192.168.0.67"
}
}
}