| United States-English |
|
|
|
![]() |
Ignite-UX Administration Guide: HP Computers with HP-UX 10.x, 11.0 or 11i > Chapter 3 Using
Configuration Filesconfig Files |
|
Ignite-UX's central data store is called a config file. A config file can be thought of as a recipe for how to construct a target system. The config file is expressed in a language designed for this purpose. The language is fully defined in the instl_adm(4) manpage. The syntax is human- readable; config files may be created directly by you or via the Ignite-UX screen. The config file language is much like programming languages in that it supports the use of variables and conditional expressions. Most of the important elements which make up an installed system can be described in the config file:
For maintenance convenience, the configuration information is split into several types of config files:
You can build your own config files to specify a particular building block you are interested in, and then combine them in arbitrary ways. Place these building block config files in: /var/opt/ignite/data/Rel_release/* The next section describes how multiple config files can be combined to define a single configuration. The grouping of config files into useful configurations is accomplished in /var/opt/ignite/INDEX . This file contains a list of valid configurations, each of which is made up of one or more config files. You can view these configurations from the Ignite-UX GUI when installing a new client at the top of the Basic tab by selecting: Actions -> Install Client -> New Install
For example, the INDEX file might contain: cfg "HP-UX B.10.20 Default" {installation for HP-UX B.10.10" With this INDEX file, the Ignite-UX would present two configurations: HP-UX B.10.20 Default and CAD System-10.10. The CAD System-10.10 configuration is the default (it is marked TRUE). Once you choose one of these base configurations, you can do further customizations with the UI or accept the config defaults and do the install immediately. If you selected CAD System-10.10, you would get the combination of the five config files listed for that clause. The order of the config files is significant; attributes specified in a later config file can override the same attributes specified in an earlier config file. There are also two config files which are implicitly used every time. Any information stored in the first 8KB of /opt/ignite/boot/INSTALLFS is implicitly appended to each configuration. The client-specific configuration file /var/opt/ignite/clients/0xLLA/config is implicitly added as the last config file for each configuration. A default cfg clause for each release is shipped as part of Ignite-UX. Additional cfg clauses are added when you:
This section shows a few example config files to give you an idea of their look and capabilities. See the instl_adm(4) manpage for a complete description of Ignite-UX config files. Defining disksThis example shows how a disk might be defined. Here, the disk is located at hardware address 2/0/1.6.0 and does not use LVM or VxVM. The disk contains the / file system and a swap area. The swap area takes up 64 MB and the file system takes up whatever space is left over: partitioned_disk {Combining disks to form a single volume groupIn this example, two disks are put together to form a single volume group. Two file systems are defined; both are striped across both disks. The first file system, /apps1, is sized by calculating the amount of space required by the software which is to be loaded, and then adding a 30% free-space cushion. The second file system, /apps2 , gets the remaining space on the disks.
volume_group "appsvol" { physical_volume disk[2/0/1.4.0] {Defining networkingThis example defines a few of the network parameters which will be assigned to the system after it has been installed: final system_name = "acorn1" Defining an install depotThis example defines a single SD depot from which software can be installed. Two different pieces of software are defined for the SD depot. Each can be selected independently for installation. The impact lines tell Ignite-UX how much space this software requires in a given directory. This information is used to size the file systems correctly. The sw_category construct allows you to group the software so that the user interface can present it in chunks which make sense to you. Since this example references an SD depot, it would have been created by make_config: sw_source "ee_apps_depot" { description = "Electrical Engineering Application" source_format = SDThe config file syntax provides a large number of system attribute keywords which describe the target system. Some examples are:
System attribute keywords can be used in expressions in config files so that a particular clause is only included in specific target situations. The basic format of these clauses is: (x){y} which translates roughly to "if the expression x is true, then do y." For example, this clause sets the size of some kernel tunable parameters if the target system has more than 256 MB of memory: (memory > 256Mb) {As another example, use this if you want to run a script to do some particular graphics customizations, but you only want to do so when the target system has the appropriate hardware: (graphics[0].planes > 0) {You can also specify multiple conditions. This example installs a particular piece of (previously defined) application software if the target system is a workstation (Series 700) having at least two disks. A message lets the user know why it is happening: ( (hardware_model ~ "9000/7.*") & (num_disks >= 2) ) {It is also possible to add an else clause. This example uses a generic variable capability and mathematical expressions to set the primary swap size based on the amount of memory in the target system: (memory > 512Mb) {It is sometimes advantageous to be able to select particular customiza- tions independent of the target system's hardware setup. For example, you might have some systems which you intend to use as NFS file servers. You would like the ability to select NFS server capability from the UI when you are configuring the target system. You have found that NFS file servers are more efficient if some of their kernel parameters are modified. NFS file servers also require some changes to the /etc/rc.config.d/nfsconf file via ch_rc. One solution is to define a custom software selection with a sw_sel clause, which Ignite-UX shows on the Actions -> New Install -> Software tab when you are configuring a new installation. For example: sw_source "special configs" {The next figure shows the Software tab when the NFS server config file is used. As shown, the selected category is Machine Uses as defined in the config file. Choosing a different category would display a different set of software. If you were to select NFS Server from this screen, the kernel modifications specified in the config file would be applied during the installation. Likewise, the ch_rc commands specified in the config file will be run as part of the installation.
Using install tabs to configure client installations is explained in Chapter 5 “Installing HP-UX with Ignite-UX on Clients from a Server”. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||