generated from hashicorp/packer-plugin-scaffolding
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactors to use `allowedToolsFlavorValues` for tools upload flavor options based on constants. Signed-off-by: Ryan Johnson <[email protected]>
- Loading branch information
1 parent
593c198
commit 8e71e70
Showing
6 changed files
with
86 additions
and
59 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
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 |
---|---|---|
|
@@ -27,4 +27,4 @@ | |
"tools_upload_flavor": "linux" | ||
} | ||
] | ||
} | ||
} |
26 changes: 14 additions & 12 deletions
26
docs-partials/builder/vmware/common/ToolsConfig-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,18 +1,20 @@ | ||
<!-- Code generated from the comments of the ToolsConfig struct in builder/vmware/common/tools_config.go; DO NOT EDIT MANUALLY --> | ||
|
||
- `tools_upload_flavor` (string) - The flavor of the VMware Tools ISO to | ||
upload into the VM. Valid values are darwin, linux, and windows. By | ||
default, this is empty, which means VMware tools won't be uploaded. | ||
- `tools_upload_flavor` (string) - The flavor of VMware tools to upload into the virtual machine based on | ||
the guest operating system. Allowed values are `darwin` (macOS), `linux`, | ||
and `windows`. Default is empty and no version will be uploaded. | ||
|
||
- `tools_upload_path` (string) - The path in the VM to upload the VMware tools. This only takes effect if | ||
`tools_upload_flavor` is non-empty. This is a [configuration | ||
template](/packer/docs/templates/legacy_json_templates/engine) that has a single valid variable: | ||
`Flavor`, which will be the value of `tools_upload_flavor`. By default | ||
the upload path is set to `{{.Flavor}}.iso`. This setting is not used | ||
when `remote_type` is `esx5`. | ||
- `tools_upload_path` (string) - The path in the virtual machine to upload the VMware Tools. This only | ||
takes effect if `tools_upload_flavor` is non-empty. This is a | ||
[configuration template](/packer/docs/templates/legacy_json_templates/engine) | ||
that has a single valid variable, `Flavor`, which will be the value of | ||
`tools_upload_flavor` when the upload path is set to `{{.Flavor}}.iso`. | ||
|
||
~> **Note:** This setting is not used when `remote_type` is `esx5`. | ||
|
||
- `tools_source_path` (string) - The path on your local machine to fetch the vmware tools from. If this | ||
is not set but the tools_upload_flavor is set, then Packer will try to | ||
load the VMware tools from the VMware installation directory. | ||
- `tools_source_path` (string) - The local path on your machine to the VMware Tools ISO file. | ||
|
||
~> **Note:** If not set, but the `tools_upload_flavor` is set, the plugin | ||
will load the VMware Tools from the product installation directory. | ||
|
||
<!-- End of code generated from the comments of the ToolsConfig struct in builder/vmware/common/tools_config.go; --> |