Sun N1 Service Provisioning System 5.2 Plug-in Development Guide

Sample Simple Component

The sample plug-in contains the container_util.xml file in the components directory. This file defines the container_util component, which defines several utilities for installing, booting, and managing Solaris containers. The following example creates a simple component with the following elements.

<?xml version="1.0" encoding="UTF-8"?>
<component platform='system#Solaris 10' xmlns='http://www.sun.com/schema/SPS' 
   name='container_util' version='5.2' description='Solaris Container Utilities' 
   xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' 
   softwareVendor='Sun Microsystems' path='/com/sun/solaris' 
   xsi:schemaLocation='http://www.sun.com/schema/SPS component.xsd'>
			<extends>
				<type name='system#directory'></type>
			</extends>
			<varList>
				<var name='installPath' 
					default=':[target:sys.raDataDir]:[/]systemcomps:[/]com.sun.solaris'></var>
				<var name='installPermissions' default='555'></var>
				<var name='installDiffDeploy' default='FALSE'></var>
			</varList>
			<resourceRef>
				<resource name='/com/sun/solaris/container_util' version='2.0'></resource>
			</resourceRef>
			<installList>
				<installSteps returns='false' name='default'>
					<deployResource></deployResource>
					<createSnapshot blockName='default'></createSnapshot>
				</installSteps>
			</installList>
</component>