Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add disabled to vsphere_ha_vm_override #1505

Merged
merged 1 commit into from
Jan 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions vsphere/resource_vsphere_ha_vm_override.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ var vmOverrideClusterDasConfigInfoServiceStateAllowedValues = []string{
string(types.ClusterDasVmSettingsRestartPriorityMedium),
string(types.ClusterDasVmSettingsRestartPriorityHigh),
string(types.ClusterDasVmSettingsRestartPriorityHighest),
string(types.ClusterDasVmSettingsRestartPriorityDisabled),
}

var vmOverrideClusterVMStorageProtectionForPDLAllowedValues = []string{
Expand Down
8 changes: 4 additions & 4 deletions website/docs/r/ha_vm_override.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ while not affecting the rest of the cluster.

For more information on vSphere HA, see [this page][ref-vsphere-ha-clusters].

[ref-vsphere-ha-clusters]: https://docs.vmware.com/en/VMware-vSphere/6.5/com.vmware.vsphere.avail.doc/GUID-5432CA24-14F1-44E3-87FB-61D937831CF6.html
[ref-vsphere-ha-clusters]: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.avail.doc/GUID-5432CA24-14F1-44E3-87FB-61D937831CF6.html

~> **NOTE:** This resource requires vCenter and is not available on direct ESXi
connections.
Expand All @@ -32,8 +32,8 @@ virtual machine in the cluster looked up by the
Considering a scenario where this virtual machine is of high value to the
application or organization for which it does its work, it's been determined in
the event of a host failure, that this should be one of the first virtual
machines to be started by vSphere HA during recovery. Hence, its
[`ha_vm_restart_priority`](#ha_vm_restart_priority) as been set to `highest`,
machines to be started by vSphere HA during recovery. Hence, it
[`ha_vm_restart_priority`](#ha_vm_restart_priority) has been set to `highest`,
which, assuming that the default restart priority is `medium` and no other
virtual machine has been assigned the `highest` priority, will mean that this
VM will be started before any other virtual machine in the event of host
Expand Down Expand Up @@ -126,7 +126,7 @@ for an entire list of version restrictions.

* `ha_vm_restart_priority` - (Optional) The restart priority for the virtual
machine when vSphere detects a host failure. Can be one of
`clusterRestartPriority`, `lowest`, `low`, `medium`, `high`, or `highest`.
`clusterRestartPriority`, `lowest`, `low`, `medium`, `high`, `highest`, or `disabled`.
Default: `clusterRestartPriority`.
* `ha_vm_restart_timeout` - (Optional) The maximum time, in seconds, that
vSphere HA will wait for this virtual machine to be ready. Use `-1` to
Expand Down