feat: Add script_text
to linux_option
customization
#1621
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Adds support for a customization script (
script_text
) to be run on a Linux guest operating system during guest customization usinglinux_options
.See VMware KB 74880 for VMware Tools prerequisites on the template.
Also, a helpful option could allow a user to use an in-guest script to customize the workload versus a provisioner.
Acceptance Tests
main.tf
terraform.tfvars
Note the use of Heredoc style for string literal in
script_text
.Plan:
Apply:
Results in Guest OS:
Release Note
resource/virtual_machine
: Added support for guest customization script for Linux guest operating systems. (GH-1621)References
Closes #1557 (A script can be used to change the root password.)