mirror of
https://github.com/cvk98/Proxmox-load-balancer.git
synced 2026-04-25 04:25:50 +03:00
[PR #3] Feature/only run on master #25
Labels
No labels
documentation
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Proxmox-load-balancer#25
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/cvk98/Proxmox-load-balancer/pull/3
State: closed
Merged: Yes
Not sure if this is a direction you wanted to go in with PLB, but I've added a capability for the script to determine if it's running on a cluster master node, and only run if it is. This means I can configure all my proxmox hosts identically using ansible, but the script only actually does anything on one node, even if the cluster HA reconfigures itself.
only_on_mastertoON, the script will skip migrating any VMs ifhostname != cluster_master.OFFbecause if you're running it from a different machine altogether, it would never run.OFFif theonly_on_masteris not in config.yml, to prevent users having to update config on upgrade.[PR #3] [MERGED] Feature/only run on masterto [PR #3] Feature/only run on master