tf defined vms

This commit is contained in:
counterweight 2025-10-31 08:54:18 +01:00
parent 6f42e43efb
commit 4d8e641466
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
7 changed files with 261 additions and 0 deletions

View file

@ -0,0 +1,35 @@
proxmox_api_url = "https://nodito:8006/api2/json"
proxmox_api_token_id = "root@pam!tofu"
proxmox_api_token_secret = "REPLACE_ME"
proxmox_node = "nodito"
zfs_storage_name = "proxmox-tank-1"
template_name = "debian-13-cloud-init"
cloud_init_user = "counterweight"
# paste your ~/.ssh/id_ed25519.pub or similar
ssh_authorized_keys = <<EOKEY
ssh-ed25519 AAAA... your-key
EOKEY
vms = {
web1 = {
name = "web1"
vmid = 1101
cores = 2
memory_mb = 2048
disk_size_gb = 20
ipconfig0 = "ip=dhcp"
}
db1 = {
name = "db1"
vmid = 1102
cores = 4
memory_mb = 4096
disk_size_gb = 40
ipconfig0 = "ip=dhcp"
}
}