You can add a custom script for additional post-deployment host configuration. The script runs after you provision an ESXi host with Auto Deploy. For example, you can create a custom ESXi firewall rule and other configurations not available with Host Profiles.
Since vSphere 6.7 Update 1, you can add or remove a custom script by using the vSphere Client. A script bundle can include multiple scripts and must be delivered as a single compressed file with the .tgz extension. After uploaded to the vCenter Server, you can include the script bundle to an Auto Deploy rule.
Prerequisites
- Verify that you can run the script in the ESXi Shell.
Procedure
What to do next
- Activate a vSphere Auto Deploy rule. See Activate, Deactivate, and Reorder Deploy Rules.
- Edit a vSphere Auto Deploy rule. See Edit an Image Profile.
- Clone a vSphere Auto Deploy rule. See Clone a Deploy Rule
- View the host location, image profile, host profile, and added script bundles. See View Host Associations.
- Remediate non-compliant hosts. See Remediate a Non-compliant Host.
- Change the image profile association of a host. See Edit the Image Profile Association of a Host.