--- # ============================================================================= # proxmox_drain — defaults # ============================================================================= # Target selection strategy: resources | explicit # resources = pick node with most available mem+cpu # explicit = use drain_target_node variable drain_target_strategy: resources # Explicit target node (only used when drain_target_strategy: explicit) drain_target_node: "" # Resource weighting for target scoring (must sum to 1.0) drain_score_mem_weight: 0.6 drain_score_cpu_weight: 0.4 # Migration behaviour drain_online: true # live migrate running VMs drain_shutdown_fallback: true # shutdown VM if live migrate fails drain_vm_shutdown_timeout: 120 # seconds to wait for graceful shutdown drain_lxc_restart: true # restart LXC after migration # State file — written to Semaphore host for restore mode drain_state_dir: "/tmp/proxmox_drain_state" # Filtering — skip VMs matching these tags (comma-separated string in PVE) drain_exclude_tags: - nomigrate - pinned # API connection (inherited from inventory) api_port: 8006 validate_certs: false