diff options
| author | Max Bossing <info@maxbossing.de> | 2025-09-30 12:57:31 +0200 | 
|---|---|---|
| committer | Max Bossing <info@maxbossing.de> | 2025-09-30 12:57:31 +0200 | 
| commit | c32b1988780c2b701bca2cf62587a4024bd99cad (patch) | |
| tree | 496ac5df92ca2d50cff522d27da57b03c2e60666 /main.tf | |
| parent | 538fd0b7f16f206df05438b8373f418fff79b7a5 (diff) | |
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"  } | 
