lianep at eng.sun.com wrote:

>Alex writes:
>  
>
>>Hello all!
>>
>>I have a few custom smf manifests which I'd like to add during JumpStart.
>>    
>>
>
>If you put your custom manifests into the [/a]/var/svc/manifest hierarchy
>during jumpstart, they'll automatically be imported when the manfiest-import 
>service runs during the next boot.
>
>  
>
>>Also, I'd like a few others enabled during JumpStart. Is there a native way
>>in JumpStart or smf during installation, to provide for this? I'd like to
>>avoid using an /etc/rc3.d/S99postinstall script which deletes itself after
>>the first boot.
>>    
>>
>
>If you've got some customizations of the 'enabled' property for your 
>services or any system-delivered services, you can create a 
>site-specific profile.
>
>Place a profile which defines the services you want enabled or disabled 
>into [/a]/var/svc/profile/site.xml during jumpstart.  Again, these 
>customizations will be applied when the manifest-import service runs.
>(You can also apply a profile manually at any point using 'svccfg apply 
><file>'.)
>
>A site-specific profile to enable telnet and rlogin would look like this:
>
> <?xml version='1.0'?>
> <!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
> <service_bundle type='profile' name='site'
>         xmlns:xi='http://www.w3.org/2003/XInclude' >
>
>  <service name='network/telnet' version='1' type='service'>
>    <instance name='default' enabled='true'/>
>  </service>
>  <service name='network/rlogin' version='1' type='service'>
>    <instance name='default' enabled='true'/>
>  </service>
>
> </service_bundle>
>  
>

(I think network/rlogin:default is a mistake in the above?)

That aside, it would be nice if it was possible to have a site
file that was like this:

network/login:rlogin   enable
network/telnet:default   disable

etc. and didn't require the brain to serialise in XML %-/
Or at the very least for a tool to work with jumpstart bits
to convert something like the above into a site.xml file.
Could SMF search for a site.txt after searching for (and/or
processing) site.xml?

The attached script spits out some XML to do the right
stuff, given a simplified text input.

Darren

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: site.sh
URL: 
<http://mail.opensolaris.org/pipermail/smf-discuss/attachments/20071025/5ec24b5c/attachment.ksh>

Reply via email to