cbais - CBAIS install and configuration system
cbais [ -p ] [ -A architecture ] [ -O OS ] [ -R OSrelease ] [ -c [!]class[,class ..] ] [ -a [!]action[,action ..] ] [ -M regex ] [ -m regex ] [ -d|-r dir ] operation[,operation ..] [ hostname ]
cbais is the control program for the Class Based Auto Install System (CBAIS). It provides a framework for installing and managing the ongoing configuration of unix hosts. The framework supports reuse of configurations at the class, disk, and operating system component level. As such it automates the task creating and maintaining homogenous networks. It also provides detailed audit trails of machine configurations and onging changes.
A cbais host configuration consists of three major components, disk, operating system, and class components. The disk configuration defines partitioning and filesystem layout for the disks attached to the system. The operating system configuration defines the base operating system packages to install. This is host operating system specific (currently). The class configuration defines the (list of) classes which are to installed on a host.
A class is a collection of actions grouped together to create reusable configuration components. An action is one of append, cmd, mkdir, copy, cchmod, pkg, rm, rpm, symlink, hardlink, patch, package, or metadevice.
CBAIS also allows administrators to implement their own actions and have them automatically supported (see the CBAIS::Actions::Action manpage).
=head2 Operations
cbais is used to perform CBAIS operations on a host. An operation
may be any one of check, execute, verify, or undo. The
operation(s)
will be performed (executed) for each action which is defined
for this host. See -c and -a options for information on how to
control which actions will be executed. The details of cbais operations are
described below.
class(es)
only. A ``!'' may be used to reverse the
sense of the class list in which case all classes except those specified
will be executed.
The example below shows all the actions in the FWTK class.
[mos@avalon CBAIS]$ .cbais -cFWTK show avalon
Loaded FWTK config (10) actions)
Class FWTK =============================================== mkdir /etc/ntp mos.mos 0755 copy /net/cbais/default/copy/FWTK/etc/ntp/ntp.conf.avalon /etc/ntp/ntp.conf mos.mos 0644 cchmod /etc/ntp/ntp.* mos.mos 0644 symlink /etc/ntp/ntp.symlink -> etc/ntp/ntp.conf symlink /etc/ntp/hosts -> ../hosts cd /etc; tar -zxf /net/cbais/default/pkgs/FWTK/CBAIS.tgz rpm ntp find $CBAIS_INSTALL_ROOT/etc/ntp -ls rm /etc/ntp
The example below executes all operations on the current host (avalon).
[mos@avalon CBAIS]$ cbais execute
The following example loads all actions for host avalon and dumps them as serialised action (files) in the /var/spool/cbais directory.
[mos@avalon CBAIS]$ cbais -d /var/spool/cbais avalon
The example loads any actions defined in the directory /tmp/cbais and performs a verify operation.
[mos@avalon CBAIS]$ cbais -r /tmp/cbais verify avalon append /net/cbais/default/files/FW/etc/system -> /etc/system OK mkdir /etc/ntp mos.mos 0755