From 709a173060e3353ec9d8c2c2660efd88fcd7779a Mon Sep 17 00:00:00 2001 From: Megan Marsh Date: Fri, 9 Oct 2020 13:09:06 -0700 Subject: [PATCH] fix docs linking issue --- builder/vsphere/common/config_location.go | 13 ++++++++----- .../pages/docs/builders/vmware/vsphere-clone.mdx | 2 +- website/pages/docs/builders/vmware/vsphere-iso.mdx | 2 +- .../vsphere/common/LocationConfig-not-required.mdx | 13 ++++++++----- 4 files changed, 18 insertions(+), 12 deletions(-) diff --git a/builder/vsphere/common/config_location.go b/builder/vsphere/common/config_location.go index 5b57917d6..60dffb222 100644 --- a/builder/vsphere/common/config_location.go +++ b/builder/vsphere/common/config_location.go @@ -14,15 +14,18 @@ type LocationConfig struct { VMName string `mapstructure:"vm_name"` // VM folder to create the VM in. Folder string `mapstructure:"folder"` - // ESXi cluster where target VM is created. See - // [Working with Clusters](#working-with-clusters). + // ESXi cluster where target VM is created. See the + // [Working With Clusters And Hosts](#working-with-clusters-and-hosts) + // section above for more details. Cluster string `mapstructure:"cluster"` // ESXi host where target VM is created. A full path must be specified if // the host is in a folder. For example `folder/host`. See the - // `Specifying Clusters and Hosts` section above for more details. + // [Working With Clusters And Hosts](#working-with-clusters-and-hosts) + // section above for more details. Host string `mapstructure:"host"` - // VMWare resource pool. If not set, it will look for the root resource pool of the `host` or `cluster`. - // If a root resource is not found, it will then look for a default resource pool. + // VMWare resource pool. If not set, it will look for the root resource + // pool of the `host` or `cluster`. If a root resource is not found, it + // will then look for a default resource pool. ResourcePool string `mapstructure:"resource_pool"` // VMWare datastore. Required if `host` is a cluster, or if `host` has // multiple datastores. diff --git a/website/pages/docs/builders/vmware/vsphere-clone.mdx b/website/pages/docs/builders/vmware/vsphere-clone.mdx index 588ceca9a..ba7d26ba0 100644 --- a/website/pages/docs/builders/vmware/vsphere-clone.mdx +++ b/website/pages/docs/builders/vmware/vsphere-clone.mdx @@ -280,7 +280,7 @@ Minimal example of usage: -## Working with Clusters +## Working With Clusters And Hosts #### Standalone Hosts diff --git a/website/pages/docs/builders/vmware/vsphere-iso.mdx b/website/pages/docs/builders/vmware/vsphere-iso.mdx index c43d006de..92b0287c4 100644 --- a/website/pages/docs/builders/vmware/vsphere-iso.mdx +++ b/website/pages/docs/builders/vmware/vsphere-iso.mdx @@ -290,7 +290,7 @@ Minimal example of usage to import a OVF template: @include 'helper/communicator/WinRM-not-required.mdx' -## Working with Clusters +## Working With Clusters And Hosts #### Standalone Hosts diff --git a/website/pages/partials/builder/vsphere/common/LocationConfig-not-required.mdx b/website/pages/partials/builder/vsphere/common/LocationConfig-not-required.mdx index 3cd8137bb..32b093c18 100644 --- a/website/pages/partials/builder/vsphere/common/LocationConfig-not-required.mdx +++ b/website/pages/partials/builder/vsphere/common/LocationConfig-not-required.mdx @@ -4,15 +4,18 @@ - `folder` (string) - VM folder to create the VM in. -- `cluster` (string) - ESXi cluster where target VM is created. See - [Working with Clusters](#working-with-clusters). +- `cluster` (string) - ESXi cluster where target VM is created. See the + [Working With Clusters And Hosts](#working-with-clusters-and-hosts) + section above for more details. - `host` (string) - ESXi host where target VM is created. A full path must be specified if the host is in a folder. For example `folder/host`. See the - `Specifying Clusters and Hosts` section above for more details. + [Working With Clusters And Hosts](#working-with-clusters-and-hosts) + section above for more details. -- `resource_pool` (string) - VMWare resource pool. If not set, it will look for the root resource pool of the `host` or `cluster`. - If a root resource is not found, it will then look for a default resource pool. +- `resource_pool` (string) - VMWare resource pool. If not set, it will look for the root resource + pool of the `host` or `cluster`. If a root resource is not found, it + will then look for a default resource pool. - `datastore` (string) - VMWare datastore. Required if `host` is a cluster, or if `host` has multiple datastores.