- Updated documentation for users who disable root SSH - Added setup instructions for non-root user with sudo access - Configured write permissions for /var/lib/vz/snippets - Added Option A (root) and Option B (non-root) SSH setup guides - Enhanced troubleshooting for permission denied errors - Updated terraform.tfvars.example with non-root user example
76 lines
2.3 KiB
Text
76 lines
2.3 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)
|
|
# If root SSH is disabled, use your personal user (must have sudo access)
|
|
# Example: pm_ssh_username = "eduardo"
|
|
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"
|