salt-ext-modules-vmware icon indicating copy to clipboard operation
salt-ext-modules-vmware copied to clipboard

[FEATURE REQUEST]: Add support for specifying `hBDatastoreCandidatePolicy` and `heartbeatDatastore` to `saltext.vmware.modules.cluster_ha`

Open ggiesen opened this issue 2 years ago • 0 comments

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.

ggiesen avatar May 17 '22 18:05 ggiesen