diff options
Diffstat (limited to 'main.tf')
| -rw-r--r-- | main.tf | 18 |
1 files changed, 7 insertions, 11 deletions
@@ -18,35 +18,31 @@ provider "proxmox" { } resource "proxmox_lxc" "test" { - target_node = "atlas" # your Proxmox node name - hostname = "web" + target_node = "atlas" # "tl-core02" + hostname = "test" # "training-xxx" ostemplate = "local:vztmpl/alpine-3.21-default_20241217_amd64.tar.xz" unprivileged = true password = "test1" - cores = 2 + cores = 1 memory = 512 swap = 512 - # root disk rootfs { - storage = "local-lvm" # or your ZFS/LVM storage name + storage = "local-lvm" size = "4G" } - # network network { name = "eth0" bridge = "vmbr0" - ip = "dhcp" # or "192.168.10.50/24" - # gw = "192.168.10.1" # needed if using static IP + ip = "dhcp" + #gw = "192.168.1.1" } - # optional: inject your SSH key so you don’t use the password # ssh_public_keys = file("~/.ssh/id_rsa.pub") - # quality-of-life start = true - #tags = "tf,lxc,web" + #tags = "tofu,lxc" } |
