CBAIS::Config::Host - model CBAIS host configs
The CBAIS::Config::Host class handles all host specific configurations
for a CBAIS host. As such it determines the host name service information,
architecture, OS release while allowing values to be overridden.
It handles the passing of updates on to objects such as FileLocators.
loadConfig()
-
Loads this hosts configuration file.
- createActions
-
Parses this hosts configuration and any overrides that have been set (via
the set* methods) and creates the corresponding action objects. Returns 1 on
success, else 0.
- setHostName hostname
-
Explicitely set the hostname. The default value is overridden. A call is made
to gethostbyname unless dns lookups are disabled.
setClasses()
-
Set the classes defined for the this host. The corresponding classfile
(Classname.cf) must exist in this hosts class file search path or a runtime
error will result when the loadConfig is called.
getClasses()
-
get the list of defined classes for this host.
setActions()
-
Set the defined action types for the this host.
getActions()
-
Return a list of the defined action types for the this host.
getBuiltActions()
-
Return a list of built actions i.e. objects implementing the
CBAIS::Actions::Action interface.
getOSProfile()
-
Return the OS specific profile of packages to install on a host. A scalar
string is retunred or the value 0.
getKickStartOption()
-
This method gets kickstart config file specific options for this host.
Kickstart file entries that could apply to other Operating systems are
accessed via their own get* methods. e.g. getKeyboard().