salt-ext-modules-vmware
salt-ext-modules-vmware copied to clipboard
[FEATURE REQUEST]: Add support for specifying `hBDatastoreCandidatePolicy` and `heartbeatDatastore` to `saltext.vmware.modules.cluster_ha`
The saltext.vmware.modules.cluster_ha
execution module does not currently permit any way to specify hBDatastoreCandidatePolicy
(Heartbeat datastore selection policy) and heartbeatDatastore
(Heartbeat datstores). Using the module currently uses the default of allFeasibleDs
(Automatically select datastores accessible to the hosts) and selects the first two usable datastores, even if they are suboptimal from a diversity/redundancy standpoint.
The cluster_ha
module should add two more kwargs to allow the user to specify these options:
Example:
salt '*' vmware_cluster_ha.configure cluster1 dc1 enable=True heartbeat_datastore_candidate_policy=userSelectedD heartbeat_datastores='["ds_ha1", "ds_ha2"]'
Bonus points for a proper state module.