Use the installadm create-manifest command to associate a custom AI manifest with a specific install service. You can also add a derived manifest script to an install service. Note that each install service may have multiple AI manifests or derived manifest scripts associated with it. Any manifest or script that is not configured as the default manifest for a given service, should have client criteria defined, so that the right instructions are used for each client.
Before using any of the following examples, you must have first created an AI manifest. See Chapter 10, Provisioning the Client System for instructions on creating an AI manifest.
The syntax of the command is:
installadm create-manifest -n service -f filename
Specifies the service that the manifest or derived manifest script is to be associated with.
Identifies the path of the manifest or derived manifest script to associate with the service.
This example adds the manifest-sparc-ent.xml manifest to the solaris11_2-sparc install service. The –c option specifies that any clients that are using this install service and identify themselves as M5000 or M4000 servers are assigned the manifest-sparc-ent.xml installation instructions. The –m option sets the AI instance name of the manifest to sparc-ent.
# installadm create-manifest -n solaris11_2-sparc -f ./manifest-sparc-ent.xml \ -m sparc-ent -c platform="SUNW,SPARC-Enterprise"Example 8-17 Associating Client Criteria With a Script
This example adds the manifest-sparc-ent.xml manifest to the solaris11_2-sparc install service. The client criteria are defined in the criteria-sparc-ent.xml file.
# installadm create-manifest -n solaris11_2-sparc -f ./manifest-sparc-ent.xml \ -m sparc-ent -C ./criteria-sparc-ent.xml
The content of the criteria-sparc-ent.xml file is as follows:
<ai_criteria_manifest> <ai_criteria name="platform"> <value>SUNW,SPARC-Enterprise</value> </ai_criteria> </ai_criteria_manifest>Example 8-18 Creating a Default Manifest for an Install Service
This example uses the –d option to specify that the named manifest or script is the new default for this service. Any client criteria associated with the manifest are stored but are ignored while this manifest or script is the default.
# installadm create-manifest -n solaris11_2-sparc -f ./manifest-sparc-ent.xml -d