8.0

Table Of Contents
4 Select to either apply the rule to all hosts in the inventory or only to hosts that match a specific
pattern.
You can select one or more patterns.
For example, the rule can apply only to hosts in a vCenter Single Sign-On domain, with a
specific host name, or that match a specific IPv4 range.
5 On the Configuration page of the wizard, select the Host Location check box, and click Next.
You can ignore the Image, Host Settings and Script Bundle check boxes. Image specification
and configuration of hosts in the target cluster, and any post-installation settings are created
automatically. Even if you select any of the check boxes, the rule ignores the selections.
6 On the Select host location page of the wizard, select a cluster that manages ESXi
configuration at a cluster level.
7 On the Ready to complete page, review the summary information for the new rule.
8 Click Finish.
Results
You can view the newly created rule listed on the Deploy Rules tab.
What to do next
n Activate a vSphere Auto Deploy rule. See Activate, Deactivate, and Reorder Deploy Rules.
n For more information on stateless caching and stateful installs, see Using vSphere Auto Deploy
for Stateless Caching and Stateful Installs.
Working with Script Bundles
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
n Verify that you can run the script in the ESXi Shell.
Procedure
1 Navigate to Home > Auto Deploy.
By default, only the administrator role has privileges to use the vSphere Auto Deploy service.
2 Select the Script Bundles tab.
3 Click Upload.
VMware ESXi Installation and Setup
VMware, Inc. 153