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.
if you set only_on_master to ON, the script will skip migrating any VMs if hostname != cluster_master.
defaults to OFF because if you're running it from a different machine altogether, it would never run.
defaults to OFF if the only_on_master is not in config.yml, to prevent users having to update config on upgrade.
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_master
toON
, the script will skip migrating any VMs ifhostname != cluster_master
.OFF
because if you're running it from a different machine altogether, it would never run.OFF
if theonly_on_master
is not in config.yml, to prevent users having to update config on upgrade.