Softpanorama
(slightly skeptical) Open Source Software Educational Society

May the source be with you, but remember the KISS principle ;-)

Softpanorama Search

Jumpstart Rules File

The rules file is a text file used to create the rules.ok file. The rules file is a look-up table consisting of one or more rules that define matches between system attributes and profiles. For example, the rule 

	karch sun4c - basic_prof 

matches a system with a sun4c platform name to the basic_prof  profile, which the Solaris installation program would use to install the system.

During a custom Jumpstart installation, the Solaris installation program attempts to match the rules in the rules.ok file in order: first rule through the last rule. A rule match occurs when the system being installed matches any of the values in the rule (as defined in Appendix A). As soon as a system matches a rule, the Solaris installation program stops reading the rules.ok file and begins to install the system as defined by the matched rule's profile.  This allows a fine grain control over different configuration clusters:

#### [!]keyword value [&& [!]keyword value] ... begin      profile      finish
#
#
             any -   -   any_machine  -
              ^  ^   ^       ^        ^
              |  |   |       |        |
              |  |   |       |        -------------- Finish script
              |  |   |       --------------- Profile
              |  |   -------------- Begin script
              |  ----------- Rule Value (specific system attribute)
              ----- Rule keyword (general system attributes)

Example:

# The following rule matches one system:

hostname host1 - host1_class set_root_pw

# The following rule matches all x86:

arch i386 x86-begin x86-class -

# The following rule matches any system:

any - - any_machine -

karch i86pc - basic_prof -

 Validating the rules file

Before the profile server is able to function the jumpstart share must have a rules.ok file.  The check script validates the rules file and creates the rules.ok file.

 

Usage:  check  [-r  <rules filename>]   [-p  <Solaris 2.x CD image path>]



Copyright © 1996-2009 by Dr. Nikolai Bezroukov. www.softpanorama.org was created as a service to the UN Sustainable Development Networking Programme (SDNP) in the author free time. Submit comments This document is an industrial compilation designed and created exclusively for educational use and is placed under the copyright of the Open Content License(OPL). Site uses AdSense so you need to be aware of Google privacy policy. Original materials copyright belong to respective owners. Quotes are made for educational purposes only in compliance with the fair use doctrine.

Disclaimer:

Last modified: August 21, 2009