generated from hashicorp/packer-plugin-scaffolding
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Updated the docs for the driver configuration. - Updated the error messages and corresponding tests for clarity and to be more idiomatic. Signed-off-by: Ryan Johnson <ryan.johnson@broadcom.com>
- Loading branch information
1 parent
3059905
commit 2417d6c
Showing
5 changed files
with
139 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 31 additions & 27 deletions
58
docs-partials/builder/vmware/common/DriverConfig-not-required.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,46 @@ | ||
<!-- Code generated from the comments of the DriverConfig struct in builder/vmware/common/driver_config.go; DO NOT EDIT MANUALLY --> | ||
|
||
- `fusion_app_path` (string) - Path to "VMware Fusion.app". By default this is | ||
/Applications/VMware Fusion.app but this setting allows you to | ||
customize this. | ||
- `fusion_app_path` (string) - The installation path of the VMware Fusion application. Defaults to | ||
`/Applications/VMware Fusion.app` | ||
|
||
~> **Note:** This is only required if you are using VMware Fusion as a | ||
local desktop hypervisor and have installed it in a non-default location. | ||
|
||
- `remote_type` (string) - The type of remote machine that will be used to | ||
build this VM rather than a local desktop product. The only value accepted | ||
for this currently is esx5. If this is not set, a desktop product will | ||
be used. By default, this is not set. | ||
- `remote_type` (string) - The type of remote hypervisor that will be used. If set, the remote | ||
hypervisor will be used for the build. If not set, a local desktop | ||
hypervisor (VMware Fusion or VMware Workstation) will be used. | ||
Available options include `esx5` for VMware ESXi. | ||
|
||
- `remote_datastore` (string) - The path to the datastore where the VM will be stored | ||
on the ESXi machine. | ||
- `remote_datastore` (string) - The datastore where the virtual machine will be stored on the ESXi host. | ||
|
||
- `remote_cache_datastore` (string) - The path to the datastore where supporting files | ||
will be stored during the build on the remote machine. | ||
- `remote_cache_datastore` (string) - The datastore attached to the remote hypervisor to use for the build. | ||
Supporting files such as ISOs and floppies are cached in this datastore | ||
during the build. Defaults to `datastore1`. | ||
|
||
- `remote_cache_directory` (string) - The path where the ISO and/or floppy files will | ||
be stored during the build on the remote machine. The path is relative to | ||
the remote_cache_datastore on the remote machine. | ||
- `remote_cache_directory` (string) - The directory path on the remote cache datastore to use for the build. | ||
Supporting files such as ISOs and floppies are cached in this directory, | ||
relative to the `remote_cache_datastore`, during the build. Defaults to | ||
`packer_cache`. | ||
|
||
- `cleanup_remote_cache` (bool) - When set to true, Packer will cleanup the cache folder where the ISO file is stored during the build on the remote machine. | ||
By default, this is set to false. | ||
- `cleanup_remote_cache` (bool) - Remove items added to the remote cache after the build is complete. | ||
Defaults to `false`. | ||
|
||
- `remote_host` (string) - The host of the remote machine used for access. | ||
This is only required if remote_type is enabled. | ||
- `remote_host` (string) - The fully qualified domain name or IP address of the remote hypervisor | ||
where the virtual machine is created. | ||
|
||
~> **Note:** Required if `remote_type` is set. | ||
|
||
- `remote_port` (int) - The SSH port of the remote machine | ||
- `remote_port` (int) - The SSH port of the remote hypervisor. Defaults to `22`. | ||
|
||
- `remote_username` (string) - The SSH username used to access the remote machine. | ||
- `remote_username` (string) - The SSH username for access to the remote hypervisor. Defaults to `root`. | ||
|
||
- `remote_password` (string) - The SSH password for access to the remote machine. | ||
- `remote_password` (string) - The SSH password for access to the remote hypervisor. | ||
|
||
- `remote_private_key_file` (string) - The SSH key for access to the remote machine. | ||
- `remote_private_key_file` (string) - The SSH key for access to the remote hypervisor. | ||
|
||
- `skip_validate_credentials` (bool) - When Packer is preparing to run a | ||
remote hypervisor build, and export is not disable, by default it runs a no-op | ||
ovftool command to make sure that the remote_username and remote_password | ||
given are valid. If you set this flag to true, Packer will skip this | ||
validation. Default: false. | ||
- `skip_validate_credentials` (bool) - Skip the validation of the credentials for access to the remote | ||
hypervisor. By default, export is enabled and the plugin will validate | ||
the credentials ('remote_username' and 'remote_password'), for use by | ||
VMware OVF Tool, before starting the build. Defaults to `false`. | ||
|
||
<!-- End of code generated from the comments of the DriverConfig struct in builder/vmware/common/driver_config.go; --> |