homelab/terraform/proxmox-examples/docker-host/terraform.tfvars.example
Claude 28849389ea
fix: Add SSH username configuration for Proxmox provider
- Added pm_ssh_username variable (default: "root")
- Updated Proxmox provider SSH config to use username
- Fixes "unable to authenticate user "" over SSH" error
- Updated terraform.tfvars.example with SSH username
- Enhanced README with complete SSH setup instructions
- Added troubleshooting for common SSH authentication issues
2025-11-11 06:26:50 +00:00

74 lines
2.1 KiB
Text

# Proxmox Connection
pm_api_url = "https://proxmox.local:8006"
pm_api_token_id = "root@pam!terraform"
pm_api_token_secret = "your-secret-here"
pm_tls_insecure = true
# SSH username for Proxmox host (for uploading cloud-init snippets)
pm_ssh_username = "root"
# Proxmox Configuration
proxmox_node = "pve"
template_vm_id = 9000
storage = "local-lvm"
# Storage for cloud-init snippets (must support 'snippets' content type)
# Common options: "local" (directory storage), or create a directory storage
# See README.md for setup instructions if you get datastore errors
snippets_storage = "local"
network_bridge = "vmbr0"
# VM Configuration
vm_name = "docker-host"
vm_cores = 4
vm_memory = 8192
disk_size = "50"
# Network Configuration
vm_ip_address = "dhcp" # Or "192.168.1.100" for static
vm_ip_netmask = 24
vm_gateway = "192.168.1.1"
# User Configuration
vm_username = "ubuntu"
vm_password = "changeme_please_set_secure_password"
vm_ssh_keys = [
"ssh-rsa AAAAB3NzaC1yc2E... your-key-here"
]
# Optional
vm_timezone = "America/Los_Angeles"
clone_homelab_repo = true
github_username = "efigueroa"
# Operating System
# Options: "ubuntu", "almalinux", "debian"
vm_os_type = "almalinux"
# GPU Passthrough (NVIDIA GTX 1070)
# Enable GPU passthrough for services like Jellyfin, Ollama, Immich
# Requires: AMD IOMMU enabled in Proxmox host GRUB
# Set to true to enable GPU passthrough
enable_gpu_passthrough = false
# GPU PCI ID - Find with: lspci | grep -i nvidia
# Example: 0000:01:00 (use .0 for GPU, .1 for audio)
gpu_pci_id = "0000:01:00"
# Media Directory Mounts via NFS
# Mount media directories from Proxmox host to VM
# Requires NFS server configured on Proxmox host
mount_media_directories = true
# Proxmox host IP for NFS mounts (not the API URL)
# This is the IP address the VM will use to connect to NFS
proxmox_host_ip = "192.168.1.1"
# Source path on Proxmox host for media directories
# Subdirectories: audiobooks, books, comics, complete, downloads,
# homemovies, incomplete, movies, music, photos, tv
media_source_path = "/data/media"
# Mount path in VM (where media directories will be accessible)
media_mount_path = "/media"