2007-10-26 22:44:33 +00:00
# IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html
package xCAT::Schema ;
2009-01-09 22:25:35 +00:00
BEGIN
{
$ ::XCATROOT = $ ENV { 'XCATROOT' } ? $ ENV { 'XCATROOT' } : - d '/opt/xcat' ? '/opt/xcat' : '/usr' ;
}
use lib "$::XCATROOT/lib/perl" ;
use xCAT::ExtTab ;
2007-10-26 22:44:33 +00:00
2008-06-16 13:17:24 +00:00
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
#
2007-12-04 20:51:58 +00:00
# When making additions or deletions to this file please be sure to
# modify BOTH the tabspec and defspec definitions. This includes
# adding descriptions for any new attributes.
2008-06-16 13:17:24 +00:00
#
2008-08-20 17:48:40 +00:00
# Make sure any new attributes are not SQL reserved words by checking
# on this site:http://www.petefreitag.com/tools/sql_reserved_words_checker/
2011-01-06 14:15:06 +00:00
# For Postgresql: check the following site for names that cannot be used
# as attributes under any conditions:
# http://www.postgresql.org/docs/8.3/static/sql-keywords-appendix.html
2008-08-20 17:48:40 +00:00
#
# Current SQL reserved words being used in this Schema with special
# processing are the
# following:
#
#Word Table Databases that will not allow
# key site,passwd,prodkey,monsetting MySQL, DB2,SQL Server 2000
# dump nimimage SQL Server 2000 (microsoft)
# power nodehm SQL Server 2000
# host policy,ivm SQL Server Future Keywords
# parameters policy DB2,SQL Server Future Keywords,ISO/ANSI,SQL99
# time policy DB2,SQL Server Future Keywords,ISO/ANSI,SQL99
# rule policy SQL Server 2000
# value site,monsetting ODBC, DB2, SQL Server
# Future Keywords,ISO/ANSI,SQL99
#
2008-06-16 13:17:24 +00:00
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2007-12-04 20:51:58 +00:00
2007-12-13 18:53:02 +00:00
2007-10-26 22:44:33 +00:00
#Note that the SQL is far from imaginative. Fact of the matter is that
#certain SQL backends don't ascribe meaning to the data types anyway.
#New format, not sql statements, but info enough to describe xcat tables
% tabspec = (
2009-12-17 21:21:02 +00:00
statelite = > {
2011-04-13 19:19:31 +00:00
cols = > [ qw( node image statemnt mntopts comments disable ) ] ,
2009-12-17 21:21:02 +00:00
keys = > [ qw( node ) ] ,
required = > [ qw( node statemnt ) ] ,
2010-04-27 13:46:58 +00:00
table_desc = > 'The location on an NFS server where a nodes persistent files are stored. Any file marked persistent in the litefile table will be stored in the location specified in this table for that node.' ,
2009-12-17 21:21:02 +00:00
descriptions = > {
2010-02-15 23:04:54 +00:00
node = > 'The name of the node or group that will use this location.' ,
2010-05-07 11:43:51 +00:00
image = > "Reserved for future development, not used. " ,
2010-04-27 13:46:58 +00:00
statemnt = > "The persistant read/write area where a node's persistent files will be written to, e.g: 10.0.0.1/state/. The node name will be automatically added to the pathname, so 10.0.0.1:/state, will become 10.0.0.1:/state/<nodename>." ,
2011-04-13 19:19:31 +00:00
mntopts = > "A comma-separated list of options to use when mounting the persistent directory. (Ex. 'soft') The default is to do a 'hard' mount. " ,
2009-12-17 21:21:02 +00:00
comments = > 'Any user-written notes.' ,
disable = > "Set to 'yes' or '1' to comment out this row." ,
} ,
} ,
2010-03-02 18:47:40 +00:00
#If we support multiple domains managed in a single xCAT instance, the following
#tables come into play. Given no explicit request to span domains and no effort to
#seriously evaluate wider support of multi-domain environments, will leave them
#commented rather than tempt people to try with an expectation that it could work.
2010-03-09 22:00:00 +00:00
domain = > {
2013-03-19 14:32:05 +00:00
cols = > [ qw( node ou authdomain adminuser adminpassword comments disable ) ] ,
2010-03-09 22:00:00 +00:00
keys = > [ 'node' ] ,
table_desc = > 'Mapping of nodes to domain attributes' ,
descriptions = > {
node = > 'The node or group the entry applies to' ,
2010-03-02 18:47:40 +00:00
# domain => 'The name of the domain it is a member of, such as "example.com". Defaults to domain value from the site table',
2010-03-09 22:00:00 +00:00
# the above column is unimplemented by anything, so leave it out for this pass
ou = > 'For an LDAP described machine account (i.e. Active Directory), the orginaztional unit to place the system. If not set, defaults to cn=Computers,dc=your,dc=domain' ,
2013-01-21 14:34:37 +00:00
authdomain = > 'If a node should participate in an AD domain or Kerberos realm distinct from domain indicated in site, this field can be used to specify that' ,
2013-03-19 14:32:05 +00:00
adminuser = > 'Allow a node specific indication of Administrative user. Most will want to just use passwd table to indicate this once rather than by node.' ,
adminpassword = > 'Allow a node specific indication of Administrative user password for the domain. Most will want to ignore this in favor of passwd table.' ,
2010-03-09 22:00:00 +00:00
comments = > 'Any user-written notes.' ,
disable = > "Set to 'yes' or '1' to comment out this row." ,
} ,
} ,
2010-08-12 15:55:31 +00:00
###############################################################################
2010-08-27 23:46:06 +00:00
# The next two are for kvm plugin to use to maintain persistent config data
2010-08-12 15:55:31 +00:00
# not feasibly determined from contextual data
###############################################################################
kvm_nodedata = > {
cols = > [ qw( node xml comments disable ) ] ,
keys = > [ qw( node ) ] ,
2010-08-26 13:16:24 +00:00
required = > [ qw( node ) ] ,
2010-08-12 15:55:31 +00:00
table_desc = > 'Persistant store for KVM plugin, not intended for manual modification.' ,
types = > {
2010-08-31 12:24:22 +00:00
xml = > 'VARCHAR(16000)' ,
2010-08-12 15:55:31 +00:00
} ,
descriptions = > {
node = > 'The node corresponding to the virtual machine' ,
xml = > 'The XML description generated by xCAT, fleshed out by libvirt, and stored for reuse' ,
comments = > 'Any user-written notes.' ,
disable = > "Set to 'yes' or '1' to comment out this row." ,
} ,
} ,
2010-08-27 23:46:06 +00:00
kvm_masterdata = > {
cols = > [ qw( name xml comments disable ) ] ,
keys = > [ qw( name ) ] ,
2010-08-28 01:36:41 +00:00
nodecol = > 'name' ,
2010-08-27 23:46:06 +00:00
table_desc = > 'Persistant store for KVM plugin for masters' ,
types = > {
xml = > 'VARCHAR(16000)' ,
} ,
descriptions = > {
name = > 'The name of the relevant master' ,
xml = > 'The XML description to be customized for clones of this master' ,
disable = > "Set to 'yes' or '1' to comment out this row." ,
} ,
} ,
2010-08-12 15:55:31 +00:00
2010-03-02 18:47:40 +00:00
#domains => {
# cols => [qw(domain nameserver authserver realm comments disable)],
# keys => ['domain'],
# table_desc => 'Parameters concerning domain-wide management',
# descriptions => {
# domain => 'The name of the domain, such as "example.com"',
# nameserver => 'The address of the server that is responsible for updating DNS records',
# authserver => 'The provider of authentication and authorization data, which may be a generic LDAP server as well as a Kerberos KDC, or specifically an active directory domain controller'.
# realm => 'The kerberos realm name associated with the domain. Defaults to uppercase of the domain name',
# comments => 'Any user-written notes.',
# disable => "Set to 'yes' or '1' to comment out this row.",
# },
#},
2009-12-17 21:21:02 +00:00
litetree = > {
2012-07-13 19:56:24 +00:00
cols = > [ qw( priority image directory mntopts comments disable ) ] ,
2009-12-17 21:21:02 +00:00
keys = > [ qw( priority ) ] ,
required = > [ qw( priority directory ) ] ,
2010-02-15 23:04:54 +00:00
table_desc = > 'Directory hierarchy to traverse to get the initial contents of node files. The files that are specified in the litefile table are searched for in the directories specified in this table.' ,
2009-12-17 21:21:02 +00:00
descriptions = > {
2010-04-27 13:46:58 +00:00
priority = > 'This number controls what order the directories are searched. Directories are searched from smallest priority number to largest.' ,
image = > "The name of the image that will use this directory, as specified in the osimage table. If image is not supplied, the default is 'ALL'. 'ALL' means use it for all images." ,
directory = > 'The location (hostname:path) of a directory that contains files specified in the litefile table. Variables are allowed. E.g: $noderes.nfsserver://xcatmasternode/install/$node/#CMD=uname-r#/' ,
2012-07-13 19:56:24 +00:00
mntopts = > "A comma-separated list of options to use when mounting the litetree directory. (Ex. 'soft') The default is to do a 'hard' mount." ,
2009-12-17 21:21:02 +00:00
comments = > 'Any user-written notes.' ,
disable = > "Set to 'yes' or '1' to comment out this row." ,
} ,
} ,
litefile = > {
cols = > [ qw( image file options comments disable ) ] ,
keys = > [ qw( image file ) ] ,
2012-12-03 17:35:42 +00:00
required = > [ qw( image file ) ] , # default type is rw nfsroot
2010-02-15 23:04:54 +00:00
table_desc = > 'The litefile table specifies the directories and files on the statelite nodes that should be readwrite, persistent, or readonly overlay. All other files in the statelite nodes come from the readonly statelite image.' ,
2009-12-17 21:21:02 +00:00
descriptions = > {
2010-04-27 15:29:46 +00:00
image = > "The name of the image that will use these files, as specified in the osimage table. 'ALL' means use it for all images." ,
2010-04-27 13:46:58 +00:00
file = > "The full pathname of the file. e.g: /etc/hosts. If the path is a directory, then it should be terminated with a '/'. " ,
2010-02-15 23:14:11 +00:00
options = > "Options for the file:\n\n" .
2010-11-09 12:49:55 +00:00
qq{ tmpfs - It is the default option if you leave the options column blank. It provides a file or directory for the node to use when booting, its permission will be the same as the original version on the server. In most cases, it is read-write; however, on the next statelite boot, the original version of the file or directory on the server will be used, it means it is non-persistent. This option can be performed on files and directories.. \ n \ n } .
qq{ rw - Same as Above.Its name "rw" does NOT mean it always be read-write, even in most cases it is read-write. Please do not confuse it with the "rw" permission in the file system. \ n \ n } .
qq{ persistent - It provides a mounted file or directory that is copied to the xCAT persistent location and then over-mounted on the local file or directory. Anything written to that file or directory is preserved. It means, if the file/directory does not exist at first, it will be copied to the persistent location. Next time the file/directory in the persistent location will be used. The file/directory will be persistent across reboots. Its permission will be the same as the original one in the statelite location. It requires the statelite table to be filled out with a spot for persistent statelite. This option can be performed on files and directories. \ n \ n } .
qq{ con - The contents of the pathname are concatenated to the contents of the existing file. For this directive the searching in the litetree hierarchy does not stop when the first match is found. All files found in the hierarchy will be concatenated to the file when found. The permission of the file will be "-rw-r--r--", which means it is read-write for the root user, but readonly for the others. It is non-persistent, when the node reboots, all changes to the file will be lost. It can only be performed on files. Please do not use it for one directory. \ n \ n } .
qq{ ro - The file/directory will be overmounted read-only on the local file/directory. It will be located in the directory hierarchy specified in the litetree table. Changes made to this file or directory on the server will be immediately seen in this file/directory on the node. This option requires that the file/directory to be mounted must be available in one of the entries in the litetree table. This option can be performed on files and directories. \ n \ n } .
qq{ link - It provides one file/directory for the node to use when booting, it is copied from the server, and will be placed in tmpfs on the booted node. In the local file system of the booted node, it is one symbolic link to one file/directory in tmpfs. And the permission of the symbolic link is "lrwxrwxrwx", which is not the real permission of the file/directory on the node. So for some application sensitive to file permissions, it will be one issue to use "link" as its option, for example, "/root/.ssh/", which is used for SSH, should NOT use "link" as its option. It is non-persistent, when the node is rebooted, all changes to the file/directory will be lost. This option can be performed on files and directories. \ n \ n } .
qq{ link,con - It works similar to the "con" option. All the files found in the litetree hierarchy will be concatenated to the file when found. The final file will be put to the tmpfs on the booted node. In the local file system of the booted node, it is one symbolic link to the file/directory in tmpfs. It is non-persistent, when the node is rebooted, all changes to the file will be lost. The option can only be performed on files. \ n \ n } .
qq{ link,persistent - It provides a mounted file or directory that is copied to the xCAT persistent location and then over-mounted to the tmpfs on the booted node, and finally the symbolic link in the local file system will be linked to the over-mounted tmpfs file/directory on the booted node. The file/directory will be persistent across reboots. The permission of the file/directory where the symbolic link points to will be the same as the original one in the statelite location. It requires the statelite table to be filled out with a spot for persistent statelite. The option can be performed on files and directories. \ n \ n } .
qq{ link,ro - The file is readonly, and will be placed in tmpfs on the booted node. In the local file system of the booted node, it is one symbolic link to the tmpfs. It is non-persistent, when the node is rebooted, all changes to the file/directory will be lost. This option requires that the file/directory to be mounted must be available in one of the entries in the litetree table. The option can be performed on files and directories. } ,
2009-12-17 21:21:02 +00:00
comments = > 'Any user-written notes.' ,
disable = > "Set to 'yes' or '1' to comment out this row." ,
}
} ,
2010-08-27 20:16:52 +00:00
vmmaster = > {
#will add columns as approriate, for now:
#os arch profile to populate the corresponding nodetype fields of a cloned vm
#storage to indicate where the master data is actually stored (i.e. virtual disk images)
#storagemodel to allow chvm on a clone to be consistent with the master by default
#nics to track the network mapping that may not be preserved by the respective plugin's specific cfg info
#nicmodel same as storagemodel, except omitting for now until chvm actually does nics...
2012-07-13 13:42:33 +00:00
cols = > [ qw( name os arch profile storage storagemodel nics vintage originator virttype specializeparameters comments disable ) ] ,
2010-08-27 20:16:52 +00:00
keys = > [ qw( name ) ] ,
2010-08-28 01:36:41 +00:00
nodecol = > 'name' , #well what do you know, I used it...
2010-08-27 20:16:52 +00:00
table_desc = > 'Inventory of virtualization images for use with clonevm. Manual intervention in this table is not intended.' ,
descriptions = > {
'name' = > 'The name of a master' ,
'os' = > 'The value of nodetype.os at the time the master was captured' ,
'arch' = > 'The value of nodetype.arch at the time of capture' ,
'profile' = > 'The value of nodetype.profile at time of capture' ,
'storage' = > 'The storage location of bulk master information' ,
'storagemodel' = > 'The default storage style to use when modifying a vm cloned from this master' ,
'nics' = > 'The nic configuration and relationship to vlans/bonds/etc' ,
'vintage' = > "When this image was created" ,
'originator' = > 'The user who created the image' ,
2012-07-13 13:42:33 +00:00
'specializeparameters' = > 'Implementation specific arguments, currently only "autoLogonCount=<number" for ESXi clonevme' ,
2010-08-27 20:51:38 +00:00
'virttype' = > 'The type of virtualization this image pertains to (e.g. vmware, kvm, etc)' ,
2010-08-27 20:16:52 +00:00
}
} ,
2008-07-28 13:48:15 +00:00
vm = > {
2012-09-10 13:07:31 +00:00
cols = > [ qw( node mgr host migrationdest storage storagemodel cfgstore memory cpus nics nicmodel bootorder clockoffset virtflags master vncport textconsole powerstate beacon datacenter cluster guestostype othersettings vidmodel vidproto vidpassword comments disable ) ] ,
2008-07-28 13:48:15 +00:00
keys = > [ qw( node ) ] ,
2012-09-27 13:53:15 +00:00
tablespace = > 'XCATTBS32K' ,
2008-07-28 13:48:15 +00:00
table_desc = > 'Virtualization parameters' ,
descriptions = > {
'node' = > 'The node or static group name' ,
2012-08-20 13:47:51 +00:00
'mgr' = > 'The function manager for the virtual machine' ,
2008-07-28 13:48:15 +00:00
'host' = > 'The system that currently hosts the VM' ,
'migrationdest' = > 'A noderange representing candidate destinations for migration (i.e. similar systems, same SAN, or other criteria that xCAT can use' ,
2012-02-29 18:43:23 +00:00
'storage' = > 'A list of storage files or devices to be used. i.e. /cluster/vm/<nodename> or nfs://<server>/path/to/folder/' ,
2010-08-25 15:19:06 +00:00
'storagemodel' = > 'Model of storage devices to provide to guest' ,
2009-07-09 19:15:42 +00:00
'cfgstore' = > 'Optional location for persistant storage separate of emulated hard drives for virtualization solutions that require persistant store to place configuration data' ,
2008-07-28 13:48:15 +00:00
'memory' = > 'Megabytes of memory the VM currently should be set to.' ,
2010-08-27 20:16:52 +00:00
'master' = > 'The name of a master image, if any, this virtual machine is linked to. This is generally set by clonevm and indicates the deletion of a master that would invalidate the storage of this virtual machine' ,
2008-07-28 13:48:15 +00:00
'cpus' = > 'Number of CPUs the node should see.' ,
2010-08-25 15:19:06 +00:00
'nics' = > 'Network configuration parameters. Of the general form [physnet:]interface,.. Generally, interface describes the vlan entity (default for native, tagged for tagged, vl[number] for a specific vlan. physnet is a virtual switch name or port description that is used for some virtualization technologies to construct virtual switches. hypervisor.netmap can map names to hypervisor specific layouts, or the descriptions described there may be used directly here where possible.' ,
'nicmodel' = > 'Model of NICs that will be provided to VMs (i.e. e1000, rtl8139, virtio, etc)' ,
2008-07-28 13:48:15 +00:00
'bootorder' = > 'Boot sequence (i.e. net,hd)' ,
2009-03-14 16:44:02 +00:00
'clockoffset' = > 'Whether to have guest RTC synced to "localtime" or "utc" If not populated, xCAT will guess based on the nodetype.os contents.' ,
2009-11-22 19:41:52 +00:00
'virtflags' = > ' General flags used by the virtualization method . For example , in Xen it could , among other things , specify paravirtualized setup , or direct kernel boot . For a hypervisor / dom0 entry , it is the virtualization method ( i . e . "xen" ) . For KVM , the following flag = value pairs are recognized:
imageformat = [ raw | fullraw | qcow2 ]
raw is a generic sparse file that allocates storage on demand
fullraw is a generic , non - sparse file that preallocates all space
qcow2 is a sparse , copy - on - write capable format implemented at the virtualization layer rather than the filesystem level
clonemethod = [ qemu - img | reflink ]
qemu - img allows use of qcow2 to generate virtualization layer copy - on - write
2012-08-20 13:47:51 +00:00
reflink uses a generic filesystem facility to clone the files on your behalf , but requires filesystem support such as btrfs
placement_affinity = [ migratable | user_migratable | pinned ] ' ,
2008-07-30 03:10:08 +00:00
'vncport' = > 'Tracks the current VNC display port (currently not meant to be set' ,
'textconsole' = > 'Tracks the Psuedo-TTY that maps to the serial port or console of a VM' ,
2009-10-19 22:47:48 +00:00
'powerstate' = > "This flag is used by xCAT to track the last known power state of the VM." ,
2011-02-08 21:23:39 +00:00
'othersettings' = > "This allows specifying a semicolon delimited list of key->value pairs to include in a vmx file of VMware." ,
2010-11-09 19:01:33 +00:00
'guestostype' = > "This allows administrator to specify an identifier for OS to pass through to virtualization stack. Normally this should be ignored as xCAT will translate from nodetype.os rather than requiring this field be used\n" ,
2010-09-14 15:32:39 +00:00
'beacon' = > "This flag is used by xCAT to track the state of the identify LED with respect to the VM." ,
'datacenter' = > "Optionally specify a datacenter for the VM to exist in (only applicable to VMWare)" ,
2012-08-20 13:47:51 +00:00
'cluster' = > 'Specify to the underlying virtualization infrastructure a cluster membership for the hypervisor.' ,
2011-04-27 15:10:58 +00:00
'vidproto' = > "Request a specific protocol for remote video access be set up. For example, spice in KVM." ,
'vidmodel' = > "Model of video adapter to provide to guest. For example, qxl in KVM" ,
2012-02-15 14:47:14 +00:00
'vidpassword' = > "Password to use instead of temporary random tokens for VNC and SPICE access" ,
2008-07-28 13:48:15 +00:00
}
} ,
2009-07-13 18:04:39 +00:00
hypervisor = > {
2012-08-20 13:47:51 +00:00
cols = > [ qw( node type mgr interface netmap defaultnet cluster datacenter preferdirect comments disable ) ] ,
2009-07-13 18:04:39 +00:00
keys = > [ qw( node ) ] ,
table_desc = > 'Hypervisor parameters' ,
descriptions = > {
'node' = > 'The node or static group name' ,
2009-10-19 18:14:37 +00:00
'type' = > 'The plugin associated with hypervisor specific commands such as revacuate' ,
2012-08-20 13:47:51 +00:00
'mgr' = > 'The virtualization specific manager of this hypervisor when applicable' ,
2012-09-27 13:53:15 +00:00
'interface' = > 'The definition of interfaces for the hypervisor. The format is [networkname:interfacename:bootprotocol:IP:netmask:gateway] that split with | for each interface' ,
2009-07-16 20:43:36 +00:00
'netmap' = > 'Optional mapping of useful names to relevant physical ports. For example, 10ge=vmnic_16.0&vmnic_16.1,ge=vmnic1 would be requesting two virtual switches to be created, one called 10ge with vmnic_16.0 and vmnic_16.1 bonded, and another simply connected to vmnic1. Use of this allows abstracting guests from network differences amongst hypervisors' ,
2009-09-30 21:33:54 +00:00
'defaultnet' = > 'Optionally specify a default network entity for guests to join to if they do not specify.' ,
'cluster' = > 'Specify to the underlying virtualization infrastructure a cluster membership for the hypervisor.' ,
2010-09-14 15:32:39 +00:00
'datacenter' = > 'Optionally specify a datacenter for the hypervisor to exist in (only applicable to VMWare)' ,
2009-09-30 21:33:54 +00:00
'preferdirect' = > 'If a mgr is declared for a hypervisor, xCAT will default to using the mgr for all operations. If this is field is set to yes or 1, xCAT will prefer to directly communicate with the hypervisor if possible'
2009-07-13 18:04:39 +00:00
}
} ,
2012-08-20 13:47:51 +00:00
virtsd = > {
cols = > [ qw( node sdtype stype location host cluster datacenter comments disable ) ] ,
keys = > [ qw( node ) ] ,
table_desc = > 'The parameters which used to create the Storage Domain' ,
descriptions = > {
'node' = > 'The name of the storage domain' ,
'sdtype' = > 'The type of storage domain. Valid values: data, iso, export' ,
'stype' = > 'The type of storge. Valid values: nfs, fcp, iscsi, localfs' ,
'location' = > 'The path of the storage' ,
'host' = > 'For rhev, a hypervisor host needs to be specified to manage the storage domain as SPM (Storage Pool Manager). But the SPM role will be failed over to another host when this host down.' ,
'cluster' = > 'A cluster of hosts' ,
'datacenter' = > 'A collection for all host, vm that will shared the same storages, networks.' ,
}
} ,
2012-09-27 13:53:15 +00:00
2013-02-12 15:38:19 +00:00
storage = > {
2013-03-21 20:32:28 +00:00
cols = > [ qw( node osvolume size state storagepool fcprange volumetag comments disable ) ] ,
keys = > [ qw( node ) ] ,
table_descr = > 'Node storage resources' ,
descriptions = > {
node = > 'The node name' ,
osvolume = > " Specification of what storage to place the node OS image onto . Examples include:
localdisk ( Install to first non - FC attached disk )
usbdisk ( Install to first USB mass storage device seen )
wwn = 0x50000393c813840c ( Install to storage device with given WWN ) " ,
size = > 'Size of the volume. Examples include: 10G, 1024M.' ,
state = > 'State of the volume. The valid values are: free, used, and allocated' ,
storagepool = > 'Name of storage pool where the volume is assigned.' ,
fcprange = > 'A range of acceptable fibre channels that the volume can use. Examples include: 3B00-3C00;4B00-4C00.' ,
volumetag = > 'A specific tag used to identify the volume in the autoyast or kickstart template.' ,
comments = > 'Any user-written notes.' ,
disable = > "Set to 'yes' or '1' to comment out this row." ,
}
} ,
2009-01-29 19:00:50 +00:00
websrv = > {
cols = > [ qw( node port username password comments disable ) ] ,
keys = > [ qw( node ) ] ,
table_desc = > 'Web service parameters' ,
descriptions = > {
'node' = > 'The web service hostname.' ,
'port' = > 'The port of the web service.' ,
'username' = > 'Userid to use to access the web service.' ,
'password' = > 'Password to use to access the web service.' ,
'comments' = > 'Any user-written notes.' ,
'disable' = > "Set to 'yes' or '1' to comment out this row." ,
} ,
} ,
2009-02-12 22:44:31 +00:00
boottarget = > {
cols = > [ qw( bprofile kernel initrd kcmdline comments disable ) ] ,
keys = > [ qw( bprofile ) ] ,
2011-06-02 20:26:04 +00:00
table_desc = > 'Specify non-standard initrd, kernel, and parameters that should be used for a given profile.' ,
2009-02-12 22:44:31 +00:00
descriptions = > {
2011-06-02 20:26:04 +00:00
'bprofile' = > 'All nodes with a nodetype.profile value equal to this value and nodetype.os set to "boottarget", will use the associated kernel, initrd, and kcmdline.' ,
2009-02-12 22:44:31 +00:00
'kernel' = > 'The kernel that network boot actions should currently acquire and use. Note this could be a chained boot loader such as memdisk or a non-linux boot loader' ,
'initrd' = > 'The initial ramdisk image that network boot actions should use (could be a DOS floppy or hard drive image if using memdisk as kernel)' ,
'kcmdline' = > 'Arguments to be passed to the kernel' ,
comments = > 'Any user-written notes.' ,
disable = > "Set to 'yes' or '1' to comment out this row."
}
} ,
2008-05-02 15:24:33 +00:00
bootparams = > {
2008-10-31 13:34:03 +00:00
cols = > [ qw( node kernel initrd kcmdline addkcmdline dhcpstatements adddhcpstatements comments disable ) ] ,
2008-05-02 15:24:33 +00:00
keys = > [ qw( node ) ] ,
2011-05-02 18:08:13 +00:00
tablespace = > 'XCATTBS16K' ,
2008-05-02 15:24:33 +00:00
table_desc = > 'Current boot settings to be sent to systems attempting network boot for deployment, stateless, or other reasons. Mostly automatically manipulated by xCAT.' ,
descriptions = > {
'node' = > 'The node or group name' ,
'kernel' = > 'The kernel that network boot actions should currently acquire and use. Note this could be a chained boot loader such as memdisk or a non-linux boot loader' ,
'initrd' = > 'The initial ramdisk image that network boot actions should use (could be a DOS floppy or hard drive image if using memdisk as kernel)' ,
2008-10-08 15:16:49 +00:00
'kcmdline' = > 'Arguments to be passed to the kernel' ,
'addkcmdline' = > 'User specified one or more parameters to be passed to the kernel' ,
2008-10-31 13:34:03 +00:00
'dhcpstatements' = > 'xCAT manipulated custom dhcp statements (not intended for user manipulation)' ,
'adddhcpstatements' = > 'Custom dhcp statements for administrator use (not implemneted yet)' ,
2008-10-08 15:16:49 +00:00
comments = > 'Any user-written notes.' ,
disable = > "Set to 'yes' or '1' to comment out this row." ,
2008-05-02 15:24:33 +00:00
}
} ,
2008-06-19 19:49:18 +00:00
prodkey = > {
cols = > [ qw( node product key comments disable ) ] ,
keys = > [ qw( node product ) ] ,
table_desc = > 'Specify product keys for products that require them' ,
descriptions = > {
node = > "The node name or group name." ,
product = > "A string to identify the product (for OSes, the osname would be used, i.e. wink28" ,
2008-10-08 15:16:49 +00:00
key = > "The product key relevant to the aforementioned node/group and product combination" ,
comments = > 'Any user-written notes.' ,
disable = > "Set to 'yes' or '1' to comment out this row." ,
2008-06-19 19:49:18 +00:00
}
} ,
2008-02-21 21:10:35 +00:00
chain = > {
cols = > [ qw( node currstate currchain chain ondiscover comments disable ) ] ,
2008-02-14 20:23:24 +00:00
keys = > [ qw( node ) ] ,
2008-02-21 21:10:35 +00:00
table_desc = > 'Controls what operations are done (and it what order) when a node is discovered and deployed.' ,
2008-03-20 18:38:50 +00:00
descriptions = > {
node = > 'The node name or group name.' ,
2012-11-16 16:16:39 +00:00
currstate = > 'The current or next chain step to be executed on this node by xCAT-genesis. Set by xCAT during node discovery or as a result of nodeset.' ,
currchain = > 'The chain steps still left to do for this node. This attribute will be automatically adjusted by xCAT while xCAT-genesis is running on the node (either during node discovery or a special operation like firmware update). During node discovery, this attribute is initialized from the chain attribute and updated as the chain steps are executed.' ,
chain = > 'A comma-delimited chain of actions to be performed automatically when this node is discovered. ("Discovered" means a node booted, but xCAT and DHCP did not recognize the MAC of this node. In this case, xCAT initiates the discovery process, the last step of which is to run the operations listed in this chain attribute.) Valid values: discover, boot or reboot, install or netboot, runcmd=<cmd>, runimage=<URL>, shell, standby. (Default - same as no chain). Example, for BMC machines use: runcmd=bmcsetup,shell.' ,
ondiscover = > 'This attribute is currently not used by xCAT. The "nodediscover" operation is always done during node discovery.' ,
2008-03-20 18:38:50 +00:00
comments = > 'Any user-written notes.' ,
disable = > "Set to 'yes' or '1' to comment out this row." ,
} ,
2008-02-14 20:23:24 +00:00
} ,
2008-02-21 21:10:35 +00:00
deps = > {
cols = > [ qw( node nodedep msdelay cmd comments disable ) ] ,
2008-06-13 13:21:03 +00:00
keys = > [ qw( node cmd ) ] ,
required = > [ qw( node cmd ) ] ,
2008-02-21 21:10:35 +00:00
table_desc = > 'Describes dependencies some nodes have on others. This can be used, e.g., by rpower -d to power nodes on or off in the correct order.' ,
2008-03-20 18:38:50 +00:00
descriptions = > {
node = > 'The node name or group name.' ,
2010-11-09 06:29:34 +00:00
nodedep = > 'Comma-separated list of nodes or node groups it is dependent on.' ,
2008-03-20 18:38:50 +00:00
msdelay = > 'How long to wait between operating on the dependent nodes and the primary nodes.' ,
cmd = > 'Comma-seperated list of which operation this dependency applies to.' ,
comments = > 'Any user-written notes.' ,
disable = > "Set to 'yes' or '1' to comment out this row." ,
} ,
2007-11-16 19:52:59 +00:00
} ,
2008-02-21 21:10:35 +00:00
hosts = > {
2009-07-06 20:39:39 +00:00
cols = > [ qw( node ip hostnames otherinterfaces comments disable ) ] ,
2007-10-26 22:44:33 +00:00
keys = > [ qw( node ) ] ,
2012-04-06 18:58:33 +00:00
table_desc = > 'IP addresses and hostnames of nodes. This info is optional and is only used to populate /etc/hosts and DNS via makehosts and makedns. Using regular expressions in this table can be a quick way to populate /etc/hosts.' ,
2008-03-20 18:38:50 +00:00
descriptions = > {
node = > 'The node name or group name.' ,
2012-04-06 18:58:33 +00:00
ip = > 'The IP address of the node. This is only used in makehosts. The rest of xCAT uses system name resolution to resolve node names to IP addresses.' ,
2012-12-07 14:16:40 +00:00
hostnames = > 'Hostname aliases added to /etc/hosts for this node. Comma or blank separated list.' ,
2010-12-27 03:07:26 +00:00
otherinterfaces = > 'Other IP addresses to add for this node. Format: -<ext>:<ip>,<intfhostname>:<ip>,...' ,
2008-03-20 18:38:50 +00:00
comments = > 'Any user-written notes.' ,
disable = > "Set to 'yes' or '1' to comment out this row." ,
} ,
2007-10-26 22:44:33 +00:00
} ,
2008-02-21 21:10:35 +00:00
ipmi = > {
2012-05-19 13:46:12 +00:00
cols = > [ qw( node bmc bmcport taggedvlan bmcid username password comments disable ) ] ,
2007-10-26 22:44:33 +00:00
keys = > [ qw( node ) ] ,
2008-02-21 21:10:35 +00:00
table_desc = > 'Settings for nodes that are controlled by an on-board BMC via IPMI.' ,
2008-03-20 18:38:50 +00:00
descriptions = > {
node = > 'The node name or group name.' ,
bmc = > 'The hostname of the BMC adapater.' ,
2009-03-02 18:40:07 +00:00
bmcport = > 'In systems with selectable shared/dedicated ethernet ports, this parameter can be used to specify the preferred port. 0 means use the shared port, 1 means dedicated, blank is to not assign' ,
2012-05-01 20:38:39 +00:00
taggedvlan = > 'Have bmcsetup place the BMC on the specified vlan tag on a shared netwirk interface. Some network devices may be incompatible with this option' ,
2012-05-19 13:46:12 +00:00
bmcid = > 'Unique identified data used by discovery processes to distinguish known BMCs from unrecognized BMCs' ,
2008-03-20 18:38:50 +00:00
username = > 'The BMC userid. If not specified, the key=ipmi row in the passwd table is used as the default.' ,
password = > 'The BMC password. If not specified, the key=ipmi row in the passwd table is used as the default.' ,
comments = > 'Any user-written notes.' ,
disable = > "Set to 'yes' or '1' to comment out this row." ,
} ,
2007-10-26 22:44:33 +00:00
} ,
2008-02-21 21:10:35 +00:00
iscsi = > {
2008-10-31 20:45:10 +00:00
cols = > [ qw( node server target lun iname file userid passwd kernel kcmdline initrd comments disable ) ] ,
2007-12-13 18:53:02 +00:00
keys = > [ qw( node ) ] ,
2011-05-03 18:50:45 +00:00
tablespace = > 'XCATTBS16K' ,
2008-10-29 18:12:57 +00:00
table_desc = > 'Contains settings that control how to boot a node from an iSCSI target' ,
2008-03-20 18:38:50 +00:00
descriptions = > {
node = > 'The node name or group name.' ,
server = > 'The server containing the iscsi boot device for this node.' ,
2008-05-02 15:24:33 +00:00
target = > 'The iscsi disk used for the boot device for this node. Filled in by xCAT.' ,
2008-10-29 18:12:57 +00:00
lun = > 'LUN of boot device. Per RFC-4173, this is presumed to be 0 if unset. tgtd often requires this to be 1' ,
2008-10-31 20:45:10 +00:00
iname = > 'Initiator name. Currently unused.' ,
2008-05-02 15:24:33 +00:00
file = > 'The path on the server of the OS image the node should boot from.' ,
2008-03-20 18:38:50 +00:00
userid = > 'The userid of the iscsi server containing the boot device for this node.' ,
passwd = > 'The password for the iscsi server containing the boot device for this node.' ,
2008-05-02 15:24:33 +00:00
kernel = > 'The path of the linux kernel to boot from.' ,
2008-03-20 18:38:50 +00:00
kcmdline = > 'The kernel command line to use with iSCSI for this node.' ,
initrd = > 'The initial ramdisk to use when network booting this node.' ,
comments = > 'Any user-written notes.' ,
disable = > "Set to 'yes' or '1' to comment out this row." ,
} ,
2007-11-19 19:45:11 +00:00
} ,
2008-02-21 21:10:35 +00:00
mac = > {
cols = > [ qw( node interface mac comments disable ) ] ,
2007-10-26 22:44:33 +00:00
keys = > [ qw( node ) ] ,
2011-05-03 18:50:45 +00:00
tablespace = > 'XCATTBS16K' ,
2008-02-21 21:10:35 +00:00
table_desc = > "The MAC address of the node's install adapter. Normally this table is populated by getmacs or node discovery, but you can also add entries to it manually." ,
2008-03-20 18:38:50 +00:00
descriptions = > {
node = > 'The node name or group name.' ,
interface = > 'The adapter interface name that will be used to install and manage the node. E.g. eth0 (for linux) or en0 (for AIX).)' ,
2009-04-14 14:30:14 +00:00
mac = > 'The mac address or addresses for which xCAT will manage static bindings for this node. This may be simply a mac address, which would be bound to the node name (such as "01:02:03:04:05:0E"). This may also be a "|" delimited string of "mac address!hostname" format (such as "01:02:03:04:05:0E!node5|01:02:03:05:0F!node6-eth1").' ,
2008-03-20 18:38:50 +00:00
comments = > 'Any user-written notes.' ,
disable = > "Set to 'yes' or '1' to comment out this row." ,
} ,
2007-10-26 22:44:33 +00:00
} ,
2008-02-21 21:10:35 +00:00
monitoring = > {
2008-03-04 21:45:26 +00:00
cols = > [ qw( name nodestatmon comments disable ) ] ,
2008-02-21 21:10:35 +00:00
keys = > [ qw( name ) ] ,
required = > [ qw( name ) ] ,
2008-03-21 20:59:14 +00:00
table_desc = > 'Controls what external monitoring tools xCAT sets up and uses. Entries should be added and removed from this table using the provided xCAT commands monstart and monstop.' ,
2008-03-20 18:38:50 +00:00
descriptions = > {
2008-03-21 20:59:14 +00:00
name = > "The name of the mornitoring plug-in module. The plug-in must be put in $ENV{XCATROOT}/lib/perl/xCAT_monitoring/. See the man page for monstart for details." ,
2008-03-20 18:38:50 +00:00
nodestatmon = > 'Specifies if the monitoring plug-in is used to feed the node status to the xCAT cluster. Any one of the following values indicates "yes": y, Y, yes, Yes, YES, 1. Any other value or blank (default), indicates "no".' ,
comments = > 'Any user-written notes.' ,
disable = > "Set to 'yes' or '1' to comment out this row." ,
} ,
2008-03-04 21:45:26 +00:00
} ,
monsetting = > {
cols = > [ qw( name key value comments disable ) ] ,
keys = > [ qw( name key ) ] ,
required = > [ qw( name key ) ] ,
2008-03-21 20:59:14 +00:00
table_desc = > 'Specifies the monitoring plug-in specific settings. These settings will be used by the monitoring plug-in to customize the behavior such as event filter, sample interval, responses etc. Entries should be added, removed or modified by chtab command. Entries can also be added or modified by the monstart command when a monitoring plug-in is brought up.' ,
2008-03-20 18:38:50 +00:00
descriptions = > {
2008-03-21 20:59:14 +00:00
name = > "The name of the mornitoring plug-in module. The plug-in must be put in $ENV{XCATROOT}/lib/perl/xCAT_monitoring/. See the man page for monstart for details." ,
key = > 'Specifies the name of the attribute. The valid values are specified by each monitoring plug-in. Use "monls name -d" to get a list of valid keys.' ,
2008-03-20 18:38:50 +00:00
value = > 'Specifies the value of the attribute.' ,
comments = > 'Any user-written notes.' ,
disable = > "Set to 'yes' or '1' to comment out this row." ,
} ,
2007-10-26 22:44:33 +00:00
} ,
2008-02-21 21:10:35 +00:00
mp = > {
2011-12-21 02:49:21 +00:00
cols = > [ qw( node mpa id nodetype comments disable ) ] ,
2007-10-26 22:44:33 +00:00
keys = > [ qw( node ) ] ,
2008-02-21 21:10:35 +00:00
table_desc = > 'Contains the hardware control info specific to blades. This table also refers to the mpa table, which contains info about each Management Module.' ,
2008-03-20 18:38:50 +00:00
descriptions = > {
node = > 'The blade node name or group name.' ,
mpa = > 'The managment module used to control this blade.' ,
id = > 'The slot number of this blade in the BladeCenter chassis.' ,
2011-12-21 02:49:21 +00:00
nodetype = > 'The hardware type for mp node. Valid values: mm,cmm, blade.' ,
comments = > 'Any user-written notes.' ,
disable = > "Set to 'yes' or '1' to comment out this row." ,
2008-03-20 18:38:50 +00:00
} ,
2007-10-26 22:44:33 +00:00
} ,
2008-02-21 21:10:35 +00:00
mpa = > {
2012-09-27 13:53:15 +00:00
cols = > [ qw( mpa username password displayname slots urlpath comments disable ) ] ,
2012-03-29 14:14:49 +00:00
keys = > [ qw( mpa username ) ] ,
2009-09-17 18:27:07 +00:00
nodecol = > "mpa" ,
2008-02-21 21:10:35 +00:00
table_desc = > 'Contains info about each Management Module and how to access it.' ,
2008-03-20 18:38:50 +00:00
descriptions = > {
mpa = > 'Hostname of the management module.' ,
2012-11-02 10:27:17 +00:00
username = > 'Userid to use to access the management module.' ,
2008-03-20 18:38:50 +00:00
password = > 'Password to use to access the management module. If not specified, the key=blade row in the passwd table is used as the default.' ,
2012-09-27 13:53:15 +00:00
displayname = > 'Alternative name for BladeCenter chassis. Only used by PCM.' ,
2012-10-01 17:52:44 +00:00
slots = > ' The number of available slots in the chassis . For PCM , this attribute is used to store the number of slots in the following format : < slot rows > , < slot columns > , < slot orientation > Where:
< slot rows > = number of rows of slots in chassis
< slot columns > = number of columns of slots in chassis
< slot orientation > = set to 0 if slots are vertical , and set to 1 if slots of horizontal
' ,
2012-09-27 13:53:15 +00:00
urlpath = > 'URL path for the Chassis web interface. The full URL is built as follows: <hostname>/<urlpath> ' ,
2008-03-20 18:38:50 +00:00
comments = > 'Any user-written notes.' ,
disable = > "Set to 'yes' or '1' to comment out this row." ,
} ,
2007-10-26 22:44:33 +00:00
} ,
2008-02-21 21:10:35 +00:00
networks = > {
2012-09-27 13:53:15 +00:00
cols = > [ qw( netname net mask mgtifname gateway dhcpserver tftpserver nameservers ntpservers logservers dynamicrange staticrange staticrangeincrement nodehostname ddnsdomain vlanid domain comments disable ) ] ,
2008-02-21 21:10:35 +00:00
keys = > [ qw( net mask ) ] ,
2012-09-27 13:53:15 +00:00
tablespace = > 'XCATTBS16K' ,
2008-02-21 21:10:35 +00:00
table_desc = > 'Describes the networks in the cluster and info necessary to set up nodes on that network.' ,
2008-03-20 18:38:50 +00:00
descriptions = > {
netname = > 'Name used to identify this network definition.' ,
net = > 'The network address.' ,
mask = > 'The network mask.' ,
2009-03-26 20:08:18 +00:00
mgtifname = > 'The interface name of the management/service node facing this network. !remote! indicates a non-local network for relay DHCP.' ,
2011-03-22 02:22:58 +00:00
gateway = > 'The network gateway. It can be set to an ip address or the keyword <xcatmaster>, the keyword <xcatmaster> indicates the cluster-facing ip address configured on this management node or service node. Leaving this field blank means that there is no gateway for this network.' ,
2009-03-26 20:08:18 +00:00
dhcpserver = > 'The DHCP server that is servicing this network. Required to be explicitly set for pooled service node operation.' ,
tftpserver = > 'The TFTP server that is servicing this network. If not set, the DHCP server is assumed.' ,
2011-05-11 09:41:32 +00:00
nameservers = > 'A comma delimited list of DNS servers that each node in this network should use. This value will end up in the nameserver settings of the /etc/resolv.conf on each node in this network. If this attribute value is set to the IP address of an xCAT node, make sure DNS is running on it. In a hierarchical cluster, you can also set this attribute to "<xcatmaster>" to mean the DNS server for each node in this network should be the node that is managing it (either its service node or the management node). Used in creating the DHCP network definition, and DNS configuration.' ,
2009-03-26 20:08:18 +00:00
ntpservers = > 'The ntp servers for this network. Used in creating the DHCP network definition. Assumed to be the DHCP server if not set.' ,
logservers = > 'The log servers for this network. Used in creating the DHCP network definition. Assumed to be the DHCP server if not set.' ,
2009-10-19 18:14:37 +00:00
dynamicrange = > 'The IP address range used by DHCP to assign dynamic IP addresses for requests on this network. This should not overlap with entities expected to be configured with static host declarations, i.e. anything ever expected to be a node with an address registered in the mac table.' ,
2012-09-27 13:53:15 +00:00
staticrange = > 'The IP address range used to dynamically assign static IPs to newly discovered nodes. This should not overlap with the dynamicrange nor overlap with entities that were manually assigned static IPs. The format for the attribute value is: <startip>-<endip>.' ,
statusrangeincrement = > 'The increment value used when getting the next available IP in the staticrange.' ,
2009-03-26 20:08:18 +00:00
nodehostname = > 'A regular expression used to specify node name to network-specific hostname. i.e. "/\z/-secondary/" would mean that the hostname of "n1" would be n1-secondary on this network. By default, the nodename is assumed to equal the hostname, followed by nodename-interfacename.' ,
2011-02-18 20:01:39 +00:00
ddnsdomain = > 'A domain to be combined with nodename to construct FQDN for DDNS updates induced by DHCP. This is not passed down to the client as "domain"' ,
vlanid = > 'The vlan ID if this network is within a vlan.' ,
2011-05-02 18:45:26 +00:00
domain = > 'The DNS domain name (ex. cluster.com).' ,
2008-03-20 18:38:50 +00:00
comments = > 'Any user-written notes.' ,
disable = > "Set to 'yes' or '1' to comment out this row." ,
} ,
2008-02-21 21:10:35 +00:00
} ,
nodegroup = > {
2012-09-27 13:53:15 +00:00
cols = > [ qw( groupname grouptype members membergroups wherevals comments disable ) ] ,
2008-03-20 18:38:50 +00:00
keys = > [ qw( groupname ) ] ,
2009-05-15 08:54:16 +00:00
table_desc = > 'Contains group definitions, whose membership is dynamic depending on characteristics of the node.' ,
2008-03-20 18:38:50 +00:00
descriptions = > {
groupname = > 'Name of the group.' ,
grouptype = > 'The only current valid value is dynamic. We will be looking at having the object def commands working with static group definitions in the nodelist table.' ,
members = > 'The value of the attribute is not used, but the attribute is necessary as a place holder for the object def commands. (The membership for static groups is stored in the nodelist table.)' ,
2012-09-27 13:53:15 +00:00
membergroups = > 'This attribute stores a comma-separated list of nodegroups that this nodegroup refers to. This attribute is only used by PCM.' ,
2009-06-30 11:44:14 +00:00
wherevals = > 'A list of "attr*val" pairs that can be used to determine the members of a dynamic group, the delimiter is "::" and the operator * can be ==, =~, != or !~.' ,
2008-03-20 18:38:50 +00:00
comments = > 'Any user-written notes.' ,
disable = > "Set to 'yes' or '1' to comment out this row." ,
} ,
2008-02-21 21:10:35 +00:00
} ,
nodehm = > {
2012-11-21 22:22:20 +00:00
cols = > [ qw( node power mgt cons termserver termport conserver serialport serialspeed serialflow getmac cmdmapping comments disable ) ] ,
2008-01-23 15:52:27 +00:00
keys = > [ qw( node ) ] ,
2011-05-03 18:50:45 +00:00
tablespace = > 'XCATTBS16K' ,
2008-02-21 21:10:35 +00:00
table_desc = > "Settings that control how each node's hardware is managed. Typically, an additional table that is specific to the hardware type of the node contains additional info. E.g. the ipmi, mp, and ppc tables." ,
2008-03-20 18:38:50 +00:00
descriptions = > {
node = > 'The node name or group name.' ,
power = > 'The method to use to control the power of the node. If not set, the mgt attribute will be used. Valid values: ipmi, blade, hmc, ivm, fsp. If "ipmi", xCAT will search for this node in the ipmi table for more info. If "blade", xCAT will search for this node in the mp table. If "hmc", "ivm", or "fsp", xCAT will search for this node in the ppc table.' ,
2011-08-10 07:00:18 +00:00
mgt = > 'The method to use to do general hardware management of the node. This attribute is used as the default if power or getmac is not set. Valid values: ipmi, blade, hmc, ivm, fsp, bpa. See the power attribute for more details.' ,
2009-10-20 15:59:19 +00:00
cons = > 'The console method. If nodehm.serialport is set, this will default to the nodehm.mgt setting, otherwise it defaults to unused. Valid values: cyclades, mrv, or the values valid for the mgt attribute.' ,
2008-03-20 18:38:50 +00:00
termserver = > 'The hostname of the terminal server.' ,
termport = > 'The port number on the terminal server that this node is connected to.' ,
conserver = > 'The hostname of the machine where the conserver daemon is running. If not set, the default is the xCAT management node.' ,
2008-04-25 15:36:56 +00:00
serialport = > 'The serial port for this node, in the linux numbering style (0=COM1/ttyS0, 1=COM2/ttyS1). For SOL on IBM blades, this is typically 1. For rackmount IBM servers, this is typically 0.' ,
serialspeed = > 'The speed of the serial port for this node. For SOL this is typically 19200.' ,
serialflow = > "The flow control value of the serial port for this node. For SOL this is typically 'hard'." ,
2009-10-20 14:50:24 +00:00
getmac = > 'The method to use to get MAC address of the node with the getmac command. If not set, the mgt attribute will be used. Valid values: same as values for mgmt attribute.' ,
2012-11-21 22:22:20 +00:00
cmdmapping = > 'The fully qualified name of the file that stores the mapping between PCM hardware management commands and xCAT/third-party hardware management commands for a particular type of hardware device. Only used by PCM.' ,
2008-03-20 18:38:50 +00:00
comments = > 'Any user-written notes.' ,
disable = > "Set to 'yes' or '1' to comment out this row." ,
} ,
2007-10-26 22:44:33 +00:00
} ,
2008-02-21 21:10:35 +00:00
nodelist = > {
2012-09-27 13:53:15 +00:00
cols = > [ qw( node groups status statustime appstatus appstatustime primarysn hidden updatestatus updatestatustime comments disable ) ] ,
2007-10-26 22:44:33 +00:00
keys = > [ qw( node ) ] ,
2012-09-27 13:53:15 +00:00
tablespace = > 'XCATTBS32K' ,
2008-02-21 21:10:35 +00:00
table_desc = > "The list of all the nodes in the cluster, including each node's current status and what groups it is in." ,
descriptions = > {
2008-03-20 18:38:50 +00:00
node = > 'The hostname of a node in the cluster.' ,
2012-09-27 13:53:15 +00:00
groups = > "A comma-delimited list of groups this node is a member of. Group names are arbitrary, except all nodes should be part of the 'all' group. Internal group names are designated by using __<groupname>. For example, __Unmanaged, could be the internal name for a group of nodes that is not managed by xCAT. Admins should avoid using the __ characters when defining their groups." ,
2011-04-19 18:05:40 +00:00
status = > 'The current status of this node. This attribute will be set by xCAT software. Valid values: defined, booting, netbooting, booted, discovering, configuring, installing, alive, standingby, powering-off, unreachable. If blank, defined is assumed. The possible status change sequenses are: For installaton: defined->[discovering]->[configuring]->[standingby]->installing->booting->booted->[alive], For diskless deployment: defined->[discovering]->[configuring]->[standingby]->netbooting->booted->[alive], For booting: [alive/unreachable]->booting->[alive], For powering off: [alive]->powering-off->[unreachable], For monitoring: alive->unreachable. Discovering and configuring are for x Series dicovery process. Alive and unreachable are set only when there is a monitoring plug-in start monitor the node status for xCAT. Please note that the status values will not reflect the real node status if you change the state of the node from outside of xCAT (i.e. power off the node using HMC GUI).' ,
2010-03-10 19:09:30 +00:00
statustime = > "The data and time when the status was updated." ,
2010-03-12 21:46:11 +00:00
appstatus = > "A comma-delimited list of application status. For example: 'sshd=up,ftp=down,ll=down'" ,
appstatustime = > 'The date and time when appstatus was updated.' ,
primarysn = > 'Not used currently. The primary servicenode, used by this node.' ,
2012-09-27 13:53:15 +00:00
hidden = > "Used to hide fsp and bpa definitions, 1 means not show them when running lsdef and nodels" ,
2012-11-15 15:18:20 +00:00
updatestatus = > "The current node update status. Valid states are synced and out-of-sync." ,
2012-09-27 13:53:15 +00:00
updatestatustime = > "The date and time when the updatestatus was updated." ,
2008-03-20 18:38:50 +00:00
comments = > 'Any user-written notes.' ,
disable = > "Set to 'yes' or '1' to comment out this row." ,
2008-02-21 21:10:35 +00:00
} ,
2007-10-26 22:44:33 +00:00
} ,
2008-02-21 21:10:35 +00:00
nodepos = > {
2012-09-27 13:53:15 +00:00
cols = > [ qw( node rack u chassis slot room height comments disable ) ] ,
2008-02-21 21:10:35 +00:00
keys = > [ qw( node ) ] ,
2011-05-03 18:50:45 +00:00
tablespace = > 'XCATTBS16K' ,
2008-02-21 21:10:35 +00:00
table_desc = > 'Contains info about the physical location of each node. Currently, this info is not used by xCAT, and therefore can be in whatevery format you want. It will likely be used in xCAT in the future.' ,
2008-03-20 18:38:50 +00:00
descriptions = > {
node = > 'The node name or group name.' ,
rack = > 'The frame the node is in.' ,
u = > 'The vertical position of the node in the frame' ,
chassis = > 'The BladeCenter chassis the blade is in.' ,
2012-10-01 17:52:44 +00:00
slot = > 'The slot number of the blade in the chassis. For PCM, a comma-separated list of slot numbers is stored' ,
2012-09-27 13:53:15 +00:00
room = > 'The room where the node is located.' ,
height = > 'The server height in U(s).' ,
2008-03-20 18:38:50 +00:00
comments = > 'Any user-written notes.' ,
disable = > "Set to 'yes' or '1' to comment out this row." ,
} ,
2008-02-21 21:10:35 +00:00
} ,
noderes = > {
2013-03-19 14:31:44 +00:00
cols = > [ qw( node servicenode netboot tftpserver tftpdir nfsserver monserver nfsdir installnic primarynic discoverynics cmdinterface xcatmaster current_osimage next_osimage nimserver routenames nameservers comments disable ) ] ,
2007-10-26 22:44:33 +00:00
keys = > [ qw( node ) ] ,
2011-05-03 18:50:45 +00:00
tablespace = > 'XCATTBS16K' ,
2008-02-21 21:10:35 +00:00
table_desc = > 'Resources and settings to use when installing nodes.' ,
2008-03-20 18:38:50 +00:00
descriptions = > {
node = > 'The node name or group name.' ,
2011-06-02 20:26:04 +00:00
servicenode = > 'A comma separated list of node names (as known by the management node) that provides most services for this node. The first service node on the list that is accessible will be used. The 2nd node on the list is generally considered to be the backup service node for this node when running commands like snmove.' ,
netboot = > 'The type of network booting to use for this node. Valid values: pxe or xnba for x86* architecture, yaboot for POWER architecture.' ,
2012-06-29 13:46:20 +00:00
tftpserver = > 'The TFTP server for this node (as known by this node). If not set, it defaults to networks.tftpserver.' ,
2012-02-07 15:17:39 +00:00
tftpdir = > 'The directory that roots this nodes contents from a tftp and related perspective. Used for NAS offload by using different mountpoints.' ,
2011-09-20 13:50:51 +00:00
nfsserver = > 'The NFS or HTTP server for this node (as known by this node).' ,
2009-10-19 20:06:40 +00:00
monserver = > 'The monitoring aggregation point for this node. The format is "x,y" where x is the ip address as known by the management node and y is the ip address as known by the node.' ,
2010-04-27 19:10:32 +00:00
nfsdir = > 'The path that should be mounted from the NFS server.' ,
2010-03-03 03:31:34 +00:00
installnic = > 'The network adapter on the node that will be used for OS deployment, the installnic can be set to the network adapter name or the mac address or the keyword "mac" which means that the network interface specified by the mac address in the mac table will be used. If not set, primarynic will be used.' ,
primarynic = > 'The network adapter on the node that will be used for xCAT management, the primarynic can be set to the network adapter name or the mac address or the keyword "mac" which means that the network interface specified by the mac address in the mac table will be used. Default is eth0.' ,
2009-12-09 19:15:16 +00:00
discoverynics = > 'If specified, force discovery to occur on specific network adapters only, regardless of detected connectivity. Syntax can be simply "eth2,eth3" to restrict discovery to whatever happens to come up as eth2 and eth3, or by driver name such as "bnx2:0,bnx2:1" to specify the first two adapters managed by the bnx2 driver' ,
2011-06-02 20:26:04 +00:00
cmdinterface = > 'Not currently used.' ,
xcatmaster = > 'The hostname of the xCAT service node (as known by this node). This acts as the default value for nfsserver and tftpserver, if they are not set. If xcatmaster is not set, the node will use whoever responds to its boot request as its master. For the directed bootp case for POWER, it will use the management node if xcatmaster is not set.' ,
2008-03-20 18:38:50 +00:00
current_osimage = > 'Not currently used. The name of the osimage data object that represents the OS image currently deployed on this node.' ,
next_osimage = > 'Not currently used. The name of the osimage data object that represents the OS image that will be installed on the node the next time it is deployed.' ,
2011-03-30 14:49:03 +00:00
nimserver = > 'Not used for now. The NIM server for this node (as known by this node).' ,
2011-06-02 20:26:04 +00:00
routenames = > 'A comma separated list of route names that refer to rows in the routes table. These are the routes that should be defined on this node when it is deployed.' ,
2013-03-19 14:31:44 +00:00
nameservers = > 'An optional node/group specific override for name server list. Most people want to stick to site or network defined nameserver configuration.' ,
2011-03-30 14:49:03 +00:00
comments = > 'Any user-written notes.' ,
disable = > "Set to 'yes' or '1' to comment out this row." ,
2008-03-20 18:38:50 +00:00
} ,
2007-10-26 22:44:33 +00:00
} ,
2008-09-06 22:13:56 +00:00
switches = > {
2012-12-06 21:11:29 +00:00
cols = > [ qw( switch snmpversion username password privacy auth linkports sshusername sshpassword protocol switchtype comments disable ) ] ,
2008-09-06 22:13:56 +00:00
keys = > [ qw( switch ) ] ,
2009-09-17 18:27:07 +00:00
nodecol = > "switch" ,
2008-09-06 22:13:56 +00:00
table_desc = > 'Parameters to use when interrogating switches' ,
descriptions = > {
switch = > 'The hostname/address of the switch to which the settings apply' ,
snmpversion = > 'The version to use to communicate with switch. SNMPv1 is assumed by default.' ,
username = > 'The username to use for SNMPv3 communication, ignored for SNMPv1' ,
password = > 'The password or community string to use for SNMPv3 or SNMPv1 respectively. Falls back to passwd table, and site snmpc value if using SNMPv1' ,
privacy = > 'The privacy protocol to use for v3. DES is assumed if v3 enabled, as it is the most readily available.' ,
auth = > 'The authentication protocol to use for SNMPv3. SHA is assumed if v3 enabled and this is unspecified' ,
2011-03-22 16:47:08 +00:00
linkports = > 'The ports that connect to other switches. Currently, this column is only used by vlan configuration. The format is: "port_number:switch,port_number:switch...". Please refer to the switch table for details on how to specify the port numbers.' ,
2012-12-06 21:11:29 +00:00
sshusername = > 'The remote login user name. It can be for ssh or telnet. If it is for telnet, please set protocol to "telnet".' ,
sshpassword = > 'The remote login password. It can be for ssh or telnet. If it is for telnet, please set protocol to "telnet".' ,
protocol = > 'Prorocol for running remote commands for the switch. The valid values are: ssh, telnet. ssh is the default. Leave it blank or set to "ssh" for Mellanox IB switch.' ,
2011-10-13 00:27:40 +00:00
switchtype = > 'The type of switch. It is used to identify the file name that implements the functions for this swithc. The valid values are: MellanoxIB etc.' ,
} ,
2008-09-06 22:13:56 +00:00
} ,
2008-02-21 21:10:35 +00:00
nodetype = > {
2009-09-19 17:03:14 +00:00
cols = > [ qw( node os arch profile provmethod supportedarchs nodetype comments disable ) ] ,
2008-02-21 21:10:35 +00:00
keys = > [ qw( node ) ] ,
2011-05-03 18:50:45 +00:00
tablespace = > 'XCATTBS16K' ,
2008-02-21 21:10:35 +00:00
table_desc = > 'A few hardware and software characteristics of the nodes.' ,
2008-03-20 18:38:50 +00:00
descriptions = > {
node = > 'The node name or group name.' ,
2011-06-30 11:12:25 +00:00
os = > 'The operating system deployed on this node. Valid values: AIX, rhels*,rhelc*, rhas*,centos*,SL*, fedora*, sles* (where * is the version #). As a special case, if this is set to "boottarget", then it will use the initrd/kernel/parameters specified in the row in the boottarget table in which boottarget.bprofile equals nodetype.profile.' ,
2008-03-20 18:38:50 +00:00
arch = > 'The hardware architecture of this node. Valid values: x86_64, ppc64, x86, ia64.' ,
2013-01-03 12:30:42 +00:00
profile = > 'The string to use to locate a kickstart or autoyast template to use for OS deployment of this node. If the provmethod attribute is set to an osimage name, that takes precedence, and profile need not be defined. Otherwise, the os, profile, and arch are used to search for the files in /install/custom first, and then in /opt/xcat/share/xcat.' ,
2011-06-10 14:35:34 +00:00
provmethod = > 'The provisioning method for node deployment. The valid values are install, netboot, statelite or an os image name from the osimage table. If an image name is specified, the osimage definition stored in the osimage table and the linuximage table (for Linux) or nimimage table (for AIX) are used to locate the files for templates, pkglists, syncfiles, etc. On Linux, if install, netboot or statelite is specified, the os, profile, and arch are used to search for the files in /install/custom first, and then in /opt/xcat/share/xcat.' ,
2009-09-14 11:02:38 +00:00
supportedarchs = > 'Comma delimited list of architectures this node can execute.' ,
2012-11-28 18:46:31 +00:00
nodetype = > 'A comma-delimited list of characteristics of this node. Valid values: ppc, blade, vm (virtual machine), osi (OS image), mm, mn, rsa, switch.' ,
2008-03-20 18:38:50 +00:00
comments = > 'Any user-written notes.' ,
disable = > "Set to 'yes' or '1' to comment out this row." ,
} ,
2008-02-21 21:10:35 +00:00
} ,
notification = > {
cols = > [ qw( filename tables tableops comments disable ) ] ,
keys = > [ qw( filename ) ] ,
required = > [ qw( tables filename ) ] ,
2008-02-22 16:06:29 +00:00
table_desc = > 'Contains registrations to be notified when a table in the xCAT database changes. Users can add entries to have additional software notified of changes. Add and remove entries using the provided xCAT commands regnotif and unregnotif.' ,
2008-03-20 18:38:50 +00:00
descriptions = > {
filename = > 'The path name of a file that implements the callback routine when the monitored table changes. Can be a perl module or a command. See the regnotif man page for details.' ,
tables = > 'Comma-separated list of xCAT database tables to monitor.' ,
tableops = > 'Specifies the table operation to monitor for. Valid values: "d" (rows deleted), "a" (rows added), "u" (rows updated).' ,
comments = > 'Any user-written notes.' ,
disable = > "Set to 'yes' or '1' to comment out this row." ,
} ,
2007-10-26 22:44:33 +00:00
} ,
2011-06-30 11:12:25 +00:00
osimage = > {
2012-11-12 20:04:28 +00:00
cols = > [ qw( imagename groups profile imagetype description provmethod rootfstype osdistroname osupdatename cfmdir osname osvers osarch synclists postscripts postbootscripts serverrole isdeletable kitcomponents comments disable ) ] ,
2008-03-20 18:38:50 +00:00
keys = > [ qw( imagename ) ] ,
2012-09-27 13:53:15 +00:00
tablespace = > 'XCATTBS32K' ,
table_desc = > 'Basic information about an operating system image that can be used to deploy cluster nodes.' ,
types = > {
osupdatename = > 'VARCHAR(1024)' ,
} ,
2008-03-20 18:38:50 +00:00
descriptions = > {
2009-09-19 17:03:14 +00:00
imagename = > 'The name of this xCAT OS image definition.' ,
2012-07-17 11:56:53 +00:00
groups = > 'A comma-delimited list of image groups of which this image is a member. Image groups can be used in the litefile and litetree table instead of a single image name. Group names are arbitrary.' ,
2011-06-30 11:12:25 +00:00
imagetype = > 'The type of operating system image this definition represents (linux,AIX).' ,
2012-11-12 20:04:28 +00:00
description = > 'OS Image Description' ,
2012-09-27 13:53:15 +00:00
provmethod = > 'The provisioning method for node deployment. The valid values are install, netboot,statelite,boottarget,dualboot. If boottarget is set, you must set linuximage.boottarget to the name of the boottarget definition. It is not used by AIX.' ,
2011-01-06 06:54:06 +00:00
rootfstype = > 'The filesystem type for the rootfs is used when the provmethod is statelite. The valid values are nfs or ramdisk. The default value is nfs' ,
2012-08-30 08:55:17 +00:00
osdistroname = > 'The name of the OS distro definition. This attribute can be used to specify which OS distro to use, instead of using the osname,osvers,and osarch attributes.' ,
2012-09-27 13:53:15 +00:00
osupdatename = > 'A comma-separated list of OS distro updates to apply to this osimage.' ,
2012-09-28 17:10:39 +00:00
cfmdir = > 'CFM directory name for PCM. Set to /install/osimages/<osimage name>/cfmdir by PCM. ' ,
2009-09-19 17:03:14 +00:00
profile = > 'The node usage category. For example compute, service.' ,
2008-06-08 12:38:27 +00:00
osname = > 'Operating system name- AIX or Linux.' ,
2011-06-30 11:12:25 +00:00
osvers = > 'The Linux operating system deployed on this node. Valid values: rhels*,rhelc*, rhas*,centos*,SL*, fedora*, sles* (where * is the version #).' ,
osarch = > 'The hardware architecture of this node. Valid values: x86_64, ppc64, x86, ia64.' ,
2012-10-01 17:52:44 +00:00
synclists = > 'The fully qualified name of a file containing a list of files to synchronize on the nodes. Can be a comma separated list of multiple synclist files. The synclist generated by PCM named /install/osimages/<imagename>/synclist.cfm is reserved for use only by PCM and should not be edited by the admin.' ,
2013-01-04 13:34:07 +00:00
postscripts = > 'Comma separated list of scripts that should be run on this image after diskfull installation or diskless boot. For installation of RedHat, CentOS, Fedora, the scripts will be run before the reboot. For installation of SLES, the scripts will be run after the reboot but before the init.d process. For diskless deployment, the scripts will be run at the init.d time, and xCAT will automatically add the list of scripts from the postbootscripts attribute to run after postscripts list. For installation of AIX, the scripts will run after the reboot and acts the same as the postbootscripts attribute. For AIX, use the postbootscripts attribute. See the site table runbootscripts attribute. Support will be added in the future for the postscripts attribute to run the scripts before the reboot in AIX. ' ,
postbootscripts = > 'Comma separated list of scripts that should be run on this after diskfull installation or diskless boot. On AIX these scripts are run during the processing of /etc/inittab. On Linux they are run at the init.d time. xCAT automatically adds the scripts in the xcatdefaults.postbootscripts attribute to run first in the list. See the site table runbootscripts attribute.' ,
2013-01-24 10:29:19 +00:00
serverrole = > 'The role of the server created by this osimage. Default roles: mgtnode, servicenode, compute, login, storage, utility.' ,
2012-09-27 13:53:15 +00:00
isdeletable = > 'A flag to indicate whether this image profile can be deleted. This attribute is only used by PCM.' ,
kitcomponents = > 'List of Kit Component IDs assigned to this OS Image definition.' ,
2008-06-08 12:38:27 +00:00
comments = > 'Any user-written notes.' ,
disable = > "Set to 'yes' or '1' to comment out this row." ,
2008-03-20 18:38:50 +00:00
} ,
2007-11-26 20:30:00 +00:00
} ,
2009-09-19 17:03:14 +00:00
linuximage = > {
2012-09-27 13:53:15 +00:00
cols = > [ qw( imagename template boottarget addkcmdline pkglist pkgdir otherpkglist otherpkgdir exlist postinstall rootimgdir kerneldir nodebootif otherifce netdrivers kernelver krpmver permission dump crashkernelsize partitionfile driverupdatesrc comments disable ) ] ,
2009-09-19 17:03:14 +00:00
keys = > [ qw( imagename ) ] ,
2012-09-27 13:53:15 +00:00
tablespace = > 'XCATTBS32K' ,
table_desc = > 'Information about a Linux operating system image that can be used to deploy cluster nodes.' ,
2009-09-19 17:03:14 +00:00
descriptions = > {
imagename = > 'The name of this xCAT OS image definition.' ,
template = > 'The fully qualified name of the template file that is used to create the kick start file for diskful installation.' ,
2012-09-27 13:53:15 +00:00
boottarget = > 'The name of the boottarget definition. When this attribute is set, xCAT will use the kernel, initrd and kernel params defined in the boottarget definition instead of the default.' ,
addkcmdline = > 'User specified arguments to be passed to the kernel. The user arguments are appended to xCAT.s default kernel arguments. This attribute is ignored if linuximage.boottarget is set.' ,
2013-03-21 06:57:22 +00:00
pkglist = > 'The fully qualified name of the file that stores the distro packages list that will be included in the image. Make sure that if the pkgs in the pkglist have dependency pkgs, the dependency pkgs should be found in one of the pkgdir' ,
2013-03-01 09:15:18 +00:00
pkgdir = > 'The name of the directory where the distro packages are stored. It could be set multiple paths.The multiple paths must be seperated by ",". The first path in the value of osimage.pkgdir must be the OS base pkg dir path, such as pkgdir=/install/rhels6.2/x86_64,/install/updates . In the os base pkg path, there are default repository data. And in the other pkg path(s), the users should make sure there are repository data. If not, use "createrepo" command to create them. ' ,
2009-09-19 17:03:14 +00:00
otherpkglist = > 'The fully qualified name of the file that stores non-distro package lists that will be included in the image.' ,
otherpkgdir = > 'The base directory where the non-distro packages are stored.' ,
exlist = > 'The fully qualified name of the file that stores the file names and directory names that will be excluded from the image during packimage command. It is used for diskless image only.' ,
2012-03-30 08:48:27 +00:00
postinstall = > 'The fully qualified name of the script file that will be run at the end of the genimage command. It is used for diskless image only.' ,
2009-09-19 17:03:14 +00:00
rootimgdir = > 'The directory name where the image is stored. It is used for diskless image only.' ,
2011-03-28 07:39:59 +00:00
kerneldir = > 'The directory name where the 3rd-party kernel is stored. It is used for diskless image only.' ,
2010-09-17 09:54:47 +00:00
nodebootif = > 'The network interface the stateless/statelite node will boot over (e.g. eth0)' ,
otherifce = > 'Other network interfaces (e.g. eth1) in the image that should be configured via DHCP' ,
2011-06-24 16:11:32 +00:00
netdrivers = > 'The ethernet device drivers of the nodes which will use this linux image, at least the device driver for the nodes\' installnic should be included' ,
kernelver = > 'The version of linux kernel used in the linux image. If the kernel version is not set, the default kernel in rootimgdir will be used' ,
krpmver = > 'The rpm version of kernel packages (for SLES only). If it is not set, the default rpm version of kernel packages will be used.' ,
permission = > 'The mount permission of /.statelite directory is used, its default value is 755' ,
2010-12-14 07:15:45 +00:00
dump = > qq{ The NFS directory to hold the Linux kernel dump file (vmcore) when the node with this image crashes, its format is "nfs://<nfs_server_ip>/<kdump_path>". If you want to use the node's "xcatmaster" (its SN or MN), <nfs_server_ip> can be left blank. For example, "nfs:///<kdump_path>" means the NFS directory to hold the kernel dump file is on the node's SN, or MN if there's no SN. } ,
2011-06-27 08:42:19 +00:00
crashkernelsize = > 'the size that assigned to the kdump kernel. If the kernel size is not set, 256M will be the default value.' ,
2013-02-01 07:06:23 +00:00
partitionfile = > 'The path of the configuration file which is used to part the disk for the node. For stateful: two types of value can be set for this attribute. One is "<partition file absolute path>", the content of the partition file must use the corresponding format with the OS type. The other one is "s:<partition file absolute path>", the content of the partition file should be a shell script which must write the partition definition into /tmp/partitionfile on the node. For statelite: the valid value is <partition file absolute path>, refer to the statelite doc for the xCAT defined format of the configuration file.' ,
2012-07-05 14:59:08 +00:00
driverupdatesrc = > 'The source of the drivers which need to be loaded during the boot. Two types of driver update source are supported: Driver update disk and Driver rpm package. The value for this attribute should be comma separated sources. Each source should be the format tab:full_path_of_srouce_file. The tab keyword can be: dud (for Driver update disk) and rpm (for driver rpm). If missing the tab, the rpm format is the default. e.g. dud:/install/dud/dd.img,rpm:/install/rpm/d.rpm' ,
2009-09-19 17:03:14 +00:00
comments = > 'Any user-written notes.' ,
disable = > "Set to 'yes' or '1' to comment out this row." ,
} ,
} ,
2008-02-21 21:10:35 +00:00
passwd = > {
2013-01-25 21:04:12 +00:00
cols = > [ qw( key username password cryptmethod authdomain comments disable ) ] ,
2008-06-20 15:28:41 +00:00
keys = > [ qw( key username ) ] ,
2008-04-05 14:53:35 +00:00
table_desc = > 'Contains default userids and passwords for xCAT to access cluster components. In most cases, xCAT will also actually set the userid/password in the relevant component when it is being configured or installed. Userids/passwords for specific cluster components can be overidden in other tables, e.g. mpa, ipmi, ppchcp, etc.' ,
2008-03-20 18:38:50 +00:00
descriptions = > {
2011-10-13 00:27:40 +00:00
key = > 'The type of component this user/pw is for. Valid values: blade (management module), ipmi (BMC), system (nodes), omapi (DHCP), hmc, ivm, cec, frame, switch.' ,
2008-03-20 18:38:50 +00:00
username = > 'The default userid for this type of component' ,
password = > 'The default password for this type of component' ,
2013-01-23 08:14:48 +00:00
cryptmethod = > 'Indicates the method that was used to encrypt the password attribute. On AIX systems, if a value is provided for this attribute it indicates that the password attribute is encrypted. If the cryptmethod value is not set it indicates the password is a simple string value. On Linux systems, the cryptmethod is not supported however the code attempts to auto-discover MD5 encrypted passwords.' ,
2013-01-25 21:04:12 +00:00
authdomain = > 'The domain in which this entry has meaning, e.g. specifying different domain administrators per active directory domain' ,
2008-03-20 18:38:50 +00:00
comments = > 'Any user-written notes.' ,
disable = > "Set to 'yes' or '1' to comment out this row." ,
} ,
2007-11-26 20:30:00 +00:00
} ,
2008-02-21 21:10:35 +00:00
policy = > {
cols = > [ qw( priority name host commands noderange parameters time rule comments disable ) ] ,
keys = > [ qw( priority ) ] ,
2011-04-19 18:05:40 +00:00
table_desc = > 'The policy table in the xCAT database controls who has authority to run specific xCAT operations. It is basically the Access Control List (ACL) for xCAT.' ,
2008-03-20 18:38:50 +00:00
descriptions = > {
priority = > 'The priority value for this rule. This value is used to identify this policy data object (i.e. this rule).' ,
name = > 'The username that is allowed to perform the commands specified by this rule. Default is "*" (all users).' ,
host = > 'The host from which users may issue the commands specified by this rule. Default is "*" (all hosts).' ,
commands = > 'The list of commands that this rule applies to. Default is "*" (all commands).' ,
noderange = > 'The Noderange that this rule applies to. Default is "*" (all nodes).' ,
2011-06-02 20:26:04 +00:00
parameters = > 'A regular expression that matches the command parameters (everything except the noderange) that this rule applies to. Default is "*" (all parameters).' ,
2011-06-23 14:17:30 +00:00
time = > 'Time ranges that this command may be executed in. This is not supported.' ,
2010-03-12 18:13:55 +00:00
rule = > 'Specifies how this rule should be applied. Valid values are: allow, accept, trusted. Allow or accept will allow the user to run the commands. Any other value will deny the user access to the commands. Trusted means that once this client has been authenticated via the certificate, all other information that is sent (e.g. the username) is believed without question. This authorization should only be given to the xcatd on the management node at this time.' ,
2008-03-20 18:38:50 +00:00
comments = > 'Any user-written notes.' ,
disable = > "Set to 'yes' or '1' to comment out this row." ,
} ,
2007-10-26 22:44:33 +00:00
} ,
2008-02-21 21:10:35 +00:00
postscripts = > {
2009-12-15 13:50:21 +00:00
cols = > [ qw( node postscripts postbootscripts comments disable ) ] ,
2007-10-26 22:44:33 +00:00
keys = > [ qw( node ) ] ,
2011-05-03 18:50:45 +00:00
tablespace = > 'XCATTBS16K' ,
2009-02-18 21:13:48 +00:00
table_desc = > ' The scripts that should be run on each node after installation or diskless boot.' ,
2008-03-20 18:38:50 +00:00
descriptions = > {
node = > 'The node name or group name.' ,
2011-08-25 19:11:43 +00:00
postscripts = > 'Comma separated list of scripts that should be run on this node after diskfull installation or diskless boot. Each script can take zero or more parameters. For example: "script1 p1 p2,script2,...". xCAT automatically adds the postscripts from the xcatdefaults.postscripts attribute of the table to run first on the nodes after install or diskless boot. For installation of RedHat, CentOS, Fedora, the scripts will be run before the reboot. For installation of SLES, the scripts will be run after the reboot but before the init.d process. For diskless deployment, the scripts will be run at the init.d time, and xCAT will automatically add the list of scripts from the postbootscripts attribute to run after postscripts list. For installation of AIX, the scripts will run after the reboot and acts the same as the postbootscripts attribute. For AIX, use the postbootscripts attribute. Support will be added in the future for the postscripts attribute to run the scripts before the reboot in AIX. ' ,
postbootscripts = > 'Comma separated list of scripts that should be run on thisnode after diskfull installation or diskless boot. Each script can take zero or more parameters. For example: "script1 p1 p2,script2,...". On AIX these scripts are run during the processing of /etc/inittab. On Linux they are run at the init.d time. xCAT automatically adds the scripts in the xcatdefaults.postbootscripts attri bute to run first in the list.' ,
2009-12-15 13:50:21 +00:00
comments = > 'Any user-written notes.' ,
2008-03-20 18:38:50 +00:00
disable = > "Set to 'yes' or '1' to comment out this row." ,
} ,
2008-02-21 21:10:35 +00:00
} ,
ppc = > {
2011-03-10 13:47:09 +00:00
cols = > [ qw( node hcp id pprofile parent nodetype supernode sfp comments disable ) ] ,
2008-02-21 21:10:35 +00:00
keys = > [ qw( node ) ] ,
2011-05-03 18:50:45 +00:00
tablespace = > 'XCATTBS16K' ,
2011-05-23 08:29:01 +00:00
table_desc = > 'List of system p hardware: HMCs, IVMs, FSPs, BPCs, CECs, Frames.' ,
2008-03-20 18:38:50 +00:00
descriptions = > {
node = > 'The node name or group name.' ,
2011-06-02 20:26:04 +00:00
hcp = > 'The hardware control point for this node (HMC, IVM, Frame or CEC). Do not need to set for BPAs and FSPs.' ,
id = > 'For LPARs: the LPAR numeric id; for CECs: the cage number; for Frames: the frame number.' ,
2011-05-23 08:29:01 +00:00
pprofile = > 'The LPAR profile that will be used the next time the LPAR is powered on with rpower. For DFM, the pprofile attribute should be set to blank ' ,
2011-06-02 20:26:04 +00:00
parent = > 'For LPARs: the CEC; for FSPs: the CEC; for CEC: the frame (if one exists); for BPA: the frame; for frame: the building block number (which consists 1 or more service nodes and compute/storage nodes that are serviced by them - optional).' ,
2011-07-05 07:08:05 +00:00
nodetype = > 'The hardware type of the node. Only can be one of fsp, bpa, cec, frame, ivm, hmc and lpar' ,
2011-06-02 20:26:04 +00:00
supernode = > 'Indicates the connectivity of this CEC in the HFI network. A comma separated list of 2 ids. The first one is the supernode number the CEC is part of. The second one is the logical location number (0-3) of this CEC within the supernode.' ,
sfp = > 'The Service Focal Point of this Frame. This is the name of the HMC that is responsible for collecting hardware service events for this frame and all of the CECs within this frame.' ,
2008-03-20 18:38:50 +00:00
comments = > 'Any user-written notes.' ,
disable = > "Set to 'yes' or '1' to comment out this row." ,
} ,
2008-02-21 21:10:35 +00:00
} ,
ppcdirect = > {
cols = > [ qw( hcp username password comments disable ) ] ,
2009-08-21 06:36:28 +00:00
keys = > [ qw( hcp username ) ] ,
2009-09-21 18:59:46 +00:00
nodecol = > "hcp" ,
2011-05-23 08:29:01 +00:00
table_desc = > 'Info necessary to use FSPs/BPAs to control system p CECs/Frames.' ,
2008-03-20 18:38:50 +00:00
descriptions = > {
2011-05-23 08:29:01 +00:00
hcp = > 'Hostname of the FSPs/BPAs(for ASMI) and CECs/Frames(for DFM).' ,
username = > 'Userid of the FSP/BPA(for ASMI) and CEC/Frame(for DFM). If not filled in, xCAT will look in the passwd table for key=fsp. If not in the passwd table, the default used is admin.' ,
password = > 'Password of the FSP/BPA(for ASMI) and CEC/Frame(for DFM). If not filled in, xCAT will look in the passwd table for key=fsp. If not in the passwd table, the default used is admin.' ,
2008-03-20 18:38:50 +00:00
comments = > 'Any user-written notes.' ,
disable = > "Set to 'yes' or '1' to comment out this row." ,
} ,
2007-10-26 22:44:33 +00:00
} ,
2008-02-21 21:10:35 +00:00
ppchcp = > {
cols = > [ qw( hcp username password comments disable ) ] ,
keys = > [ qw( hcp ) ] ,
2009-09-21 18:59:46 +00:00
nodecol = > "hcp" ,
2008-02-21 21:10:35 +00:00
table_desc = > 'Info necessary to use HMCs and IVMs as hardware control points for LPARs.' ,
2008-03-20 18:38:50 +00:00
descriptions = > {
hcp = > 'Hostname of the HMC or IVM.' ,
username = > 'Userid of the HMC or IVM. If not filled in, xCAT will look in the passwd table for key=hmc or key=ivm. If not in the passwd table, the default used is hscroot for HMCs and padmin for IVMs.' ,
password = > 'Password of the HMC or IVM. If not filled in, xCAT will look in the passwd table for key=hmc or key=ivm. If not in the passwd table, the default used is abc123 for HMCs and padmin for IVMs.' ,
comments = > 'Any user-written notes.' ,
disable = > "Set to 'yes' or '1' to comment out this row." ,
} ,
2008-02-21 21:10:35 +00:00
} ,
2008-05-02 15:24:33 +00:00
servicenode = > {
2012-09-27 13:53:15 +00:00
cols = > [ qw( node nameserver dhcpserver tftpserver nfsserver conserver monserver ldapserver ntpserver ftpserver nimserver ipforward dhcpinterfaces comments disable ) ] ,
2008-05-02 15:24:33 +00:00
keys = > [ qw( node ) ] ,
table_desc = > 'List of all Service Nodes and services that will be set up on the Service Node.' ,
descriptions = > {
node = > 'The hostname of the service node as known by the Management Node.' ,
2011-07-26 12:47:22 +00:00
nameserver = > 'Do we set up DNS on this service node? Valid values:yes or 1, no or 0. If yes, creates named.conf file with forwarding to the management node and starts named. If no or 0, it does not change the current state of the service. ' ,
dhcpserver = > 'Do we set up DHCP on this service node? Not supported on AIX. Valid values:yes or 1, no or 0. If yes, runs makedhcp -n. If no or 0, it does not change the current state of the service. ' ,
tftpserver = > 'Do we set up TFTP on this service node? Not supported on AIX. Valid values:yes or 1, no or 0. If yes, configures and starts atftp. If no or 0, it does not change the current state of the service. ' ,
nfsserver = > 'Do we set up file services (HTTP,FTP,or NFS) on this service node? For AIX will only setup NFS, not HTTP or FTP. Valid values:yes or 1, no or 0.If no or 0, it does not change the current state of the service. ' ,
conserver = > 'Do we set up Conserver on this service node? Valid values:yes or 1, no or 0. If yes, configures and starts conserver daemon. If no or 0, it does not change the current state of the service.' ,
2011-08-01 12:09:19 +00:00
monserver = > 'Is this a monitoring event collection point? Valid values:yes or 1, no or 0. If no or 0, it does not change the current state of the service.' ,
2011-07-26 12:47:22 +00:00
ldapserver = > 'Do we set up ldap caching proxy on this service node? Not supported on AIX. Valid values:yes or 1, no or 0. If no or 0, it does not change the current state of the service.' ,
ntpserver = > 'Not used. Use setupntp postscript to setup a ntp server on this service node? Valid values:yes or 1, no or 0. If no or 0, it does not change the current state of the service.' ,
2012-05-10 00:33:22 +00:00
ftpserver = > 'Do we set up a ftp server on this service node? Not supported on AIX Valid values:yes or 1, no or 0. If yes, configure and start vsftpd. (You must manually install vsftpd on the service nodes before this.) If no or 0, it does not change the current state of the service. xCAT is not using ftp for compute nodes provisioning or any other xCAT features, so this attribute can be set to 0 if the ftp service will not be used for other purposes' ,
2011-07-26 12:47:22 +00:00
nimserver = > 'Not used. Do we set up a NIM server on this service node? Valid values:yes or 1, no or 0. If no or 0, it does not change the current state of the service.' ,
ipforward = > 'Do we set up ip forwarding on this service node? Valid values:yes or 1, no or 0. If no or 0, it does not change the current state of the service.' ,
2012-11-14 17:19:31 +00:00
dhcpinterfaces = > 'The network interfaces DHCP server should listen on for the target node. This attribute can be used for management node and service nodes. If defined, it will override the values defined in site.dhcpinterfaces. This is a comma separated list of device names. !remote! indicates a non-local network for relay DHCP. For example: !remote!,eth0,eth1' ,
2008-05-07 16:15:55 +00:00
2008-05-02 15:24:33 +00:00
comments = > 'Any user-written notes.' ,
disable = > "Set to 'yes' or '1' to comment out this row." ,
} ,
} ,
2008-02-21 21:10:35 +00:00
site = > {
2007-10-26 22:44:33 +00:00
cols = > [ qw( key value comments disable ) ] ,
2008-02-21 21:10:35 +00:00
keys = > [ qw( key ) ] ,
2009-03-20 18:46:11 +00:00
table_desc = > "Global settings for the whole cluster. This table is different from the \nother tables in that each attribute is just named in the key column, rather \nthan having a separate column for each attribute. The following is a list of \nthe attributes currently used by xCAT.\n" ,
2008-03-20 18:38:50 +00:00
descriptions = > {
2009-12-19 14:20:26 +00:00
# Do not put description text past column 88, so it displays well in a 100 char wide window.
2010-12-03 22:51:52 +00:00
# ----------------------------------------------------------------------------------|----------
2009-12-19 14:20:26 +00:00
key = > "Attribute Name: Description\n\n" .
2012-11-27 17:11:30 +00:00
" auditskipcmds: List of commands and/or client types that will not be written to the auditlog table.\n" .
2012-02-20 21:52:34 +00:00
" 'ALL' means all cmds will be skipped. If attribute is null, all\n" .
2012-11-27 17:11:30 +00:00
" commands will be written.\n" .
" clienttype:web would skip all commands from the web client\n" .
" For example: tabdump,nodels,clienttype:web \n" .
" will not log tabdump,nodels and any web client commands.\n\n" .
2012-02-20 21:52:34 +00:00
" blademaxp: The maximum number of concurrent processes for blade hardware control.\n\n" .
" cleanupxcatpost: (yes/1 or no/0). Set to 'yes' or '1' to clean up the /xcatpost\n" .
" directory on the stateless and statelite nodes after the\n" .
" postscripts are run. Default is no.\n\n" .
2009-12-19 14:20:26 +00:00
" consoleondemand: When set to 'yes', conserver connects and creates the console\n" .
" output only when the user opens the console. Default is no on\n" .
2012-02-20 21:52:34 +00:00
" Linux, yes on AIX.\n\n" .
" databaseloc: Directory where we create the db instance directory.\n" .
" Default is /var/lib. Only DB2 is currently supported.\n" .
" Do not use the directory in the site.installloc or\n" .
" installdir attribute. This attribute must not be changed\n" .
" once db2sqlsetup script has been run and DB2 has been setup.\n\n" .
" db2installloc: The location which the service nodes should mount for\n" .
" the db2 code to install. Format is hostname:/path. If hostname is\n" .
" omitted, it defaults to the management node. Default is /mntdb2.\n\n" .
2009-12-19 14:20:26 +00:00
" defserialflow: The default serial flow - currently only used by the mknb command.\n\n" .
" defserialport: The default serial port - currently only used by mknb.\n\n" .
" defserialspeed: The default serial speed - currently only used by mknb.\n\n" .
" dhcpinterfaces: The network interfaces DHCP should listen on. If it is the same\n" .
2012-10-19 14:29:12 +00:00
" for all nodes, use a simple comma-separated list of NICs. To\n" .
2009-12-19 14:20:26 +00:00
" specify different NICs for different nodes:\n" .
2012-10-19 14:29:12 +00:00
" xcatmn|eth1,eth2;service|bond0.\n" .
" In this example xcatmn is the name of the xCAT MN, and DHCP there\n" .
" should listen on eth1 and eth2. On all of the nodes in group\n" .
" 'service' DHCP should listen on the bond0 nic.\n\n" .
2009-12-19 14:20:26 +00:00
" dhcpsetup: If set to 'n', it will skip the dhcp setup process in the nodeset cmd.\n\n" .
2012-05-16 12:15:47 +00:00
" dhcplease: The lease time for the dhcp client. The default value is 43200.\n\n" .
2010-12-03 22:51:52 +00:00
" disjointdhcps: If set to '1', the .leases file on a service node only contains\n" .
2012-02-22 13:02:49 +00:00
" the nodes it manages. The default value is '0'.\n" .
" '0' value means include all the nodes in the subnet.\n\n" .
2011-08-29 18:26:51 +00:00
" dnshandler: Name of plugin that handles DNS setup for makedns.\n" .
2009-12-19 14:20:26 +00:00
" domain: The DNS domain name used for the cluster.\n\n" .
2010-12-03 22:51:52 +00:00
" ea_primary_hmc: The hostname of the HMC that the Integrated Switch Network\n" .
" Management Event Analysis should send hardware serviceable\n" .
" events to for processing and potentially sending to IBM.\n\n" .
" ea_backup_hmc: The hostname of the HMC that the Integrated Switch Network\n" .
" Management Event Analysis should send hardware serviceable\n" .
" events to if the primary HMC is down.\n\n" .
" enableASMI: (yes/1 or no/0). If yes, ASMI method will be used after fsp-api. If no,\n" .
" when fsp-api is used, ASMI method will not be used. Default is no.\n\n" .
2011-04-11 07:08:42 +00:00
" excludenodes: A set of comma separated nodes and/or groups that would automatically\n" .
" be subtracted from any noderange, it can be used for excluding some\n" .
" failed nodes for any xCAT commands. See the 'noderange' manpage for\n" .
" details on supported formats.\n\n" .
2009-12-19 14:20:26 +00:00
" forwarders: The DNS servers at your site that can provide names outside of the\n" .
2013-03-01 13:07:21 +00:00
" cluster. The makedns command will configure the DNS on the management\n" .
2012-02-20 21:52:34 +00:00
" node to forward requests it does not know to these servers.\n" .
2011-05-11 09:41:32 +00:00
" Note that the DNS servers on the service nodes will ignore this value\n" .
" and always be configured to forward requests to the management node.\n\n" .
2009-12-19 14:20:26 +00:00
" fsptimeout: The timeout, in milliseconds, to use when communicating with FSPs.\n\n" .
" genmacprefix: When generating mac addresses automatically, use this manufacturing\n" .
" prefix (e.g. 00:11:aa)\n\n" .
" genpasswords: Automatically generate random passwords for BMCs when configuring\n" .
" them.\n\n" .
2012-07-16 20:38:11 +00:00
" httpport: The port number that the booting/installing nodes should contact the\n" .
" http server on the MN/SN on. It is your responsibility to configure\n" .
" the http server to listen on that port - xCAT will not do that.\n\n" .
2009-12-19 14:20:26 +00:00
" installdir: The local directory name used to hold the node deployment packages.\n\n" .
2010-04-12 16:31:05 +00:00
" installloc: The location from which the service nodes should mount the \n" .
" deployment packages in the format hostname:/path. If hostname is\n" .
2010-09-28 15:27:41 +00:00
" omitted, it defaults to the management node. The path must\n" .
2010-04-12 16:31:05 +00:00
" match the path in the installdir attribute.\n\n" .
2012-02-20 21:52:34 +00:00
" ipmidispatch: Whether or not to send ipmi hw control operations to the service\n" .
2012-11-09 03:32:39 +00:00
" node of the target compute nodes. Default is 'y'.\n\n" .
2012-11-09 06:08:41 +00:00
" hwctrldispatch: Whether or not to send hw control operations to the service\n" .
2012-11-12 07:39:14 +00:00
" node of the target nodes. Default is 'y'.(At present, this attribute\n" .
" is only used for IBM Flex System)\n\n" .
2012-02-20 21:52:34 +00:00
" ipmimaxp: The max # of processes for ipmi hw ctrl. The default is 64. Currently,\n" .
" this is only used for HP hw control.\n\n" .
" ipmiretries: The # of retries to use when communicating with BMCs. Default is 3.\n\n" .
2009-12-19 14:20:26 +00:00
" ipmisdrcache: If set to 'no', then the xCAT IPMI support will not cache locally\n" .
" the target node's SDR cache to improve performance.\n\n" .
2012-02-20 21:52:34 +00:00
" ipmitimeout: The timeout to use when communicating with BMCs. Default is 2.\n" .
" This attribute is currently not used.\n\n" .
2009-12-19 14:20:26 +00:00
" iscsidir: The path to put the iscsi disks in on the mgmt node.\n\n" .
" master: The hostname of the xCAT management node, as known by the nodes.\n\n" .
2011-11-18 06:20:32 +00:00
" maxssh: The max # of SSH connections at any one time to the hw ctrl point for PPC\n" .
" This parameter doesn't take effect on the rpower command.\n" .
2012-02-20 21:52:34 +00:00
" It takes effects on other PPC hardware control command\n" .
" getmacs/rnetboot/rbootseq and so on. Default is 8.\n\n" .
" mnroutenames: The name of the routes to be setup on the management node.\n" .
" It is a comma separated list of route names that are defined in the\n" .
" routes table.\n\n" .
2009-12-19 14:20:26 +00:00
" nameservers: A comma delimited list of DNS servers that each node in the cluster\n" .
2011-05-11 09:41:32 +00:00
" should use. This value will end up in the nameserver settings of the\n" .
" /etc/resolv.conf on each node. It is common (but not required) to set\n" .
2012-02-20 21:52:34 +00:00
" this attribute value to the IP addr of the xCAT management node, if\n" .
" you have set up the DNS on the management node by running makedns.\n" .
" In a hierarchical cluster, you can also set this attribute to\n" .
" \"<xcatmaster>\" to mean the DNS server for each node should be the\n" .
" node that is managing it (either its service node or the management\n" .
" node).\n\n" .
2011-10-02 10:41:32 +00:00
" nimprime : The name of NIM server , if not set default is the AIX MN .
If Linux MN , then must be set for support of mixed cluster ( TBD ) . \ n \ n " .
2009-12-19 14:20:26 +00:00
" nodestatus: If set to 'n', the nodelist.status column will not be updated during\n" .
2012-09-28 10:42:57 +00:00
" the node deployment, node discovery and power operations. The default is to update.\n\n" .
2009-12-19 14:20:26 +00:00
" ntpservers: A comma delimited list of NTP servers for the cluster - often the\n" .
" xCAT management node.\n\n" .
2012-10-24 15:37:47 +00:00
" runbootscripts: If set to 'yes' the scripts listed in the postbootscripts\n" .
" attribute in the osimage and postscripts tables will be run during\n" .
" each reboot of stateful (diskful) nodes. This attribute has no\n" .
2012-11-01 21:04:26 +00:00
" effect on stateless and statelite nodes. Please run the following\n" .
" command after you change the value of this attribute: \n" .
" 'updatenode <nodes> -P setuppostbootscripts'\n\n" .
2012-07-17 17:39:12 +00:00
" syspowerinterval: For system p CECs, this is the number of seconds the rpower\n" .
" command will wait between performing the action for each CEC.\n" .
" For system x IPMI servers, this is the number of seconds the\n" .
" rpower command will wait between powering on <syspowermaxnodes>\n" .
" nodes at a time. This value is used to control the power on speed\n" .
" in large clusters. Default is 0.\n\n" .
2012-02-20 21:52:34 +00:00
" syspowermaxnodes: The number of servers to power on at one time before waiting\n" .
" 'syspowerinterval' seconds to continue on to the next set of\n" .
2012-07-17 17:39:12 +00:00
" nodes. If the noderange given to rpower includes nodes served\n" .
" by different service nodes, it will try to spread each set of\n" .
" nodes across the service nodes evenly. Currently only used for\n" .
" IPMI servers and must be set if 'syspowerinterval' is set.\n\n" .
2012-02-20 21:52:34 +00:00
" powerinterval: The number of seconds the rpower command to LPARs will wait between\n" .
" performing the action for each LPAR. LPARs of different HCPs\n" .
" (HMCs or FSPs) are done in parallel. This is used to limit the\n" .
" cluster boot up speed in large clusters. Default is 0. This is\n" .
" currently only used for system p hardware.\n\n" .
2012-07-17 17:39:12 +00:00
" ppcmaxp: The max # of processes for PPC hw ctrl. If there are more than ppcmaxp\n" .
" hcps, this parameter will take effect. It will control the max number of\n" .
" processes for PPC hardware control commands. Default is 64.\n\n" .
2011-12-20 02:15:39 +00:00
" ppcretry: The max # of PPC hw connection attempts to HMC before failing.\n" .
" It only takes effect on the hardware control commands through HMC. \n" .
" Default is 3.\n\n" .
2012-02-20 21:52:34 +00:00
" ppctimeout: The timeout, in milliseconds, to use when communicating with PPC hw\n" .
" through HMC. It only takes effect on the hardware control commands\n" .
" through HMC. Default is 0.\n\n" .
2012-10-12 08:37:36 +00:00
" precreatemypostscripts: (yes/1 or no/0, only for Linux).Default is no. If yes, it will \n" .
2012-10-15 08:48:17 +00:00
" instruct xCAT at nodeset and updatenode time to query the db once for\n" .
2012-10-12 08:37:36 +00:00
" all of the nodes passed into the cmd and create the mypostscript file\n" .
2012-10-15 08:48:17 +00:00
" for each node, and put them in a directory of tftpdir(such as: /tftpboot)\n" .
2012-10-12 08:37:36 +00:00
" If no, it will not generate the mypostscript file in the tftpdir.\n\n" .
2009-12-19 14:20:26 +00:00
" pruneservices: Whether to enable service pruning when noderm is run (i.e.\n" .
" removing DHCP entries when noderm is executed)\n\n" .
2010-12-03 22:51:52 +00:00
" rsh: This is no longer used. path to remote shell command for xdsh.\n\n" .
" rcp: This is no longer used. path to remote copy command for xdcp.\n\n" .
2011-07-20 17:27:28 +00:00
" sharedtftp: Set to 0 or no, xCAT should not assume the directory\n" .
2010-04-21 13:18:29 +00:00
" in tftpdir is mounted on all on Service Nodes. Default is 1/yes.\n" .
" If value is set to a hostname, the directory in tftpdir\n" .
" will be mounted from that hostname on the SN\n\n" .
2012-02-29 14:29:17 +00:00
" sharedinstall: Indicates if a shared file system will be used for installation\n" .
2012-01-27 19:02:32 +00:00
" resources. Possible values are: 'no', 'sns', or 'all'. 'no' \n" .
" means a shared file system is not being used. 'sns' means a\n" .
" shared filesystem is being used across all service nodes.\n" .
" 'all' means that the management as well as the service nodes\n" .
" are all using a common shared filesystem. The default is 'no'.\n" .
2011-05-26 17:18:53 +00:00
" skiptables: Comma separated list of tables to be skipped by dumpxCATdb\n" .
2012-06-14 16:19:43 +00:00
" SNsyncfiledir: The directory on the Service Node, where xdcp will rsync the files\n" .
" from the MN that will eventually be rsync'd to the compute nodes.\n\n" .
2012-06-14 17:11:25 +00:00
" nodesyncfiledir: The directory on the node, where xdcp will rsync the files\n" .
2009-12-19 14:20:26 +00:00
" snmpc: The snmp community string that xcat should use when communicating with the\n" .
" switches.\n\n" .
2010-12-03 22:51:52 +00:00
" sshbetweennodes: Comma separated list of groups to enable passwordless root \n" .
" ssh during install, or xdsh -K. Default is ALLGROUPS.\n" .
" Set to NOGROUPS,if you do not wish to enabled any groups.\n" .
" Service Nodes are not affected by this attribute\n" .
" they are always setup with\n" .
" passwordless root access to nodes and other SN.\n\n" .
2009-12-19 14:20:26 +00:00
" svloglocal: if set to 1, syslog on the service node will not get forwarded to the\n" .
" mgmt node.\n\n" .
2010-12-03 22:51:52 +00:00
" timezone: (e.g. America/New_York)\n\n" .
2011-03-03 14:27:12 +00:00
" tftpdir: tftp directory path. Default is /tftpboot\n\n" .
2012-09-14 12:40:18 +00:00
" tftpflags: The flags that used to start tftpd. Default is \'-v -l -s /tftpboot \n" .
" -m /etc/tftpmapfile4xcat.conf\' if tftplfags is not set\n\n" .
2009-12-19 14:20:26 +00:00
" useNmapfromMN: When set to yes, nodestat command should obtain the node status\n" .
" using nmap (if available) from the management node instead of the\n" .
" service node. This will improve the performance in a flat network.\n\n" .
2010-12-03 22:51:52 +00:00
" useSSHonAIX: (yes/1 or no/0). If yes, ssh/scp will be setup and used. If no,\n" .
2012-08-31 14:28:04 +00:00
" usexhrm: Have xCAT run its xHRM script when booting up KVM guests to set the\n" .
" virtual network bridge up correctly. See\n" .
" https://sourceforge.net/apps/mediawiki/xcat/index.php?title=XCAT_Virtualization_with_KVM#Setting_up_a_network_bridge\n\n" .
2012-09-27 13:53:15 +00:00
" rsh/rcp will be setup and used on AIX. Default is yes.\n\n" .
" useNFSv4onAIX: (yes/1 or no/0). If yes, NFSv4 will be used with NIM. If no,\n" .
" NFSv3 will be used with NIM. Default is no.\n\n" .
2010-12-03 22:51:52 +00:00
" vcenterautojoin: When set to no, the VMWare plugin will not attempt to auto remove\n" .
" and add hypervisors while trying to perform operations. If users\n" .
" or tasks outside of xCAT perform the joining this assures xCAT\n" .
" will not interfere.\n\n" .
" vmwarereconfigonpower: When set to no, the VMWare plugin will make no effort to\n" .
" push vm.cpus/vm.memory updates from xCAT to VMWare.\n\n" .
2012-02-20 21:52:34 +00:00
" vsftp: Default is 'n'. If set to 'y', the xcatd on the mn will automatically\n" .
2012-05-10 00:33:22 +00:00
" bring up vsftpd. (You must manually install vsftpd before this.\n" .
" This setting does not apply to the service node. For sn\n" .
2012-02-20 21:52:34 +00:00
" you need to set servicenode.ftpserver=1 if you want xcatd to\n" .
2011-05-27 15:30:45 +00:00
" bring up vsftpd.\n\n" .
2009-12-19 14:20:26 +00:00
" xcatconfdir: Where xCAT config data is (default /etc/xcat).\n\n" .
2012-02-20 21:52:34 +00:00
" xcatmaxconnections: Number of concurrent xCAT protocol requests before requests\n" .
" begin queueing. This applies to both client command requests\n" .
" and node requests, e.g. to get postscripts. Default is 64.\n\n" .
2009-12-19 14:20:26 +00:00
" xcatdport: The port used by the xcatd daemon for client/server communication.\n\n" .
" xcatiport: The port used by xcatd to receive install status updates from nodes.\n\n" ,
2013-03-01 13:07:21 +00:00
" xcatsslversion: The ssl version by xcatd. Default is SSLv3.\n\n" ,
" xcatsslciphers: The ssl cipher by xcatd. Default is 3DES.\n\n" ,
2008-03-20 18:38:50 +00:00
value = > 'The value of the attribute specified in the "key" column.' ,
comments = > 'Any user-written notes.' ,
disable = > "Set to 'yes' or '1' to comment out this row." ,
} ,
2007-10-26 22:44:33 +00:00
} ,
2008-02-21 21:10:35 +00:00
switch = > {
2008-02-29 21:44:50 +00:00
cols = > [ qw( node switch port vlan interface comments disable ) ] ,
2008-02-21 21:10:35 +00:00
keys = > [ qw( node switch port ) ] ,
table_desc = > 'Contains what switch port numbers each node is connected to.' ,
2008-03-20 18:38:50 +00:00
descriptions = > {
node = > 'The node name or group name.' ,
switch = > 'The switch hostname.' ,
port = > 'The port number in the switch that this node is connected to. On a simple 1U switch, an administrator can generally enter the number as printed next to the ports, and xCAT will understand switch representation differences. On stacked switches or switches with line cards, administrators should usually use the CLI representation (i.e. 2/0/1 or 5/8). One notable exception is stacked SMC 8848M switches, in which you must add 56 for the proceeding switch, then the port number. For example, port 3 on the second switch in an SMC8848M stack would be 59' ,
2012-09-11 15:22:42 +00:00
vlan = > 'The ID for the tagged vlan that is created on this port using mkvlan and chvlan commands.' ,
interface = > 'The interface name from the node perspective. For example, eth0. For the primary nic, it can be empty, the word "primary" or "primary:ethx" where ethx is the interface name.' ,
2008-03-20 18:38:50 +00:00
comments = > 'Any user-written notes.' ,
disable = > "Set to 'yes' or '1' to comment out this row." ,
} ,
2007-10-26 22:44:33 +00:00
} ,
2008-02-21 21:10:35 +00:00
vpd = > {
2010-05-16 23:03:33 +00:00
cols = > [ qw( node serial mtm side asset uuid comments disable ) ] ,
2008-01-16 18:48:11 +00:00
keys = > [ qw( node ) ] ,
2008-02-21 21:10:35 +00:00
table_desc = > 'The Machine type, Model, and Serial numbers of each node.' ,
2008-03-20 18:38:50 +00:00
descriptions = > {
node = > 'The node name or group name.' ,
serial = > 'The serial number of the node.' ,
mtm = > 'The machine type and model number of the node. E.g. 7984-6BU' ,
2011-05-23 08:29:01 +00:00
side = > '<BPA>-<port> or <FSP>-<port>. The side information for the BPA/FSP. The side attribute refers to which BPA/FSP, A or B, which is determined by the slot value returned from lsslp command. It also lists the physical port within each BPA/FSP which is determined by the IP address order from the lsslp response. This information is used internally when communicating with the BPAs/FSPs' ,
2008-09-17 18:44:10 +00:00
asset = > 'A field for administators to use to correlate inventory numbers they may have to accomodate' ,
2010-05-16 23:03:33 +00:00
uuid = > 'The UUID applicable to the node' ,
2008-03-20 18:38:50 +00:00
comments = > 'Any user-written notes.' ,
disable = > "Set to 'yes' or '1' to comment out this row." ,
} ,
2008-01-16 18:48:11 +00:00
} ,
2008-06-12 12:33:07 +00:00
nimimage = > {
2012-03-29 14:14:49 +00:00
cols = > [ qw( imagename nimtype lpp_source spot root dump paging resolv_conf tmp home shared_home res_group nimmethod script bosinst_data installp_bundle mksysb fb_script shared_root otherpkgs image_data configdump comments disable ) ] ,
2008-06-08 12:38:27 +00:00
keys = > [ qw( imagename ) ] ,
table_desc = > 'All the info that specifies a particular AIX operating system image that can be used to deploy AIX nodes.' ,
descriptions = > {
imagename = > 'User provided name of this xCAT OS image definition.' ,
nimtype = > 'The NIM client type- standalone, diskless, or dataless.' ,
lpp_source = > 'The name of the NIM lpp_source resource.' ,
spot = > 'The name of the NIM SPOT resource.' ,
root = > 'The name of the NIM root resource.' ,
dump = > 'The name of the NIM dump resource.' ,
paging = > 'The name of the NIM paging resource.' ,
resolv_conf = > 'The name of the NIM resolv_conf resource.' ,
tmp = > 'The name of the NIM tmp resource.' ,
home = > 'The name of the NIM home resource.' ,
shared_home = > 'The name of the NIM shared_home resource.' ,
res_group = > 'The name of a NIM resource group.' ,
2008-06-17 17:28:31 +00:00
nimmethod = > 'The NIM install method to use, (ex. rte, mksysb).' ,
script = > 'The name of a NIM script resource.' ,
2008-10-01 12:14:35 +00:00
fb_script = > 'The name of a NIM fb_script resource.' ,
2008-06-17 17:28:31 +00:00
bosinst_data = > 'The name of a NIM bosinst_data resource.' ,
2009-10-09 18:33:22 +00:00
otherpkgs = > "One or more comma separated installp or rpm packages. The rpm packages must have a prefix of 'R:', (ex. R:foo.rpm)" ,
2009-08-14 15:12:28 +00:00
installp_bundle = > 'One or more comma separated NIM installp_bundle resources.' ,
2008-06-17 17:28:31 +00:00
mksysb = > 'The name of a NIM mksysb resource.' ,
2009-06-03 13:00:13 +00:00
shared_root = > 'A shared_root resource represents a directory that can be used as a / (root) directory by one or more diskless clients.' ,
2010-07-23 10:35:49 +00:00
image_data = > 'The name of a NIM image_data resource.' ,
2012-03-29 14:14:49 +00:00
configdump = > 'Specifies the type of system dump to be collected. The values are selective, full, and none. The default is selective.' ,
2008-06-24 14:14:30 +00:00
comments = > 'Any user-provided notes.' ,
2008-06-08 12:38:27 +00:00
disable = > "Set to 'yes' or '1' to comment out this row." ,
} ,
} ,
2008-09-30 20:00:46 +00:00
performance = > {
2010-08-13 17:59:40 +00:00
cols = > [ qw( timestamp node attrname attrvalue comments disable ) ] ,
2008-09-30 20:00:46 +00:00
keys = > [ qw( timestamp node attrname ) ] ,
table_desc = > 'Describes the system performance every interval unit of time.' ,
descriptions = > {
timestamp = > 'The time at which the metric was captured.' ,
node = > 'The node name.' ,
attrname = > 'The metric name.' ,
2010-08-15 11:10:53 +00:00
attrvalue = > 'The metric value.' ,
comments = > 'Any user-provided notes.' ,
disable = > "Set to 'yes' or '1' to comment out this row." ,
2008-09-30 20:00:46 +00:00
} ,
} ,
2009-01-27 17:55:06 +00:00
eventlog = > {
2009-01-29 02:41:02 +00:00
cols = > [ qw( recid eventtime eventtype monitor monnode node application component id severity message rawdata comments disable ) ] ,
2009-01-27 17:55:06 +00:00
keys = > [ qw( recid ) ] ,
types = > {
recid = > 'INTEGER AUTO_INCREMENT' ,
} ,
2011-05-01 11:42:23 +00:00
tablespace = > 'XCATTBS32K' ,
2009-01-27 17:55:06 +00:00
table_desc = > 'Stores the events occurred.' ,
descriptions = > {
recid = > 'The record id.' ,
eventtime = > 'The timestamp for the event.' ,
2009-01-29 02:41:02 +00:00
eventtype = > 'The type of the event.' , # for RMC it's either "Event" or "Rearm event".
monitor = > 'The name of the monitor that monitors this event.' , #for RMC, it's the condition name
2009-01-27 17:55:06 +00:00
monnode = > 'The node that monitors this event.' ,
2009-01-28 18:49:02 +00:00
node = > 'The node where the event occurred.' ,
2009-01-27 17:55:06 +00:00
application = > 'The application that reports the event.' , #RMC, Ganglia
component = > 'The component where the event occurred.' , #in RMC, it's the resource class name
2009-01-28 18:49:02 +00:00
id = > 'The location or the resource name where the event occurred.' , #In RMC it's the resource name and attribute name
2009-01-27 17:55:06 +00:00
severity = > 'The severity of the event. Valid values are: informational, warning, critical.' ,
message = > 'The full description of the event.' ,
rawdata = > ' The data that associated with the event. ' , # in RMC, it's the attribute value, it takes the format of attname=attvalue[,atrrname=attvalue....]
comments = > 'Any user-provided notes.' ,
2010-04-08 15:22:30 +00:00
disable = > "Do not use. tabprune will not work if set to yes or 1" ,
2009-01-27 17:55:06 +00:00
} ,
} ,
2010-03-01 17:37:50 +00:00
auditlog = > {
cols = > [ qw( recid audittime userid clientname clienttype command noderange args status comments disable ) ] ,
keys = > [ qw( recid ) ] ,
types = > {
recid = > 'INTEGER AUTO_INCREMENT' ,
} ,
2011-05-27 11:28:22 +00:00
compress = > 'YES' ,
2011-05-01 11:42:23 +00:00
tablespace = > 'XCATTBS32K' ,
2010-03-01 17:37:50 +00:00
table_desc = > ' Audit Data log.' ,
descriptions = > {
recid = > 'The record id.' ,
audittime = > 'The timestamp for the audit entry.' ,
userid = > 'The user running the command.' ,
clientname = > 'The client machine, where the command originated.' ,
2010-03-09 15:29:34 +00:00
clienttype = > 'Type of command: cli,java,webui,other.' ,
2010-03-01 17:37:50 +00:00
command = > 'Command executed.' ,
noderange = > 'The noderange on which the command was run.' ,
args = > 'The command argument list.' ,
status = > 'Allowed or Denied.' ,
comments = > 'Any user-provided notes.' ,
2010-04-08 15:22:30 +00:00
disable = > "Do not use. tabprune will not work if set to yes or 1" ,
2010-03-01 17:37:50 +00:00
} ,
} ,
2009-08-03 02:00:13 +00:00
prescripts = > {
2011-01-12 13:23:55 +00:00
cols = > [ qw( node begin end comments disable ) ] ,
2009-08-03 02:00:13 +00:00
keys = > [ qw( node ) ] ,
2011-05-03 18:50:45 +00:00
tablespace = > 'XCATTBS16K' ,
2010-07-07 18:34:36 +00:00
table_desc = > 'The scripts that will be run at the beginning and the end of the nodeset(Linux), nimnodeset(AIX) or mkdsklsnode(AIX) command.' ,
2009-08-03 02:00:13 +00:00
descriptions = > {
node = > 'The node name or group name.' ,
2009-12-19 14:20:26 +00:00
# Do not put description text past column 88, so it displays well in a 100 char wide window.
# ----------------------------------------------------------------------------------|
2009-08-03 02:00:13 +00:00
begin = >
2010-07-30 13:18:11 +00:00
"The scripts to be run at the beginning of the nodeset(Linux),\n" .
" nimnodeset(AIX) or mkdsklsnode(AIX) command.\n" .
2009-12-19 14:20:26 +00:00
" The format is:\n" .
" [action1:]s1,s2...[|action2:s3,s4,s5...]\n" .
" where:\n" .
2010-07-30 13:30:48 +00:00
" - action1 and action2 for Linux are the nodeset actions specified in the command. \n" .
" For AIX, action1 and action1 can be 'diskless' for mkdsklsnode command'\n" .
" and 'standalone for nimnodeset command. \n" .
2010-07-07 18:34:36 +00:00
" - s1 and s2 are the scripts to run for action1 in order.\n" .
" - s3, s4, and s5 are the scripts to run for actions2.\n" .
2009-12-19 14:20:26 +00:00
" If actions are omitted, the scripts apply to all actions.\n" .
" Examples:\n" .
2010-07-30 13:30:48 +00:00
" myscript1,myscript2 (all actions)\n" .
2010-07-07 18:34:36 +00:00
" diskless:myscript1,myscript2 (AIX)\n" .
" install:myscript1,myscript2|netboot:myscript3 (Linux)\n\n" .
2010-04-06 19:47:13 +00:00
" All the scripts should be copied to /install/prescripts directory.\n" .
" The following two environment variables will be passed to each script: \n" .
" NODES a coma separated list of node names that need to run the script for\n" .
" ACTION current nodeset action.\n\n" .
" If '#xCAT setting:MAX_INSTANCE=number' is specified in the script, the script\n" .
" will get invoked for each node in parallel, but no more than number of instances\n" .
2010-07-30 13:18:11 +00:00
" will be invoked at at a time. If it is not specified, the script will be invoked\n" .
2010-04-06 19:47:13 +00:00
" once for all the nodes.\n" ,
2010-07-30 13:18:11 +00:00
end = > "The scripts to be run at the end of the nodeset(Linux),\n" .
" nimnodeset(AIX),or mkdsklsnode(AIX) command. \n" .
" The format is the same as the 'begin' column." ,
2009-08-03 02:00:13 +00:00
comments = > 'Any user-written notes.' ,
disable = > "Set to 'yes' or '1' to comment out this row." ,
} ,
} ,
2009-01-27 17:55:06 +00:00
2010-05-27 15:13:26 +00:00
routes = > {
cols = > [ qw( routename net mask gateway ifname comments disable ) ] ,
keys = > [ qw( routename ) ] ,
table_desc = > 'Describes the additional routes needed to be setup in the os routing table. These routes usually are used to connect the management node to the compute node using the servie node as gateway.' ,
descriptions = > {
routename = > 'Name used to identify this route.' ,
net = > 'The network address.' ,
mask = > 'The network mask.' ,
2013-03-01 08:55:03 +00:00
ifname = > 'The interface name that facing the gateway. It is optional for IPv4 routes, but it is required for IPv6 routes.' ,
2010-05-27 15:13:26 +00:00
gateway = > 'The gateway that routes the ip traffic from the mn to the nodes. It is usually a service node.' ,
comments = > 'Any user-written notes.' ,
disable = > "Set to 'yes' or '1' to comment out this row." ,
} ,
} ,
2009-09-25 14:45:45 +00:00
zvm = > {
2011-05-17 19:46:35 +00:00
cols = > [ qw( node hcp userid nodetype parent comments disable ) ] ,
2009-09-25 14:45:45 +00:00
keys = > [ qw( node ) ] ,
table_desc = > 'List of z/VM virtual servers.' ,
descriptions = > {
node = > 'The node name.' ,
hcp = > 'The hardware control point for this node.' ,
userid = > 'The z/VM userID of this node.' ,
2011-05-17 19:46:35 +00:00
nodetype = > 'The node type. Valid values: cec (Central Electronic Complex), lpar (logical partition), zvm (z/VM host operating system), and vm (virtual machine).' ,
parent = > 'The parent node. For LPAR, this specifies the CEC. For z/VM, this specifies the LPAR. For VM, this specifies the z/VM host operating system.' ,
2009-09-25 14:45:45 +00:00
comments = > 'Any user provided notes.' ,
disable = > "Set to 'yes' or '1' to comment out this row." ,
} ,
} ,
2010-06-01 14:52:34 +00:00
firmware = > {
cols = > [ qw( node cfgfile comments disable ) ] ,
keys = > [ qw( node ) ] ,
required = > [ qw( node ) ] ,
table_desc = > 'Maps node to firmware values to be used for setup at node discovery or later' ,
descriptions = > {
node = > 'The node id.' ,
cfgfile = > 'The file to use.' ,
comments = > 'Any user-written notes.' ,
disable = > "Set to 'yes' or '1' to comment out this row." ,
} ,
2012-09-27 13:53:15 +00:00
} ,
2012-08-30 08:55:17 +00:00
2012-09-27 13:53:15 +00:00
nics = > {
2013-01-11 16:19:23 +00:00
cols = > [ qw( node nicips nichostnamesuffixes nictypes niccustomscripts nicnetworks nicaliases comments disable ) ] ,
2012-09-27 13:53:15 +00:00
keys = > [ qw( node ) ] ,
tablespace = > 'XCATTBS16K' ,
table_desc = > 'Stores NIC details.' ,
descriptions = > {
node = > 'The node or group name.' ,
2012-10-23 07:23:01 +00:00
nicips = > ' Comma - separated list of IP addresses per NIC . To specify one ip address per NIC:
2013-01-11 16:19:23 +00:00
<nic1> ! <ip1> , <nic2> ! <ip2> , ... , for example , eth0 ! 10.0 .0 .100 , ib0 ! 11.0 .0 .100
2012-10-23 07:23:01 +00:00
To specify multiple ip addresses per NIC:
2013-03-14 07:44:32 +00:00
<nic1> ! <ip1> | <ip2> , <nic2> ! <ip1> | <ip2> , ... , for example , eth0 ! 10.0 .0 .100 | fd55:: 214 : 5 eff:fe15:849b , ib0 ! 11.0 .0 .100 | 2001 :: 214 : 5 eff:fe15:849a . The xCAT object definition commands support to use nicips . <nicname> as the sub attributes .
2012-10-23 07:23:01 +00:00
Note: The primary IP address must also be stored in the hosts . ip attribute . The nichostnamesuffixes should specify one hostname suffix for each ip address . ' ,
nichostnamesuffixes = > ' Comma - separated list of hostname suffixes per NIC .
If only one ip address is associated with each NIC:
2013-01-11 16:19:23 +00:00
<nic1> ! <ext1> , <nic2> ! <ext2> , ... , for example , eth0 ! - eth0 , ib0 ! - ib0
2012-10-23 07:23:01 +00:00
If multiple ip addresses are associcated with each NIC:
2013-03-14 07:44:32 +00:00
<nic1> ! <ext1> | <ext2> , <nic2> ! <ext1> | <ext2> , ... , for example , eth0 ! - eth0 | - eth0 - ipv6 , ib0 ! - ib0 | - ib0 - ipv6 . The xCAT object definition commands support to use nichostnamesuffixes . <nicname> as the sub attributes . ' ,
nictypes = > 'Comma-separated list of NIC types per NIC. <nic1>!<type1>,<nic2>!<type2>, e.g. eth0!Ethernet,ib0!Infiniband. The xCAT object definition commands support to use nictypes.<nicname> as the sub attributes.' ,
niccustomscripts = > ' Comma - separated list of custom scripts per NIC . <nic1> ! <script1> , <nic2> ! <script2> , e . g . eth0 ! configeth eth0 , ib0 ! configib ib0 . The xCAT object definition commands support to use niccustomscripts . <nicname> as the sub attribute
2012-09-27 13:53:15 +00:00
. ' ,
2012-10-23 07:23:01 +00:00
nicnetworks = > ' Comma - separated list of networks connected to each NIC .
If only one ip address is associated with each NIC:
2013-01-11 16:19:23 +00:00
<nic1> ! <network1> , <nic2> ! <network2> , for example , eth0 ! 10_0_0_0 - 255_255_0_0 , ib0 ! 11_0_0_0 - 255_255_0_0
2012-10-23 07:23:01 +00:00
If multiple ip addresses are associated with each NIC:
2013-03-14 07:44:32 +00:00
<nic1> ! <network1> | <network2> , <nic2> ! <network1> | <network2> , for example , eth0 ! 10_0_0_0 - 255_255_0_0 | fd55:faaf:e1ab:336:: /64,ib0!11_0_0_0-255_255_0_0|2001:db8:1:0::/ 64 . The xCAT object definition commands support to use nicnetworks . <nicname> as the sub attributes . ' ,
2013-03-21 19:26:26 +00:00
nicaliases = > ' Comma - separated list of aliases for each NIC .
Format: eth0 ! <aliases> , eth1 ! <aliases1> | <aliases2>
For example: eth0 ! moe larry curly , eth1 ! tom | jerry ' ,
2012-09-27 13:53:15 +00:00
comments = > 'Any user-written notes.' ,
disable = > "Set to 'yes' or '1' to comment out this row." ,
} ,
} ,
rack = > {
cols = > [ qw( rackname displayname num height room comments disable ) ] ,
keys = > [ qw( rackname ) ] ,
table_desc = > 'Rack information.' ,
descriptions = > {
rackname = > 'The rack name.' ,
displayname = > 'Alternative name for rack. Only used by PCM.' ,
num = > 'The rack number.' ,
height = > 'Number of units which can be stored in the rack.' ,
room = > 'The room in which the rack is located.' ,
comments = > 'Any user-written notes.' ,
disable = > "Set to 'yes' or '1' to comment out this row." ,
} ,
} ,
2012-08-30 08:55:17 +00:00
osdistro = > {
2012-09-27 13:53:15 +00:00
cols = > [ qw( osdistroname basename majorversion minorversion arch type dirpaths comments disable ) ] ,
2012-08-30 08:55:17 +00:00
keys = > [ qw( osdistroname ) ] ,
table_desc = > 'Information about all the OS distros in the xCAT cluster' ,
descriptions = > {
osdistroname = > 'Unique name (e.g. rhels6.2-x86_64)' ,
basename = > 'The OS base name (e.g. rhels)' ,
majorversion = > 'The OS distro major version.(e.g. 6)' ,
minorversion = > 'The OS distro minor version. (e.g. 2)' ,
arch = > 'The OS distro arch (e.g. x86_64)' ,
type = > 'Linux or AIX' ,
dirpaths = > 'Directory paths where OS distro is store. There could be multiple paths if OS distro has more than one ISO image. (e.g. /install/rhels6.2/x86_64,...)' ,
comments = > 'Any user-written notes.' ,
disable = > "Set to 'yes' or '1' to comment out this row." ,
} ,
} ,
2012-09-27 13:53:15 +00:00
osdistroupdate = > {
cols = > [ qw( osupdatename osdistroname dirpath downloadtime comments disable ) ] ,
keys = > [ qw( osupdatename ) ] ,
table_desc = > 'Information about the OS distro updates in the xCAT cluster' ,
descriptions = > {
osupdatename = > 'Name of OS update. (e.g. rhn-update1)' ,
osdistroname = > 'The OS distro name to update. (e.g. rhels)' ,
dirpath = > 'Path to where OS distro update is stored. (e.g. /install/osdistroupdates/rhels6.2-x86_64-20120716-update) ' ,
downloadtime = > 'The timestamp when OS distro update was downloaded..' ,
comments = > 'Any user-written notes.' ,
disable = > "Set to 'yes' or '1' to comment out this row." ,
} ,
} ,
kit = > {
2012-11-12 20:04:28 +00:00
cols = > [ qw( kitname basename description version ostype isinternal kitdeployparams kitdir comments disable ) ] ,
2012-09-27 13:53:15 +00:00
keys = > [ qw( kitname ) ] ,
table_desc = > 'This table stores all kits added to the xCAT cluster.' ,
descriptions = > {
kitname = > 'The unique generated kit name, when kit is added to the cluster.' ,
basename = > 'The kit base name' ,
2012-11-12 20:04:28 +00:00
description = > 'The Kit description.' ,
2012-09-27 13:53:15 +00:00
version = > 'The kit version' ,
ostype = > 'The kit OS type. Linux or AIX.' ,
2012-11-12 20:04:28 +00:00
isinternal = > 'A flag to indicated if the Kit is internally used. When set to 1, the Kit is internal. If 0 or undefined, the kit is not internal.' ,
2012-09-27 13:53:15 +00:00
kitdeployparams = > 'The file containing the default deployment parameters for this Kit. These parameters are added to the OS Image definition.s list of deployment parameters when one or more Kit Components from this Kit are added to the OS Image.' ,
kitdir = > 'The path to Kit Installation directory on the Mgt Node.' ,
comments = > 'Any user-written notes.' ,
disable = > "Set to 'yes' or '1' to comment out this row." ,
} ,
} ,
kitrepo = > {
cols = > [ qw( kitreponame kitname osbasename osmajorversion osminorversion osarch compat_osbasenames kitrepodir comments disable ) ] ,
keys = > [ qw( kitreponame ) ] ,
table_desc = > 'This table stores all kits added to the xCAT cluster.' ,
descriptions = > {
kitreponame = > 'The unique generated kit repo package name, when kit is added to the cluster.' ,
kitname = > 'The Kit name which this Kit Package Repository belongs to.' ,
2012-11-12 17:44:24 +00:00
osbasename = > 'The OS distro name which this repository is based on.' ,
2012-09-27 13:53:15 +00:00
osmajorversion = > 'The OS distro major version which this repository is based on.' ,
osminorversion = > 'The OS distro minor version which this repository is based on. If this attribute is not set, it means that this repo applies to all minor versions.' ,
osarch = > 'The OS distro arch which this repository is based on.' ,
compat_osbasenames = > 'List of compatible OS base names.' ,
kitrepodir = > 'The path to Kit Repository directory on the Mgt Node.' ,
comments = > 'Any user-written notes.' ,
disable = > "Set to 'yes' or '1' to comment out this row." ,
} ,
} ,
kitcomponent = > {
2013-01-16 16:13:45 +00:00
cols = > [ qw( kitcompname description kitname kitreponame basename version release serverroles kitpkgdeps driverpacks kitcompdeps postbootscripts genimage_postinstall exlist comments disable ) ] ,
2012-09-27 13:53:15 +00:00
keys = > [ qw( kitcompname ) ] ,
tablespace = > 'XCATTBS16K' ,
table_desc = > 'This table stores all kit components added to the xCAT cluster.' ,
descriptions = > {
kitcompname = > 'The unique Kit Component name. It is auto-generated when the parent Kit is added to the cluster.' ,
2012-11-12 20:04:28 +00:00
description = > 'The Kit component description.' ,
2012-09-27 13:53:15 +00:00
kitname = > 'The Kit name which this Kit Component belongs to.' ,
kitreponame = > 'The Kit Package Repository name which this Kit Component belongs to.' ,
basename = > 'Kit Component basename.' ,
version = > 'Kit Component version.' ,
release = > 'Kit Component release.' ,
serverroles = > 'The types of servers that this Kit Component can install on. Valid types are: mgtnode, servicenode, compute' ,
kitpkgdeps = > 'Comma-separated list of packages that this kit component depends on.' ,
driverpacks = > 'Comma-separated List of driver package names. These must be full names like: pkg1-1.0-1.x86_64.rpm.' ,
kitcompdeps = > 'Comma-separated list of kit components that this kit component depends on.' ,
postbootscripts = > 'Comma-separated list of postbootscripts that will run during the node boot.' ,
2013-01-16 16:13:45 +00:00
genimage_postinstall = > 'Comma-separated list of postinstall scripts that will run during the genimage.' ,
2012-09-27 13:53:15 +00:00
exlist = > 'Exclude list file containing the files/directories to exclude when building a diskless image.' ,
comments = > 'Any user-written notes.' ,
disable = > "Set to 'yes' or '1' to comment out this row." ,
} ,
} ,
2010-06-01 14:52:34 +00:00
) ; # end of tabspec definition
2007-10-26 22:44:33 +00:00
2009-01-09 22:25:35 +00:00
2009-01-27 17:55:06 +00:00
2012-09-27 13:53:15 +00:00
2009-01-09 22:25:35 +00:00
###################################################
# adding user defined external tables
##################################################
foreach my $ tabname ( keys ( % xCAT:: ExtTab:: ext_tabspec ) ) {
2009-01-13 21:29:34 +00:00
if ( exists ( $ tabspec { $ tabname } ) ) {
xCAT::MsgUtils - > message ( 'ES' , "\n Warning: Conflict when adding user defined tablespec. Duplicate table name: $tabname. \n" ) ;
} else {
$ tabspec { $ tabname } = $ xCAT:: ExtTab:: ext_tabspec { $ tabname } ;
}
2009-01-09 22:25:35 +00:00
}
2007-10-26 22:44:33 +00:00
####################################################
#
# Data abstraction definitions
# For each table entry added to the database schema,
# a corresponding attribute should be added to one of
# the data objects below, or new data objects should
# be created as needed.
#
# Definition format:
# List of data object hashes:
2008-02-21 21:10:35 +00:00
# <dataobject_name> =>
# {attrs =>
2007-10-26 22:44:33 +00:00
# [ {attr_name => '<attribute_name>',
2008-02-21 21:10:35 +00:00
# only_if => '<attr>=<value>',
2007-10-26 22:44:33 +00:00
# # optional, used to define conditional attributes.
# # <attr> is a previously resolved attribute from
# # this data object.
2008-02-21 21:10:35 +00:00
# tabentry => '<table.attr>',
2007-10-26 22:44:33 +00:00
# # where the data is stored in the database
2009-09-09 09:07:28 +00:00
# access_tabentry => '<table.attr>=<value>::<table.attr>=<value>',
# # how to look up tabentry. Now support multiple lookup entries, useful for 'multiple keys" in the table
# For <value>,
2007-10-26 22:44:33 +00:00
# # if "attr:<attrname>", use a previously resolved
# # attribute value from the data object
2009-09-09 09:07:28 +00:00
# # for now, only supports the objectname in attr:<attrname>
2007-10-26 22:44:33 +00:00
# # if "str:<value>" use the value directly
# description => '<description of this attribute>',
# },
# {attr_name => <attribute_name>,
# ...
# } ],
# attrhash => {}, # internally generated hash of attrs array
2008-02-21 21:10:35 +00:00
# # to allow code direct access to an attr def
2007-10-26 22:44:33 +00:00
# objkey => 'attribute_name' # key attribute for this data object
2008-02-21 21:10:35 +00:00
# }
2007-10-26 22:44:33 +00:00
#
#
####################################################
% defspec = (
node = > { attrs = > [] , attrhash = > { } , objkey = > 'node' } ,
osimage = > { attrs = > [] , attrhash = > { } , objkey = > 'imagename' } ,
network = > { attrs = > [] , attrhash = > { } , objkey = > 'netname' } ,
2010-05-27 15:13:26 +00:00
route = > { attrs = > [] , attrhash = > { } , objkey = > 'routename' } ,
2007-11-26 20:30:00 +00:00
group = > { attrs = > [] , attrhash = > { } , objkey = > 'groupname' } ,
site = > { attrs = > [] , attrhash = > { } , objkey = > 'master' } ,
policy = > { attrs = > [] , attrhash = > { } , objkey = > 'priority' } ,
2008-01-14 17:10:14 +00:00
monitoring = > { attrs = > [] , attrhash = > { } , objkey = > 'name' } ,
2009-01-09 22:25:35 +00:00
notification = > { attrs = > [] , attrhash = > { } , objkey = > 'filename' } ,
2009-02-12 22:44:31 +00:00
eventlog = > { attrs = > [] , attrhash = > { } , objkey = > 'recid' } ,
2010-03-01 17:37:50 +00:00
auditlog = > { attrs = > [] , attrhash = > { } , objkey = > 'recid' } ,
2009-02-12 22:44:31 +00:00
boottarget = > { attrs = > [] , attrhash = > { } , objkey = > 'bprofile' } ,
2012-09-27 13:53:15 +00:00
kit = > { attrs = > [] , attrhash = > { } , objkey = > 'kitname' } ,
kitrepo = > { attrs = > [] , attrhash = > { } , objkey = > 'kitreponame' } ,
kitcomponent = > { attrs = > [] , attrhash = > { } , objkey = > 'kitcompname' } ,
rack = > { attrs = > [] , attrhash = > { } , objkey = > 'rackname' } ,
2012-08-30 08:55:17 +00:00
osdistro = > { attrs = > [] , attrhash = > { } , objkey = > 'osdistroname' } ,
2007-10-26 22:44:33 +00:00
) ;
2008-02-12 13:54:11 +00:00
###############
2008-02-21 21:10:35 +00:00
# @nodeattrs ia a list of node attrs that can be used for
2008-03-20 18:38:50 +00:00
# BOTH node and group definitions
2008-02-12 13:54:11 +00:00
##############
my @ nodeattrs = (
2008-03-19 14:35:13 +00:00
{ attr_name = > 'nodetype' ,
tabentry = > 'nodetype.nodetype' ,
access_tabentry = > 'nodetype.node=attr:node' ,
} ,
2007-12-13 18:53:02 +00:00
####################
2008-02-21 21:10:35 +00:00
# postscripts table#
2008-01-16 18:48:11 +00:00
####################
{ attr_name = > 'postscripts' ,
tabentry = > 'postscripts.postscripts' ,
access_tabentry = > 'postscripts.node=attr:node' ,
2009-12-15 13:50:21 +00:00
} ,
{ attr_name = > 'postbootscripts' ,
tabentry = > 'postscripts.postbootscripts' ,
access_tabentry = > 'postscripts.node=attr:node' ,
2008-03-20 18:38:50 +00:00
} ,
2008-01-16 18:48:11 +00:00
####################
2008-02-21 21:10:35 +00:00
# noderes table #
2007-12-13 18:53:02 +00:00
####################
2007-11-26 20:30:00 +00:00
{ attr_name = > 'xcatmaster' ,
2007-10-26 22:44:33 +00:00
tabentry = > 'noderes.xcatmaster' ,
2007-11-26 20:30:00 +00:00
access_tabentry = > 'noderes.node=attr:node' ,
2008-03-20 18:38:50 +00:00
} ,
2007-12-13 18:53:02 +00:00
###
# TODO: Need to check/update code to make sure it really uses servicenode as
# default if other server value not set
###
2007-11-26 20:30:00 +00:00
{ attr_name = > 'servicenode' ,
2007-10-26 22:44:33 +00:00
tabentry = > 'noderes.servicenode' ,
2007-11-26 20:30:00 +00:00
access_tabentry = > 'noderes.node=attr:node' ,
2008-03-20 18:38:50 +00:00
} ,
2007-12-13 18:53:02 +00:00
{ attr_name = > 'tftpserver' ,
tabentry = > 'noderes.tftpserver' ,
access_tabentry = > 'noderes.node=attr:node' ,
2012-02-07 15:17:39 +00:00
} ,
{ attr_name = > 'tftpdir' ,
tabentry = > 'noderes.tftpdir' ,
access_tabentry = > 'noderes.node=attr:node' ,
2008-03-20 18:38:50 +00:00
} ,
2007-12-13 18:53:02 +00:00
{ attr_name = > 'nfsserver' ,
tabentry = > 'noderes.nfsserver' ,
access_tabentry = > 'noderes.node=attr:node' ,
2009-03-19 17:31:48 +00:00
} ,
{ attr_name = > 'nimserver' ,
tabentry = > 'noderes.nimserver' ,
access_tabentry = > 'noderes.node=attr:node' ,
2008-03-20 18:38:50 +00:00
} ,
2010-05-18 20:38:50 +00:00
2007-12-13 18:53:02 +00:00
###
# TODO: Is noderes.nfsdir used anywhere? Could not find any code references
# to this attribute.
###
{ attr_name = > 'nfsdir' ,
tabentry = > 'noderes.nfsdir' ,
access_tabentry = > 'noderes.node=attr:node' ,
2008-03-20 18:38:50 +00:00
} ,
2007-12-13 18:53:02 +00:00
{ attr_name = > 'monserver' ,
tabentry = > 'noderes.monserver' ,
access_tabentry = > 'noderes.node=attr:node' ,
2008-03-20 18:38:50 +00:00
} ,
{ attr_name = > 'kernel' ,
2008-04-25 15:36:56 +00:00
tabentry = > 'bootparams.kernel' ,
access_tabentry = > 'bootparams.node=attr:node' ,
2008-02-21 21:10:35 +00:00
} ,
2008-03-20 18:38:50 +00:00
{ attr_name = > 'initrd' ,
2008-04-25 15:36:56 +00:00
tabentry = > 'bootparams.initrd' ,
access_tabentry = > 'bootparams.node=attr:node' ,
2008-02-21 21:10:35 +00:00
} ,
2008-03-20 18:38:50 +00:00
{ attr_name = > 'kcmdline' ,
2008-04-25 15:36:56 +00:00
tabentry = > 'bootparams.kcmdline' ,
access_tabentry = > 'bootparams.node=attr:node' ,
2008-02-21 21:10:35 +00:00
} ,
2008-10-08 15:16:49 +00:00
{ attr_name = > 'addkcmdline' ,
tabentry = > 'bootparams.addkcmdline' ,
access_tabentry = > 'bootparams.node=attr:node' ,
} ,
2007-12-13 18:53:02 +00:00
# Note that the serialport attr is actually defined down below
# with the other serial* attrs from the nodehm table
#{attr_name => 'serialport',
# tabentry => 'noderes.serialport',
# access_tabentry => 'noderes.node=attr:node',
2008-03-20 18:38:50 +00:00
# },
2007-12-13 18:53:02 +00:00
{ attr_name = > 'primarynic' ,
tabentry = > 'noderes.primarynic' ,
access_tabentry = > 'noderes.node=attr:node' ,
2008-03-20 18:38:50 +00:00
} ,
2007-12-13 18:53:02 +00:00
{ attr_name = > 'installnic' ,
tabentry = > 'noderes.installnic' ,
access_tabentry = > 'noderes.node=attr:node' ,
2008-03-20 18:38:50 +00:00
} ,
2007-12-13 18:53:02 +00:00
{ attr_name = > 'netboot' ,
tabentry = > 'noderes.netboot' ,
access_tabentry = > 'noderes.node=attr:node' ,
2013-03-19 14:31:44 +00:00
} ,
{ attr_name = > 'nameservers' ,
tabentry = > 'noderes.nameservers' ,
access_tabentry = > 'noderes.node=attr:node' ,
2011-03-30 14:49:03 +00:00
} ,
{ attr_name = > 'routenames' ,
tabentry = > 'noderes.routenames' ,
access_tabentry = > 'noderes.node=attr:node' ,
2008-03-20 18:38:50 +00:00
} ,
2007-12-13 18:53:02 +00:00
######################
2008-06-16 13:17:24 +00:00
# servicenode table #
######################
{ attr_name = > 'setupnameserver' ,
tabentry = > 'servicenode.nameserver' ,
access_tabentry = > 'servicenode.node=attr:node' ,
} ,
{ attr_name = > 'setupdhcp' ,
tabentry = > 'servicenode.dhcpserver' ,
access_tabentry = > 'servicenode.node=attr:node' ,
} ,
{ attr_name = > 'setuptftp' ,
tabentry = > 'servicenode.tftpserver' ,
access_tabentry = > 'servicenode.node=attr:node' ,
} ,
{ attr_name = > 'setupnfs' ,
tabentry = > 'servicenode.nfsserver' ,
access_tabentry = > 'servicenode.node=attr:node' ,
} ,
{ attr_name = > 'setupconserver' ,
tabentry = > 'servicenode.conserver' ,
access_tabentry = > 'servicenode.node=attr:node' ,
2010-05-18 20:38:50 +00:00
} ,
{ attr_name = > 'setupipforward' ,
tabentry = > 'servicenode.ipforward' ,
access_tabentry = > 'servicenode.node=attr:node' ,
2008-06-16 13:17:24 +00:00
} ,
# - moserver not used yet
# {attr_name => 'setupmonserver',
# tabentry => 'servicenode.monserver',
# access_tabentry => 'servicenode.node=attr:node',
# },
{ attr_name = > 'setupldap' ,
tabentry = > 'servicenode.ldapserver' ,
access_tabentry = > 'servicenode.node=attr:node' ,
} ,
{ attr_name = > 'setupntp' ,
tabentry = > 'servicenode.ntpserver' ,
access_tabentry = > 'servicenode.node=attr:node' ,
} ,
{ attr_name = > 'setupftp' ,
tabentry = > 'servicenode.ftpserver' ,
access_tabentry = > 'servicenode.node=attr:node' ,
2009-03-19 17:31:48 +00:00
} ,
{ attr_name = > 'setupnim' ,
tabentry = > 'servicenode.nimserver' ,
access_tabentry = > 'servicenode.node=attr:node' ,
2012-09-27 13:53:15 +00:00
} ,
{ attr_name = > 'dhcpinterfaces' ,
tabentry = > 'servicenode.dhcpinterfaces' ,
access_tabentry = > 'servicenode.node=attr:node' ,
2008-06-16 13:17:24 +00:00
} ,
######################
2008-02-21 21:10:35 +00:00
# nodetype table #
2007-12-13 18:53:02 +00:00
######################
{ attr_name = > 'arch' ,
tabentry = > 'nodetype.arch' ,
access_tabentry = > 'nodetype.node=attr:node' ,
2009-09-14 11:02:38 +00:00
} ,
{ attr_name = > 'supportedarchs' ,
tabentry = > 'nodetype.supportedarchs' ,
access_tabentry = > 'nodetype.node=attr:node' ,
2008-03-20 18:38:50 +00:00
} ,
2007-12-13 18:53:02 +00:00
{ attr_name = > 'os' ,
tabentry = > 'nodetype.os' ,
access_tabentry = > 'nodetype.node=attr:node' ,
2008-03-20 18:38:50 +00:00
} ,
2008-02-21 21:10:35 +00:00
# TODO: need to decide what to do with the profile attr once the osimage
2007-12-13 18:53:02 +00:00
# stuff is implemented. May want to move this to the osimage table.
{ attr_name = > 'profile' ,
tabentry = > 'nodetype.profile' ,
access_tabentry = > 'nodetype.node=attr:node' ,
2008-03-20 18:38:50 +00:00
} ,
2009-09-19 17:03:14 +00:00
{ attr_name = > 'provmethod' ,
tabentry = > 'nodetype.provmethod' ,
access_tabentry = > 'nodetype.node=attr:node' ,
} ,
2007-12-13 18:53:02 +00:00
####################
2008-02-21 21:10:35 +00:00
# iscsi table #
2007-12-13 18:53:02 +00:00
####################
2008-04-14 13:50:28 +00:00
{ attr_name = > 'iscsiserver' ,
2008-02-21 21:10:35 +00:00
tabentry = > 'iscsi.server' ,
access_tabentry = > 'iscsi.node=attr:node' ,
} ,
2008-04-14 13:50:28 +00:00
{ attr_name = > 'iscsitarget' ,
2008-02-21 21:10:35 +00:00
tabentry = > 'iscsi.target' ,
access_tabentry = > 'iscsi.node=attr:node' ,
} ,
2008-04-14 13:50:28 +00:00
{ attr_name = > 'iscsiuserid' ,
2008-02-21 21:10:35 +00:00
tabentry = > 'iscsi.userid' ,
access_tabentry = > 'iscsi.node=attr:node' ,
} ,
2008-04-14 13:50:28 +00:00
{ attr_name = > 'iscsipassword' ,
2008-02-21 21:10:35 +00:00
tabentry = > 'iscsi.passwd' ,
access_tabentry = > 'iscsi.node=attr:node' ,
} ,
2007-12-13 18:53:02 +00:00
####################
2008-02-21 21:10:35 +00:00
# nodehm table #
2007-12-13 18:53:02 +00:00
####################
2007-11-26 20:30:00 +00:00
{ attr_name = > 'mgt' ,
2007-10-26 22:44:33 +00:00
tabentry = > 'nodehm.mgt' ,
2007-11-26 20:30:00 +00:00
access_tabentry = > 'nodehm.node=attr:node' ,
2008-03-20 18:38:50 +00:00
} ,
2007-11-26 20:30:00 +00:00
{ attr_name = > 'power' ,
2007-10-26 22:44:33 +00:00
tabentry = > 'nodehm.power' ,
2007-11-26 20:30:00 +00:00
access_tabentry = > 'nodehm.node=attr:node' ,
2008-03-20 18:38:50 +00:00
} ,
2007-11-26 20:30:00 +00:00
{ attr_name = > 'cons' ,
2007-10-26 22:44:33 +00:00
tabentry = > 'nodehm.cons' ,
2007-11-26 20:30:00 +00:00
access_tabentry = > 'nodehm.node=attr:node' ,
2008-03-20 18:38:50 +00:00
} ,
2007-11-26 20:30:00 +00:00
{ attr_name = > 'termserver' ,
2007-10-26 22:44:33 +00:00
tabentry = > 'nodehm.termserver' ,
2007-11-26 20:30:00 +00:00
access_tabentry = > 'nodehm.node=attr:node' ,
2008-03-20 18:38:50 +00:00
} ,
2007-11-26 20:30:00 +00:00
{ attr_name = > 'termport' ,
2007-10-26 22:44:33 +00:00
tabentry = > 'nodehm.termport' ,
2007-11-26 20:30:00 +00:00
access_tabentry = > 'nodehm.node=attr:node' ,
2008-03-20 18:38:50 +00:00
} ,
2012-01-27 19:02:32 +00:00
2007-11-26 20:30:00 +00:00
{ attr_name = > 'conserver' ,
2007-10-26 22:44:33 +00:00
tabentry = > 'nodehm.conserver' ,
2007-11-26 20:30:00 +00:00
access_tabentry = > 'nodehm.node=attr:node' ,
2008-03-20 18:38:50 +00:00
} ,
2007-12-13 18:53:02 +00:00
###
# TODO: is nodehm.getmac used anywhere? I couldn't find any code references
###
2007-11-26 20:30:00 +00:00
{ attr_name = > 'getmac' ,
2007-10-26 22:44:33 +00:00
tabentry = > 'nodehm.getmac' ,
2007-11-26 20:30:00 +00:00
access_tabentry = > 'nodehm.node=attr:node' ,
2008-03-20 18:38:50 +00:00
} ,
2012-11-21 22:22:20 +00:00
{ attr_name = > 'cmdmapping' ,
tabentry = > 'nodehm.cmdmapping' ,
access_tabentry = > 'nodehm.node=attr:node' ,
} ,
2007-11-26 20:30:00 +00:00
{ attr_name = > 'serialport' ,
2008-04-25 15:36:56 +00:00
tabentry = > 'nodehm.serialport' ,
access_tabentry = > 'nodehm.node=attr:node' ,
2008-03-20 18:38:50 +00:00
} ,
2007-11-26 20:30:00 +00:00
{ attr_name = > 'serialspeed' ,
2007-10-26 22:44:33 +00:00
tabentry = > 'nodehm.serialspeed' ,
2007-11-26 20:30:00 +00:00
access_tabentry = > 'nodehm.node=attr:node' ,
2008-03-20 18:38:50 +00:00
} ,
2007-11-26 20:30:00 +00:00
{ attr_name = > 'serialflow' ,
2007-10-26 22:44:33 +00:00
tabentry = > 'nodehm.serialflow' ,
2007-11-26 20:30:00 +00:00
access_tabentry = > 'nodehm.node=attr:node' ,
2008-03-20 18:38:50 +00:00
} ,
2007-12-13 18:53:02 +00:00
##################
2008-02-21 21:10:35 +00:00
# vpd table #
2007-12-13 18:53:02 +00:00
##################
{ attr_name = > 'serial' ,
2007-10-26 22:44:33 +00:00
tabentry = > 'vpd.serial' ,
2007-11-26 20:30:00 +00:00
access_tabentry = > 'vpd.node=attr:node' ,
2008-03-20 18:38:50 +00:00
} ,
2007-11-26 20:30:00 +00:00
{ attr_name = > 'mtm' ,
2007-10-26 22:44:33 +00:00
tabentry = > 'vpd.mtm' ,
2007-11-26 20:30:00 +00:00
access_tabentry = > 'vpd.node=attr:node' ,
2009-12-28 08:10:42 +00:00
} ,
{ attr_name = > 'side' ,
tabentry = > 'vpd.side' ,
access_tabentry = > 'vpd.node=attr:node' ,
2008-03-20 18:38:50 +00:00
} ,
2007-12-13 18:53:02 +00:00
##################
2008-02-21 21:10:35 +00:00
# mac table #
2007-12-13 18:53:02 +00:00
##################
2008-03-20 18:38:50 +00:00
{ attr_name = > 'interface' ,
2007-11-26 20:30:00 +00:00
tabentry = > 'mac.interface' ,
access_tabentry = > 'mac.node=attr:node' ,
2008-02-21 21:10:35 +00:00
} ,
2008-03-20 18:38:50 +00:00
{ attr_name = > 'mac' ,
2007-11-26 20:30:00 +00:00
tabentry = > 'mac.mac' ,
access_tabentry = > 'mac.node=attr:node' ,
2008-02-21 21:10:35 +00:00
} ,
2007-12-13 18:53:02 +00:00
##################
2008-02-21 21:10:35 +00:00
# chain table #
2007-12-13 18:53:02 +00:00
##################
###
# TODO: Need user documentation from Jarrod on how to use chain, what each
# action does, valid ordering, etc.
###
2008-03-20 18:38:50 +00:00
{ attr_name = > 'chain' ,
2007-11-26 20:30:00 +00:00
tabentry = > 'chain.chain' ,
access_tabentry = > 'chain.node=attr:node' ,
2008-02-21 21:10:35 +00:00
} ,
2007-12-13 18:53:02 +00:00
###
# TODO: What is chain.ondiscover used for? Could not find any code references
# to this table entry
###
2008-03-20 18:38:50 +00:00
{ attr_name = > 'ondiscover' ,
2007-11-26 20:30:00 +00:00
tabentry = > 'chain.ondiscover' ,
access_tabentry = > 'chain.node=attr:node' ,
2008-02-21 21:10:35 +00:00
} ,
2008-03-20 18:38:50 +00:00
{ attr_name = > 'currstate' ,
2007-12-13 18:53:02 +00:00
tabentry = > 'chain.currstate' ,
access_tabentry = > 'chain.node=attr:node' ,
2008-02-21 21:10:35 +00:00
} ,
2008-03-20 18:38:50 +00:00
{ attr_name = > 'currchain' ,
2007-12-13 18:53:02 +00:00
tabentry = > 'chain.currchain' ,
access_tabentry = > 'chain.node=attr:node' ,
2008-02-21 21:10:35 +00:00
} ,
2007-12-13 18:53:02 +00:00
####################
2008-02-21 21:10:35 +00:00
# ppchcp table #
2007-12-13 18:53:02 +00:00
####################
2008-04-14 13:50:28 +00:00
{ attr_name = > 'username' ,
2008-02-21 21:10:35 +00:00
only_if = > 'nodetype=ivm' ,
tabentry = > 'ppchcp.username' ,
access_tabentry = > 'ppchcp.hcp=attr:node' ,
} ,
2008-04-14 13:50:28 +00:00
{ attr_name = > 'password' ,
2008-02-21 21:10:35 +00:00
only_if = > 'nodetype=ivm' ,
tabentry = > 'ppchcp.password' ,
access_tabentry = > 'ppchcp.hcp=attr:node' ,
} ,
2008-04-14 13:50:28 +00:00
{ attr_name = > 'username' ,
2008-02-21 21:10:35 +00:00
only_if = > 'nodetype=hmc' ,
tabentry = > 'ppchcp.username' ,
access_tabentry = > 'ppchcp.hcp=attr:node' ,
} ,
2008-04-14 13:50:28 +00:00
{ attr_name = > 'password' ,
2008-02-21 21:10:35 +00:00
only_if = > 'nodetype=hmc' ,
2011-07-11 09:15:16 +00:00
tabentry = > 'ppchcp.password' ,
access_tabentry = > 'ppchcp.hcp=attr:node' ,
} ,
{ attr_name = > 'username' ,
2011-07-11 10:21:53 +00:00
only_if = > 'nodetype=ppc' ,
2011-07-11 09:15:16 +00:00
tabentry = > 'ppchcp.username' ,
access_tabentry = > 'ppchcp.hcp=attr:node' ,
} ,
{ attr_name = > 'password' ,
2011-07-11 10:21:53 +00:00
only_if = > 'nodetype=ppc' ,
2008-02-21 21:10:35 +00:00
tabentry = > 'ppchcp.password' ,
access_tabentry = > 'ppchcp.hcp=attr:node' ,
} ,
2011-07-11 10:21:53 +00:00
2007-12-13 18:53:02 +00:00
####################
2008-02-21 21:10:35 +00:00
# ppc table #
2007-12-13 18:53:02 +00:00
####################
2008-04-14 13:50:28 +00:00
{ attr_name = > 'hcp' ,
2007-12-13 18:53:02 +00:00
tabentry = > 'ppc.hcp' ,
access_tabentry = > 'ppc.node=attr:node' ,
2008-03-20 18:38:50 +00:00
} ,
2008-04-14 13:50:28 +00:00
{ attr_name = > 'id' ,
2007-11-26 20:30:00 +00:00
tabentry = > 'ppc.id' ,
access_tabentry = > 'ppc.node=attr:node' ,
2008-02-21 21:10:35 +00:00
} ,
2009-06-11 05:47:19 +00:00
{ attr_name = > 'pprofile' ,
only_if = > 'mgt=hmc' ,
tabentry = > 'ppc.pprofile' ,
2007-12-13 18:53:02 +00:00
access_tabentry = > 'ppc.node=attr:node' ,
2008-02-21 21:10:35 +00:00
} ,
2008-04-14 13:50:28 +00:00
{ attr_name = > 'pprofile' ,
2009-06-11 05:47:19 +00:00
only_if = > 'mgt=ivm' ,
2008-03-20 18:38:50 +00:00
tabentry = > 'ppc.pprofile' ,
2008-02-21 21:10:35 +00:00
access_tabentry = > 'ppc.node=attr:node' ,
} ,
2010-04-12 06:07:37 +00:00
{ attr_name = > 'pprofile' ,
only_if = > 'mgt=fsp' ,
tabentry = > 'ppc.pprofile' ,
access_tabentry = > 'ppc.node=attr:node' ,
} ,
2008-04-14 13:50:28 +00:00
{ attr_name = > 'parent' ,
2008-02-21 21:10:35 +00:00
only_if = > 'mgt=hmc' ,
tabentry = > 'ppc.parent' ,
access_tabentry = > 'ppc.node=attr:node' ,
} ,
2008-04-14 13:50:28 +00:00
{ attr_name = > 'parent' ,
2008-02-21 21:10:35 +00:00
only_if = > 'mgt=ivm' ,
tabentry = > 'ppc.parent' ,
access_tabentry = > 'ppc.node=attr:node' ,
} ,
2010-12-08 10:04:40 +00:00
{ attr_name = > 'parent' ,
only_if = > 'mgt=bpa' ,
tabentry = > 'ppc.parent' ,
access_tabentry = > 'ppc.node=attr:node' ,
} ,
2009-06-11 05:47:19 +00:00
{ attr_name = > 'parent' ,
only_if = > 'mgt=fsp' ,
tabentry = > 'ppc.parent' ,
2009-01-23 14:51:46 +00:00
access_tabentry = > 'ppc.node=attr:node' ,
} ,
2011-06-30 07:32:49 +00:00
{ attr_name = > 'hwtype' ,
only_if = > 'mgt=fsp' ,
tabentry = > 'ppc.nodetype' ,
access_tabentry = > 'ppc.node=attr:node' ,
} ,
{ attr_name = > 'hwtype' ,
only_if = > 'mgt=bpa' ,
2010-12-15 07:12:40 +00:00
tabentry = > 'ppc.nodetype' ,
access_tabentry = > 'ppc.node=attr:node' ,
2011-06-30 07:32:49 +00:00
} ,
{ attr_name = > 'hwtype' ,
only_if = > 'mgt=ivm' ,
tabentry = > 'ppc.nodetype' ,
access_tabentry = > 'ppc.node=attr:node' ,
} ,
{ attr_name = > 'hwtype' ,
only_if = > 'mgt=hmc' ,
tabentry = > 'ppc.nodetype' ,
access_tabentry = > 'ppc.node=attr:node' ,
} ,
{ attr_name = > 'hwtype' ,
only_if = > 'mgt=zvm' ,
tabentry = > 'zvm.nodetype' ,
access_tabentry = > 'ppc.node=attr:node' ,
} ,
2011-12-21 02:49:21 +00:00
{ attr_name = > 'hwtype' ,
only_if = > 'mgt=blade' ,
tabentry = > 'mp.nodetype' ,
access_tabentry = > 'mp.node=attr:node' ,
} ,
2009-01-23 14:51:46 +00:00
{ attr_name = > 'supernode' ,
tabentry = > 'ppc.supernode' ,
access_tabentry = > 'ppc.node=attr:node' ,
} ,
2011-03-10 13:47:09 +00:00
{ attr_name = > 'sfp' ,
tabentry = > 'ppc.sfp' ,
access_tabentry = > 'ppc.node=attr:node' ,
} ,
2007-12-13 18:53:02 +00:00
#######################
2008-02-21 21:10:35 +00:00
# ppcdirect table #
2007-12-13 18:53:02 +00:00
#######################
2009-09-09 09:07:28 +00:00
{ attr_name = > 'passwd.HMC' ,
2007-12-13 18:53:02 +00:00
only_if = > 'mgt=fsp' ,
2009-09-09 09:07:28 +00:00
tabentry = > 'ppcdirect.password' ,
access_tabentry = > 'ppcdirect.hcp=attr:node::ppcdirect.username=str:HMC' ,
2009-12-10 02:19:40 +00:00
} ,
{ attr_name = > 'passwd.hscroot' ,
only_if = > 'mgt=fsp' ,
tabentry = > 'ppcdirect.password' ,
access_tabentry = > 'ppcdirect.hcp=attr:node::ppcdirect.username=str:hscroot' ,
2009-09-09 09:07:28 +00:00
} ,
{ attr_name = > 'passwd.admin' ,
only_if = > 'mgt=fsp' ,
tabentry = > 'ppcdirect.password' ,
access_tabentry = > 'ppcdirect.hcp=attr:node::ppcdirect.username=str:admin' ,
2008-03-20 18:38:50 +00:00
} ,
2009-09-09 09:07:28 +00:00
{ attr_name = > 'passwd.general' ,
2007-12-13 18:53:02 +00:00
only_if = > 'mgt=fsp' ,
tabentry = > 'ppcdirect.password' ,
2009-09-09 09:07:28 +00:00
access_tabentry = > 'ppcdirect.hcp=attr:node::ppcdirect.username=str:general' ,
2011-06-17 07:29:17 +00:00
} ,
{ attr_name = > 'passwd.celogin' ,
only_if = > 'mgt=fsp' ,
tabentry = > 'ppcdirect.password' ,
access_tabentry = > 'ppcdirect.hcp=attr:node::ppcdirect.username=str:celogin' ,
} , { attr_name = > 'passwd.celogin' ,
only_if = > 'mgt=bpa' ,
tabentry = > 'ppcdirect.password' ,
access_tabentry = > 'ppcdirect.hcp=attr:node::ppcdirect.username=str:celogin' ,
2009-12-10 02:19:40 +00:00
} ,
{ attr_name = > 'passwd.HMC' ,
only_if = > 'mgt=bpa' ,
tabentry = > 'ppcdirect.password' ,
access_tabentry = > 'ppcdirect.hcp=attr:node::ppcdirect.username=str:HMC' ,
} ,
{ attr_name = > 'passwd.hscroot' ,
only_if = > 'mgt=bpa' ,
tabentry = > 'ppcdirect.password' ,
access_tabentry = > 'ppcdirect.hcp=attr:node::ppcdirect.username=str:hscroot' ,
} ,
{ attr_name = > 'passwd.admin' ,
only_if = > 'mgt=bpa' ,
tabentry = > 'ppcdirect.password' ,
access_tabentry = > 'ppcdirect.hcp=attr:node::ppcdirect.username=str:admin' ,
} ,
{ attr_name = > 'passwd.general' ,
only_if = > 'mgt=bpa' ,
tabentry = > 'ppcdirect.password' ,
access_tabentry = > 'ppcdirect.hcp=attr:node::ppcdirect.username=str:general' ,
2008-03-20 18:38:50 +00:00
} ,
2009-09-25 14:45:45 +00:00
####################
# zvm table #
####################
{ attr_name = > 'hcp' ,
only_if = > 'mgt=zvm' ,
tabentry = > 'zvm.hcp' ,
access_tabentry = > 'zvm.node=attr:node' ,
} ,
{ attr_name = > 'userid' ,
only_if = > 'mgt=zvm' ,
tabentry = > 'zvm.userid' ,
access_tabentry = > 'zvm.node=attr:node' ,
} ,
2007-12-13 18:53:02 +00:00
##################
2008-02-21 21:10:35 +00:00
# ipmi table #
2007-12-13 18:53:02 +00:00
##################
2008-04-14 13:50:28 +00:00
{ attr_name = > 'bmc' ,
2007-12-13 18:53:02 +00:00
only_if = > 'mgt=ipmi' ,
2007-10-26 22:44:33 +00:00
tabentry = > 'ipmi.bmc' ,
2007-12-13 18:53:02 +00:00
access_tabentry = > 'ipmi.node=attr:node' ,
2009-03-19 17:31:48 +00:00
} ,
{ attr_name = > 'bmcport' ,
only_if = > 'mgt=ipmi' ,
tabentry = > 'ipmi.bmcport' ,
access_tabentry = > 'ipmi.node=attr:node' ,
2008-03-20 18:38:50 +00:00
} ,
2008-04-14 13:50:28 +00:00
{ attr_name = > 'bmcusername' ,
2007-12-13 18:53:02 +00:00
only_if = > 'mgt=ipmi' ,
tabentry = > 'ipmi.username' ,
access_tabentry = > 'ipmi.node=attr:node' ,
2008-03-20 18:38:50 +00:00
} ,
2008-04-14 13:50:28 +00:00
{ attr_name = > 'bmcpassword' ,
2007-12-13 18:53:02 +00:00
only_if = > 'mgt=ipmi' ,
tabentry = > 'ipmi.password' ,
access_tabentry = > 'ipmi.node=attr:node' ,
2008-03-20 18:38:50 +00:00
} ,
2007-12-13 18:53:02 +00:00
################
2008-02-21 21:10:35 +00:00
# mp table #
2007-12-13 18:53:02 +00:00
################
2008-04-14 13:50:28 +00:00
{ attr_name = > 'mpa' ,
2011-12-21 02:49:21 +00:00
# Remove the restriction so that fsp also can
# write to mpa attribute
#only_if => 'mgt=blade',
2007-12-13 18:53:02 +00:00
tabentry = > 'mp.mpa' ,
access_tabentry = > 'mp.node=attr:node' ,
2011-12-21 02:49:21 +00:00
} ,
{ attr_name = > 'slotid' ,
only_if = > 'mgt=fsp' ,
tabentry = > 'mp.id' ,
access_tabentry = > 'mp.node=attr:node' ,
2008-03-20 18:38:50 +00:00
} ,
2008-04-14 13:50:28 +00:00
{ attr_name = > 'id' ,
2007-12-13 18:53:02 +00:00
only_if = > 'mgt=blade' ,
2007-10-26 22:44:33 +00:00
tabentry = > 'mp.id' ,
2007-11-26 20:30:00 +00:00
access_tabentry = > 'mp.node=attr:node' ,
2008-03-20 18:38:50 +00:00
} ,
2012-08-31 09:17:35 +00:00
{ attr_name = > 'id' ,
only_if = > 'mgt=ipmi' ,
tabentry = > 'mp.id' ,
access_tabentry = > 'mp.node=attr:node' ,
} ,
2007-12-13 18:53:02 +00:00
#################
2008-02-21 21:10:35 +00:00
# mpa table #
2007-12-13 18:53:02 +00:00
#################
2008-04-14 13:50:28 +00:00
{ attr_name = > 'username' ,
2007-12-13 18:53:02 +00:00
only_if = > 'nodetype=mm' ,
tabentry = > 'mpa.username' ,
access_tabentry = > 'mpa.mpa=attr:node' ,
2008-03-20 18:38:50 +00:00
} ,
2008-04-14 13:50:28 +00:00
{ attr_name = > 'password' ,
2007-12-13 18:53:02 +00:00
only_if = > 'nodetype=mm' ,
tabentry = > 'mpa.password' ,
access_tabentry = > 'mpa.mpa=attr:node' ,
2012-09-27 13:53:15 +00:00
} ,
{ attr_name = > 'displayname' ,
only_if = > 'nodetype=mm' ,
tabentry = > 'mpa.displayname' ,
access_tabentry = > 'mpa.mpa=attr:node' ,
} ,
{ attr_name = > 'slots' ,
only_if = > 'nodetype=mm' ,
tabentry = > 'mpa.slots' ,
access_tabentry = > 'mpa.mpa=attr:node' ,
} ,
{ attr_name = > 'urlpath' ,
only_if = > 'nodetype=mm' ,
tabentry = > 'mpa.urlpath' ,
access_tabentry = > 'mpa.mpa=attr:node' ,
2008-03-20 18:38:50 +00:00
} ,
2007-12-13 18:53:02 +00:00
######################
2008-02-21 21:10:35 +00:00
# nodepos table #
2007-12-13 18:53:02 +00:00
######################
{ attr_name = > 'rack' ,
tabentry = > 'nodepos.rack' ,
access_tabentry = > 'nodepos.node=attr:node' ,
2008-03-20 18:38:50 +00:00
} ,
2007-12-13 18:53:02 +00:00
{ attr_name = > 'unit' ,
tabentry = > 'nodepos.u' ,
access_tabentry = > 'nodepos.node=attr:node' ,
2008-03-20 18:38:50 +00:00
} ,
2007-12-13 18:53:02 +00:00
{ attr_name = > 'chassis' ,
tabentry = > 'nodepos.chassis' ,
access_tabentry = > 'nodepos.node=attr:node' ,
2008-03-20 18:38:50 +00:00
} ,
2007-12-13 18:53:02 +00:00
{ attr_name = > 'slot' ,
tabentry = > 'nodepos.slot' ,
access_tabentry = > 'nodepos.node=attr:node' ,
2009-06-03 13:00:13 +00:00
2008-03-20 18:38:50 +00:00
} ,
2007-12-13 18:53:02 +00:00
{ attr_name = > 'room' ,
tabentry = > 'nodepos.room' ,
access_tabentry = > 'nodepos.node=attr:node' ,
2009-01-29 19:00:50 +00:00
} ,
2012-09-27 13:53:15 +00:00
{ attr_name = > 'height' ,
tabentry = > 'nodepos.height' ,
access_tabentry = > 'nodepos.node=attr:node' ,
} ,
####################
# nics table #
####################
{ attr_name = > 'nicips' ,
tabentry = > 'nics.nicips' ,
access_tabentry = > 'nics.node=attr:node' ,
} ,
{ attr_name = > 'nichostnamesuffixes' ,
tabentry = > 'nics.nichostnamesuffixes' ,
access_tabentry = > 'nics.node=attr:node' ,
} ,
{ attr_name = > 'nictypes' ,
tabentry = > 'nics.nictypes' ,
access_tabentry = > 'nics.node=attr:node' ,
} ,
{ attr_name = > 'niccustomscripts' ,
tabentry = > 'nics.niccustomscripts' ,
access_tabentry = > 'nics.node=attr:node' ,
} ,
{ attr_name = > 'nicnetworks' ,
tabentry = > 'nics.nicnetworks' ,
access_tabentry = > 'nics.node=attr:node' ,
} ,
2013-01-11 16:19:23 +00:00
{ attr_name = > 'nicaliases' ,
tabentry = > 'nics.nicaliases' ,
access_tabentry = > 'nics.node=attr:node' ,
} ,
2009-01-29 19:00:50 +00:00
######################
2013-03-19 14:32:05 +00:00
# prodkey table #
######################
{ attr_name = > 'productkey' ,
tabentry = > 'prodkey.key' ,
access_tabentry = > 'prodkey.node=attr:node' ,
} ,
######################
# domain table #
######################
{ attr_name = > 'ou' ,
tabentry = > 'domain.ou' ,
access_tabentry = > 'domain.node=attr:node' ,
} ,
{ attr_name = > 'domainadminuser' ,
tabentry = > 'domain.adminuser' ,
access_tabentry = > 'domain.node=attr:node' ,
} ,
{ attr_name = > 'domainadminpassword' ,
tabentry = > 'domain.adminpassword' ,
access_tabentry = > 'domain.node=attr:node' ,
} ,
{ attr_name = > 'authdomain' ,
tabentry = > 'domain.authdomain' ,
access_tabentry = > 'domain.node=attr:node' ,
} ,
######################
2013-02-20 19:13:15 +00:00
# storage table #
######################
{ attr_name = > 'osvolume' ,
2013-02-20 19:27:45 +00:00
tabentry = > 'storage.osvolume' ,
2013-02-20 19:13:15 +00:00
access_tabentry = > 'storage.node=attr:node' ,
} ,
######################
2009-01-29 19:00:50 +00:00
# vm table #
######################
2012-08-23 09:17:26 +00:00
{ attr_name = > 'vmmanager' ,
tabentry = > 'vm.mgr' ,
access_tabentry = > 'vm.node=attr:node' ,
} ,
2012-09-27 13:53:15 +00:00
{ attr_name = > 'vmhost' ,
2009-01-29 19:00:50 +00:00
tabentry = > 'vm.host' ,
access_tabentry = > 'vm.node=attr:node' ,
} ,
2012-09-27 13:53:15 +00:00
{ attr_name = > 'migrationdest' ,
2009-01-29 19:00:50 +00:00
tabentry = > 'vm.migrationdest' ,
access_tabentry = > 'vm.node=attr:node' ,
} ,
2012-09-27 13:53:15 +00:00
{ attr_name = > 'vmstorage' ,
2009-01-29 19:00:50 +00:00
tabentry = > 'vm.storage' ,
access_tabentry = > 'vm.node=attr:node' ,
} ,
2012-09-27 13:53:15 +00:00
{ attr_name = > 'vmstoragemodel' ,
2010-08-25 15:19:06 +00:00
tabentry = > 'vm.storagemodel' ,
access_tabentry = > 'vm.node=attr:node' ,
} ,
2012-09-27 13:53:15 +00:00
{ attr_name = > 'vmcfgstore' ,
2009-07-09 19:15:42 +00:00
tabentry = > 'vm.cfgstore' ,
access_tabentry = > 'vm.node=attr:node' ,
} ,
2012-09-27 13:53:15 +00:00
{ attr_name = > 'vmmemory' ,
2009-01-29 19:00:50 +00:00
tabentry = > 'vm.memory' ,
access_tabentry = > 'vm.node=attr:node' ,
} ,
2012-09-27 13:53:15 +00:00
{ attr_name = > 'vmcpus' ,
2009-01-29 19:00:50 +00:00
tabentry = > 'vm.cpus' ,
access_tabentry = > 'vm.node=attr:node' ,
} ,
2012-09-27 13:53:15 +00:00
{ attr_name = > 'vmnics' ,
2009-01-29 19:00:50 +00:00
tabentry = > 'vm.nics' ,
access_tabentry = > 'vm.node=attr:node' ,
} ,
2012-09-27 13:53:15 +00:00
{ attr_name = > 'vmnicnicmodel' ,
2010-08-25 15:19:06 +00:00
tabentry = > 'vm.nicmodel' ,
access_tabentry = > 'vm.node=attr:node' ,
} ,
2012-09-27 13:53:15 +00:00
{ attr_name = > 'vmbootorder' ,
2009-01-29 19:00:50 +00:00
tabentry = > 'vm.bootorder' ,
access_tabentry = > 'vm.node=attr:node' ,
} ,
2012-09-27 13:53:15 +00:00
{ attr_name = > 'vmvirtflags' ,
2009-01-29 19:00:50 +00:00
tabentry = > 'vm.virtflags' ,
access_tabentry = > 'vm.node=attr:node' ,
} ,
2012-09-18 08:32:45 +00:00
{ attr_name = > 'vmmaster' ,
2012-09-10 13:07:31 +00:00
tabentry = > 'vm.master' ,
access_tabentry = > 'vm.node=attr:node' ,
} ,
2012-09-27 13:53:15 +00:00
{ attr_name = > 'vmvncport' ,
2009-01-29 19:00:50 +00:00
tabentry = > 'vm.vncport' ,
access_tabentry = > 'vm.node=attr:node' ,
} ,
2012-09-27 13:53:15 +00:00
{ attr_name = > 'vmtextconsole' ,
2009-01-29 19:00:50 +00:00
tabentry = > 'vm.textconsole' ,
access_tabentry = > 'vm.node=attr:node' ,
} ,
2012-09-27 13:53:15 +00:00
{ attr_name = > 'vmbeacon' ,
2009-01-29 19:00:50 +00:00
tabentry = > 'vm.beacon' ,
access_tabentry = > 'vm.node=attr:node' ,
} ,
2012-09-27 13:53:15 +00:00
{ attr_name = > 'vmcluster' ,
2012-09-18 08:32:45 +00:00
tabentry = > 'vm.cluster' ,
access_tabentry = > 'vm.node=attr:node' ,
} ,
######################
# hypervisor table #
######################
2012-09-27 13:53:15 +00:00
{ attr_name = > 'hosttype' ,
2012-09-18 08:32:45 +00:00
tabentry = > 'hypervisor.type' ,
access_tabentry = > 'hypervisor.node=attr:node' ,
} ,
2012-09-27 13:53:15 +00:00
{ attr_name = > 'hostinterface' ,
2012-09-18 08:32:45 +00:00
tabentry = > 'hypervisor.interface' ,
access_tabentry = > 'hypervisor.node=attr:node' ,
} ,
2012-09-27 13:53:15 +00:00
{ attr_name = > 'hostmanager' ,
2012-09-18 08:32:45 +00:00
tabentry = > 'hypervisor.mgr' ,
access_tabentry = > 'hypervisor.node=attr:node' ,
} ,
2012-09-27 13:53:15 +00:00
{ attr_name = > 'hostcluster' ,
2012-09-18 08:32:45 +00:00
tabentry = > 'hypervisor.cluster' ,
access_tabentry = > 'hypervisor.node=attr:node' ,
} ,
2009-01-29 19:00:50 +00:00
######################
# websrv table #
######################
{ attr_name = > 'webport' ,
only_if = > 'nodetype=websrv' ,
tabentry = > 'websrv.port' ,
access_tabentry = > 'websrv.node=attr:node' ,
} ,
{ attr_name = > 'username' ,
only_if = > 'nodetype=websrv' ,
tabentry = > 'websrv.username' ,
access_tabentry = > 'websrv.node=attr:node' ,
} ,
{ attr_name = > 'password' ,
only_if = > 'nodetype=websrv' ,
tabentry = > 'websrv.password' ,
access_tabentry = > 'websrv.node=attr:node' ,
} ,
2010-03-01 10:12:45 +00:00
######################
# switch table #
######################
{ attr_name = > 'switch' ,
tabentry = > 'switch.switch' ,
access_tabentry = > 'switch.node=attr:node' ,
} ,
{ attr_name = > 'switchport' ,
tabentry = > 'switch.port' ,
access_tabentry = > 'switch.node=attr:node' ,
} ,
{ attr_name = > 'switchvlan' ,
tabentry = > 'switch.vlan' ,
access_tabentry = > 'switch.node=attr:node' ,
} ,
{ attr_name = > 'switchinterface' ,
tabentry = > 'switch.interface' ,
access_tabentry = > 'switch.node=attr:node' ,
} ,
2010-03-05 21:01:24 +00:00
####################
# hosts table #
####################
{ attr_name = > 'ip' ,
tabentry = > 'hosts.ip' ,
access_tabentry = > 'hosts.node=attr:node' ,
} ,
{ attr_name = > 'hostnames' ,
tabentry = > 'hosts.hostnames' ,
access_tabentry = > 'hosts.node=attr:node' ,
} ,
{ attr_name = > 'otherinterfaces' ,
tabentry = > 'hosts.otherinterfaces' ,
access_tabentry = > 'hosts.node=attr:node' ,
} ,
####################
# prescripts table#
####################
{ attr_name = > 'prescripts-begin' ,
tabentry = > 'prescripts.begin' ,
access_tabentry = > 'prescripts.node=attr:node' ,
} ,
{ attr_name = > 'prescripts-end' ,
tabentry = > 'prescripts.end' ,
access_tabentry = > 'prescripts.node=attr:node' ,
} ,
) ; # end of @nodeattrs that applies to both nodes and groups
2008-02-12 13:54:11 +00:00
####################
# node definition - nodelist & hosts table parts #
####################
@ { $ defspec { node } - > { 'attrs' } } = (
####################
# nodelist table #
####################
{ attr_name = > 'node' ,
tabentry = > 'nodelist.node' ,
access_tabentry = > 'nodelist.node=attr:node' ,
2012-09-27 13:53:15 +00:00
} ,
2008-02-12 13:54:11 +00:00
{ attr_name = > 'groups' ,
tabentry = > 'nodelist.groups' ,
access_tabentry = > 'nodelist.node=attr:node' ,
2008-02-21 21:10:35 +00:00
} ,
2008-09-29 13:10:28 +00:00
{ attr_name = > 'status' ,
2008-02-14 19:49:09 +00:00
tabentry = > 'nodelist.status' ,
2008-09-29 13:10:28 +00:00
access_tabentry = > 'nodelist.node=attr:node' ,
} ,
2010-03-10 19:09:30 +00:00
{ attr_name = > 'statustime' ,
tabentry = > 'nodelist.statustime' ,
access_tabentry = > 'nodelist.node=attr:node' ,
} ,
2008-09-29 13:10:28 +00:00
{ attr_name = > 'appstatus' ,
tabentry = > 'nodelist.appstatus' ,
2008-02-14 19:49:09 +00:00
access_tabentry = > 'nodelist.node=attr:node' ,
2008-02-21 21:10:35 +00:00
} ,
2010-03-10 19:09:30 +00:00
{ attr_name = > 'appstatustime' ,
tabentry = > 'nodelist.appstatustime' ,
access_tabentry = > 'nodelist.node=attr:node' ,
} ,
2009-03-19 17:31:48 +00:00
{ attr_name = > 'primarysn' ,
tabentry = > 'nodelist.primarysn' ,
access_tabentry = > 'nodelist.node=attr:node' ,
2008-02-21 21:10:35 +00:00
} ,
2011-01-10 08:25:43 +00:00
{ attr_name = > 'hidden' ,
tabentry = > 'nodelist.hidden' ,
access_tabentry = > 'nodelist.node=attr:node' ,
} ,
2012-09-27 13:53:15 +00:00
{ attr_name = > 'updatestatus' ,
tabentry = > 'nodelist.updatestatus' ,
access_tabentry = > 'nodelist.node=attr:node' ,
} ,
{ attr_name = > 'updatestatustime' ,
tabentry = > 'nodelist.updatestatustime' ,
access_tabentry = > 'nodelist.node=attr:node' ,
} ,
{ attr_name = > 'usercomment' ,
tabentry = > 'nodelist.comments' ,
access_tabentry = > 'nodelist.node=attr:node' ,
} ,
2008-02-21 21:10:35 +00:00
) ;
2008-02-12 13:54:11 +00:00
# add on the node attrs from other tables
push ( @ { $ defspec { node } - > { 'attrs' } } , @ nodeattrs ) ;
2007-12-13 18:53:02 +00:00
#########################
# osimage data object #
#########################
2007-10-26 22:44:33 +00:00
@ { $ defspec { osimage } - > { 'attrs' } } = (
2008-06-08 12:38:27 +00:00
{ attr_name = > 'imagename' ,
2007-10-26 22:44:33 +00:00
tabentry = > 'osimage.imagename' ,
2007-11-26 20:30:00 +00:00
access_tabentry = > 'osimage.imagename=attr:imagename' ,
2008-02-21 21:10:35 +00:00
} ,
2012-07-09 07:57:48 +00:00
{ attr_name = > 'groups' ,
tabentry = > 'osimage.groups' ,
access_tabentry = > 'osimage.imagename=attr:imagename' ,
} ,
2008-06-08 12:38:27 +00:00
{ attr_name = > 'imagetype' ,
tabentry = > 'osimage.imagetype' ,
2007-11-26 20:30:00 +00:00
access_tabentry = > 'osimage.imagename=attr:imagename' ,
2008-02-21 21:10:35 +00:00
} ,
2012-11-12 20:04:28 +00:00
{ attr_name = > 'description' ,
tabentry = > 'osimage.description' ,
2012-09-27 13:53:15 +00:00
access_tabentry = > 'osimage.imagename=attr:imagename' ,
} ,
2009-09-24 21:17:19 +00:00
{ attr_name = > 'provmethod' ,
tabentry = > 'osimage.provmethod' ,
access_tabentry = > 'osimage.imagename=attr:imagename' ,
} ,
2012-08-30 08:55:17 +00:00
{ attr_name = > 'osdistroname' ,
tabentry = > 'osimage.osdistroname' ,
access_tabentry = > 'osimage.imagename=attr:imagename' ,
} ,
2012-09-27 13:53:15 +00:00
{ attr_name = > 'osupdatename' ,
tabentry = > 'osimage.osupdatename' ,
access_tabentry = > 'osimage.imagename=attr:imagename' ,
} ,
{ attr_name = > 'cfmdir' ,
tabentry = > 'osimage.cfmdir' ,
access_tabentry = > 'osimage.imagename=attr:imagename' ,
} ,
2011-01-06 06:54:06 +00:00
{ attr_name = > 'rootfstype' ,
only_if = > 'imagetype=linux' ,
tabentry = > 'osimage.rootfstype' ,
access_tabentry = > 'osimage.imagename=attr:imagename' ,
} ,
2009-09-19 17:03:14 +00:00
{ attr_name = > 'profile' ,
tabentry = > 'osimage.profile' ,
access_tabentry = > 'osimage.imagename=attr:imagename' ,
} ,
{ attr_name = > 'osname' ,
tabentry = > 'osimage.osname' ,
access_tabentry = > 'osimage.imagename=attr:imagename' ,
} ,
{ attr_name = > 'osvers' ,
tabentry = > 'osimage.osvers' ,
access_tabentry = > 'osimage.imagename=attr:imagename' ,
} ,
{ attr_name = > 'osarch' ,
tabentry = > 'osimage.osarch' ,
access_tabentry = > 'osimage.imagename=attr:imagename' ,
} ,
{ attr_name = > 'synclists' ,
tabentry = > 'osimage.synclists' ,
access_tabentry = > 'osimage.imagename=attr:imagename' ,
} ,
2010-11-23 19:07:26 +00:00
{ attr_name = > 'postscripts' ,
tabentry = > 'osimage.postscripts' ,
access_tabentry = > 'osimage.imagename=attr:imagename' ,
} ,
{ attr_name = > 'postbootscripts' ,
tabentry = > 'osimage.postbootscripts' ,
access_tabentry = > 'osimage.imagename=attr:imagename' ,
} ,
2012-09-27 13:53:15 +00:00
{ attr_name = > 'serverrole' ,
tabentry = > 'osimage.serverrole' ,
access_tabentry = > 'osimage.imagename=attr:imagename' ,
} ,
{ attr_name = > 'isdeletable' ,
tabentry = > 'osimage.isdeletable' ,
access_tabentry = > 'osimage.imagename=attr:imagename' ,
} ,
{ attr_name = > 'kitcomponents' ,
tabentry = > 'osimage.kitcomponents' ,
access_tabentry = > 'osimage.imagename=attr:imagename' ,
} ,
2009-09-19 17:03:14 +00:00
####################
# linuximage table#
####################
{ attr_name = > 'template' ,
2009-09-24 21:17:19 +00:00
only_if = > 'imagetype=linux' ,
2009-09-19 17:03:14 +00:00
tabentry = > 'linuximage.template' ,
access_tabentry = > 'linuximage.imagename=attr:imagename' ,
} ,
2012-09-27 13:53:15 +00:00
{ attr_name = > 'boottarget' ,
only_if = > 'imagetype=linux' ,
tabentry = > 'linuximage.boottarget' ,
access_tabentry = > 'linuximage.imagename=attr:imagename' ,
} ,
{ attr_name = > 'addkcmdline' ,
only_if = > 'imagetype=linux' ,
tabentry = > 'linuximage.addkcmdline' ,
access_tabentry = > 'linuximage.imagename=attr:imagename' ,
} ,
2009-09-19 17:03:14 +00:00
{ attr_name = > 'pkglist' ,
2009-09-24 21:17:19 +00:00
only_if = > 'imagetype=linux' ,
2009-09-19 17:03:14 +00:00
tabentry = > 'linuximage.pkglist' ,
access_tabentry = > 'linuximage.imagename=attr:imagename' ,
} ,
{ attr_name = > 'pkgdir' ,
2009-09-24 21:17:19 +00:00
only_if = > 'imagetype=linux' ,
2009-09-19 17:03:14 +00:00
tabentry = > 'linuximage.pkgdir' ,
access_tabentry = > 'linuximage.imagename=attr:imagename' ,
} ,
{ attr_name = > 'otherpkglist' ,
2009-09-24 21:17:19 +00:00
only_if = > 'imagetype=linux' ,
2009-09-19 17:03:14 +00:00
tabentry = > 'linuximage.otherpkglist' ,
access_tabentry = > 'linuximage.imagename=attr:imagename' ,
} ,
{ attr_name = > 'otherpkgdir' ,
2009-09-24 21:17:19 +00:00
only_if = > 'imagetype=linux' ,
2009-09-19 17:03:14 +00:00
tabentry = > 'linuximage.otherpkgdir' ,
access_tabentry = > 'linuximage.imagename=attr:imagename' ,
} ,
{ attr_name = > 'exlist' ,
2009-09-24 21:17:19 +00:00
only_if = > 'imagetype=linux' ,
2009-09-19 17:03:14 +00:00
tabentry = > 'linuximage.exlist' ,
access_tabentry = > 'linuximage.imagename=attr:imagename' ,
} ,
{ attr_name = > 'postinstall' ,
2009-09-24 21:17:19 +00:00
only_if = > 'imagetype=linux' ,
2009-09-19 17:03:14 +00:00
tabentry = > 'linuximage.postinstall' ,
access_tabentry = > 'linuximage.imagename=attr:imagename' ,
} ,
{ attr_name = > 'rootimgdir' ,
2009-09-24 21:17:19 +00:00
only_if = > 'imagetype=linux' ,
2009-09-19 17:03:14 +00:00
tabentry = > 'linuximage.rootimgdir' ,
access_tabentry = > 'linuximage.imagename=attr:imagename' ,
} ,
2011-03-28 07:39:59 +00:00
{ attr_name = > 'kerneldir' ,
only_if = > 'imagetype=linux' ,
tabentry = > 'linuximage.kerneldir' ,
access_tabentry = > 'linuximage.imagename=attr:imagename' ,
} ,
2010-09-17 09:54:47 +00:00
{ attr_name = > 'nodebootif' ,
only_if = > 'imagetype=linux' ,
tabentry = > 'linuximage.nodebootif' ,
access_tabentry = > 'linuximage.imagename=attr:imagename' ,
} ,
{ attr_name = > 'otherifce' ,
only_if = > 'imagetype=linux' ,
tabentry = > 'linuximage.otherifce' ,
access_tabentry = > 'linuximage.imagename=attr:imagename' ,
} ,
2010-08-26 07:44:10 +00:00
{ attr_name = > 'netdrivers' ,
only_if = > 'imagetype=linux' ,
tabentry = > 'linuximage.netdrivers' ,
access_tabentry = > 'linuximage.imagename=attr:imagename' ,
} ,
{ attr_name = > 'kernelver' ,
only_if = > 'imagetype=linux' ,
tabentry = > 'linuximage.kernelver' ,
access_tabentry = > 'linuximage.imagename=attr:imagename' ,
} ,
2011-06-24 16:39:25 +00:00
{ attr_name = > 'krpmver' ,
only_if = > 'imagetype=linux' ,
tabentry = > 'linuximage.krpmver' ,
access_tabentry = > 'linuximage.imagename=attr:imagename' ,
} ,
2010-09-17 09:54:47 +00:00
{ attr_name = > 'permission' ,
only_if = > 'imagetype=linux' ,
tabentry = > 'linuximage.permission' ,
access_tabentry = > 'linuximage.imagename=attr:imagename' ,
} ,
2010-12-14 07:15:45 +00:00
{ attr_name = > 'dump' ,
only_if = > 'imagetype=linux' ,
tabentry = > 'linuximage.dump' ,
access_tabentry = > 'linuximage.imagename=attr:imagename' ,
} ,
2011-06-27 08:42:19 +00:00
{ attr_name = > 'crashkernelsize' ,
only_if = > 'imagetype=linux' ,
tabentry = > 'linuximage.crashkernelsize' ,
access_tabentry = > 'linuximage.imagename=attr:imagename' ,
} ,
2012-06-19 05:48:52 +00:00
{ attr_name = > 'partitionfile' ,
only_if = > 'imagetype=linux' ,
tabentry = > 'linuximage.partitionfile' ,
access_tabentry = > 'linuximage.imagename=attr:imagename' ,
} ,
2012-07-05 14:59:08 +00:00
{ attr_name = > 'driverupdatesrc' ,
only_if = > 'imagetype=linux' ,
tabentry = > 'linuximage.driverupdatesrc' ,
access_tabentry = > 'linuximage.imagename=attr:imagename' ,
} ,
2012-10-09 06:32:14 +00:00
{ attr_name = > 'usercomment' ,
only_if = > 'imagetype=linux' ,
tabentry = > 'linuximage.comments' ,
access_tabentry = > 'linuximage.imagename=attr:imagename' ,
} ,
2009-09-19 17:03:14 +00:00
####################
# nimimage table#
####################
2008-06-08 12:38:27 +00:00
{ attr_name = > 'nimtype' ,
2009-09-24 21:17:19 +00:00
only_if = > 'imagetype=NIM' ,
2008-06-12 12:33:07 +00:00
tabentry = > 'nimimage.nimtype' ,
access_tabentry = > 'nimimage.imagename=attr:imagename' ,
2008-06-08 12:38:27 +00:00
} ,
2008-06-17 17:28:31 +00:00
{ attr_name = > 'nimmethod' ,
2009-09-24 21:17:19 +00:00
only_if = > 'imagetype=NIM' ,
2008-06-17 17:28:31 +00:00
tabentry = > 'nimimage.nimmethod' ,
access_tabentry = > 'nimimage.imagename=attr:imagename' ,
} ,
2008-06-08 12:38:27 +00:00
{ attr_name = > 'lpp_source' ,
2009-09-24 21:17:19 +00:00
only_if = > 'imagetype=NIM' ,
2008-06-12 12:33:07 +00:00
tabentry = > 'nimimage.lpp_source' ,
access_tabentry = > 'nimimage.imagename=attr:imagename' ,
2008-02-21 21:10:35 +00:00
} ,
2008-06-08 12:38:27 +00:00
{ attr_name = > 'spot' ,
2009-09-24 21:17:19 +00:00
only_if = > 'imagetype=NIM' ,
2008-06-12 12:33:07 +00:00
tabentry = > 'nimimage.spot' ,
access_tabentry = > 'nimimage.imagename=attr:imagename' ,
2008-06-08 12:38:27 +00:00
} ,
{ attr_name = > 'root' ,
2009-09-24 21:17:19 +00:00
only_if = > 'imagetype=NIM' ,
2008-06-12 12:33:07 +00:00
tabentry = > 'nimimage.root' ,
access_tabentry = > 'nimimage.imagename=attr:imagename' ,
2008-06-08 12:38:27 +00:00
} ,
{ attr_name = > 'dump' ,
2009-09-24 21:17:19 +00:00
only_if = > 'imagetype=NIM' ,
2008-06-12 12:33:07 +00:00
tabentry = > 'nimimage.dump' ,
access_tabentry = > 'nimimage.imagename=attr:imagename' ,
2008-06-08 12:38:27 +00:00
} ,
2012-03-29 14:14:49 +00:00
{ attr_name = > 'configdump' ,
only_if = > 'imagetype=NIM' ,
tabentry = > 'nimimage.configdump' ,
access_tabentry = > 'nimimage.imagename=attr:imagename' ,
} ,
2008-06-08 12:38:27 +00:00
{ attr_name = > 'paging' ,
2009-09-24 21:17:19 +00:00
only_if = > 'imagetype=NIM' ,
2008-06-12 12:33:07 +00:00
tabentry = > 'nimimage.paging' ,
access_tabentry = > 'nimimage.imagename=attr:imagename' ,
2008-06-08 12:38:27 +00:00
} ,
{ attr_name = > 'resolv_conf' ,
2009-09-24 21:17:19 +00:00
only_if = > 'imagetype=NIM' ,
2008-06-12 12:33:07 +00:00
tabentry = > 'nimimage.resolv_conf' ,
access_tabentry = > 'nimimage.imagename=attr:imagename' ,
2008-06-08 12:38:27 +00:00
} ,
2010-07-23 10:35:49 +00:00
{ attr_name = > 'image_data' ,
only_if = > 'imagetype=NIM' ,
tabentry = > 'nimimage.image_data' ,
access_tabentry = > 'nimimage.imagename=attr:imagename' ,
} ,
2008-06-08 12:38:27 +00:00
{ attr_name = > 'tmp' ,
2009-09-24 21:17:19 +00:00
only_if = > 'imagetype=NIM' ,
2008-06-12 12:33:07 +00:00
tabentry = > 'nimimage.tmp' ,
access_tabentry = > 'nimimage.imagename=attr:imagename' ,
2008-06-08 12:38:27 +00:00
} ,
{ attr_name = > 'home' ,
2009-09-24 21:17:19 +00:00
only_if = > 'imagetype=NIM' ,
2008-06-12 12:33:07 +00:00
tabentry = > 'nimimage.home' ,
access_tabentry = > 'nimimage.imagename=attr:imagename' ,
2008-06-08 12:38:27 +00:00
} ,
{ attr_name = > 'shared_home' ,
2009-09-24 21:17:19 +00:00
only_if = > 'imagetype=NIM' ,
2008-06-12 12:33:07 +00:00
tabentry = > 'nimimage.shared_home' ,
access_tabentry = > 'nimimage.imagename=attr:imagename' ,
2008-06-08 12:38:27 +00:00
} ,
2009-06-03 13:00:13 +00:00
{ attr_name = > 'shared_root' ,
2009-09-24 21:17:19 +00:00
only_if = > 'imagetype=NIM' ,
2009-06-03 13:00:13 +00:00
tabentry = > 'nimimage.shared_root' ,
access_tabentry = > 'nimimage.imagename=attr:imagename' ,
} ,
2008-06-17 17:28:31 +00:00
{ attr_name = > 'script' ,
2009-09-24 21:17:19 +00:00
only_if = > 'imagetype=NIM' ,
2008-06-17 17:28:31 +00:00
tabentry = > 'nimimage.script' ,
access_tabentry = > 'nimimage.imagename=attr:imagename' ,
} ,
2008-10-01 12:14:35 +00:00
{ attr_name = > 'fb_script' ,
2009-09-24 21:17:19 +00:00
only_if = > 'imagetype=NIM' ,
2008-10-01 12:14:35 +00:00
tabentry = > 'nimimage.fb_script' ,
access_tabentry = > 'nimimage.imagename=attr:imagename' ,
} ,
2008-06-17 17:28:31 +00:00
{ attr_name = > 'bosinst_data' ,
2009-09-24 21:17:19 +00:00
only_if = > 'imagetype=NIM' ,
2008-06-17 17:28:31 +00:00
tabentry = > 'nimimage.bosinst_data' ,
access_tabentry = > 'nimimage.imagename=attr:imagename' ,
} ,
{ attr_name = > 'installp_bundle' ,
2009-09-24 21:17:19 +00:00
only_if = > 'imagetype=NIM' ,
2008-06-17 17:28:31 +00:00
tabentry = > 'nimimage.installp_bundle' ,
access_tabentry = > 'nimimage.imagename=attr:imagename' ,
} ,
2009-10-09 18:33:22 +00:00
{ attr_name = > 'otherpkgs' ,
2009-09-24 21:17:19 +00:00
only_if = > 'imagetype=NIM' ,
2009-10-09 18:33:22 +00:00
tabentry = > 'nimimage.otherpkgs' ,
2009-08-14 15:12:28 +00:00
access_tabentry = > 'nimimage.imagename=attr:imagename' ,
} ,
2008-06-17 17:28:31 +00:00
{ attr_name = > 'mksysb' ,
2009-09-24 21:17:19 +00:00
only_if = > 'imagetype=NIM' ,
2008-06-17 17:28:31 +00:00
tabentry = > 'nimimage.mksysb' ,
access_tabentry = > 'nimimage.imagename=attr:imagename' ,
} ,
# {attr_name => 'res_group',
# tabentry => 'nimimage.res_group',
# access_tabentry => 'nimimage.imagename=attr:imagename',
# },
2008-03-20 18:38:50 +00:00
{ attr_name = > 'usercomment' ,
2009-09-24 21:17:19 +00:00
only_if = > 'imagetype=NIM' ,
2008-06-12 12:33:07 +00:00
tabentry = > 'nimimage.comments' ,
access_tabentry = > 'nimimage.imagename=attr:imagename' ,
2008-02-21 21:10:35 +00:00
} ,
2007-10-26 22:44:33 +00:00
) ;
2008-02-21 21:10:35 +00:00
2007-12-13 18:53:02 +00:00
#########################
# network data object #
#########################
2008-02-21 21:10:35 +00:00
# networks table #
2007-12-13 18:53:02 +00:00
#########################
2007-10-26 22:44:33 +00:00
@ { $ defspec { network } - > { 'attrs' } } = (
2007-12-13 18:53:02 +00:00
###
# TODO: when creating networks table entries, create a default netname
# See makenetworks command and networks.pm plugin
###
2007-11-26 20:30:00 +00:00
{ attr_name = > 'netname' ,
2007-10-26 22:44:33 +00:00
tabentry = > 'networks.netname' ,
2007-11-26 20:30:00 +00:00
access_tabentry = > 'networks.netname=attr:netname' ,
2008-02-21 21:10:35 +00:00
} ,
2007-11-26 20:30:00 +00:00
{ attr_name = > 'net' ,
2007-10-26 22:44:33 +00:00
tabentry = > 'networks.net' ,
2007-11-26 20:30:00 +00:00
access_tabentry = > 'networks.netname=attr:netname' ,
2008-03-20 18:38:50 +00:00
} ,
2007-11-26 20:30:00 +00:00
{ attr_name = > 'mask' ,
2007-10-26 22:44:33 +00:00
tabentry = > 'networks.mask' ,
2007-11-26 20:30:00 +00:00
access_tabentry = > 'networks.netname=attr:netname' ,
2008-07-29 17:51:33 +00:00
} ,
{ attr_name = > 'mgtifname' ,
tabentry = > 'networks.mgtifname' ,
access_tabentry = > 'networks.netname=attr:netname' ,
2008-03-20 18:38:50 +00:00
} ,
2007-11-26 20:30:00 +00:00
{ attr_name = > 'gateway' ,
2007-10-26 22:44:33 +00:00
tabentry = > 'networks.gateway' ,
2007-11-26 20:30:00 +00:00
access_tabentry = > 'networks.netname=attr:netname' ,
2008-03-20 18:38:50 +00:00
} ,
2007-11-26 20:30:00 +00:00
{ attr_name = > 'dhcpserver' ,
2007-10-26 22:44:33 +00:00
tabentry = > 'networks.dhcpserver' ,
2007-11-26 20:30:00 +00:00
access_tabentry = > 'networks.netname=attr:netname' ,
2008-03-20 18:38:50 +00:00
} ,
2007-11-26 20:30:00 +00:00
{ attr_name = > 'tftpserver' ,
2007-10-26 22:44:33 +00:00
tabentry = > 'networks.tftpserver' ,
2007-11-26 20:30:00 +00:00
access_tabentry = > 'networks.netname=attr:netname' ,
2008-03-20 18:38:50 +00:00
} ,
2007-11-26 20:30:00 +00:00
{ attr_name = > 'nameservers' ,
2007-10-26 22:44:33 +00:00
tabentry = > 'networks.nameservers' ,
2007-11-26 20:30:00 +00:00
access_tabentry = > 'networks.netname=attr:netname' ,
2008-03-20 18:38:50 +00:00
} ,
2012-08-06 10:00:48 +00:00
{ attr_name = > 'ntpservers' ,
tabentry = > 'networks.ntpservers' ,
access_tabentry = > 'networks.netname=attr:netname' ,
} ,
{ attr_name = > 'logservers' ,
tabentry = > 'networks.logservers' ,
access_tabentry = > 'networks.netname=attr:netname' ,
} ,
2007-11-26 20:30:00 +00:00
{ attr_name = > 'dynamicrange' ,
2007-10-26 22:44:33 +00:00
tabentry = > 'networks.dynamicrange' ,
2007-11-26 20:30:00 +00:00
access_tabentry = > 'networks.netname=attr:netname' ,
2011-02-18 20:01:39 +00:00
} ,
2012-08-06 10:00:48 +00:00
{ attr_name = > 'nodehostname' ,
tabentry = > 'networks.nodehostname' ,
access_tabentry = > 'networks.netname=attr:netname' ,
} ,
{ attr_name = > 'ddnsdomain' ,
tabentry = > 'networks.ddnsdomain' ,
access_tabentry = > 'networks.netname=attr:netname' ,
} ,
2011-02-18 20:01:39 +00:00
{ attr_name = > 'vlanid' ,
tabentry = > 'networks.vlanid' ,
access_tabentry = > 'networks.netname=attr:netname' ,
2011-05-02 18:45:26 +00:00
} ,
{ attr_name = > 'domain' ,
tabentry = > 'networks.domain' ,
access_tabentry = > 'networks.netname=attr:netname' ,
2012-09-27 13:53:15 +00:00
} ,
{ attr_name = > 'staticrange' ,
tabentry = > 'networks.staticrange' ,
access_tabentry = > 'networks.netname=attr:netname' ,
} ,
{ attr_name = > 'staticrangeincrement' ,
tabentry = > 'networks.staticrangeincrement' ,
access_tabentry = > 'networks.netname=attr:netname' ,
2008-03-20 18:38:50 +00:00
} ,
{ attr_name = > 'usercomment' ,
2007-11-26 20:30:00 +00:00
tabentry = > 'networks.comments' ,
access_tabentry = > 'networks.netname=attr:netname' ,
2008-02-21 21:10:35 +00:00
} ,
2007-10-26 22:44:33 +00:00
) ;
2012-09-27 13:53:15 +00:00
####################
# rack table #
####################
@ { $ defspec { rack } - > { 'attrs' } } = (
{ attr_name = > 'rackname' ,
tabentry = > 'rack.rackname' ,
access_tabentry = > 'rack.rackname=attr:rackname' ,
} ,
{ attr_name = > 'displayname' ,
tabentry = > 'rack.displayname' ,
access_tabentry = > 'rack.rackname=attr:rackname' ,
} ,
{ attr_name = > 'num' ,
tabentry = > 'rack.num' ,
access_tabentry = > 'rack.rackname=attr:rackname' ,
} ,
{ attr_name = > 'height' ,
tabentry = > 'rack.height' ,
access_tabentry = > 'rack.rackname=attr:rackname' ,
} ,
{ attr_name = > 'room' ,
tabentry = > 'rack.room' ,
access_tabentry = > 'rack.rackname=attr:rackname' ,
} ,
2012-10-18 11:18:54 +00:00
{ attr_name = > 'usercomment' ,
tabentry = > 'rack.comments' ,
access_tabentry = > 'rack.rackname=attr:rackname' ,
} ,
2012-09-27 13:53:15 +00:00
) ;
2010-05-27 15:13:26 +00:00
#########################
# route data object #
#########################
# routes table #
#########################
@ { $ defspec { route } - > { 'attrs' } } = (
{ attr_name = > 'routename' ,
tabentry = > 'routes.routename' ,
access_tabentry = > 'routes.routename=attr:routename' ,
} ,
{ attr_name = > 'net' ,
tabentry = > 'routes.net' ,
access_tabentry = > 'routes.routename=attr:routename' ,
} ,
{ attr_name = > 'mask' ,
tabentry = > 'routes.mask' ,
access_tabentry = > 'routes.routename=attr:routename' ,
} ,
{ attr_name = > 'gateway' ,
tabentry = > 'routes.gateway' ,
access_tabentry = > 'routes.routename=attr:routename' ,
} ,
{ attr_name = > 'ifname' ,
tabentry = > 'routes.ifname' ,
access_tabentry = > 'routes.routename=attr:routename' ,
} ,
{ attr_name = > 'usercomment' ,
tabentry = > 'routes.comments' ,
access_tabentry = > 'routes.routename=attr:routename' ,
} ,
) ;
2007-10-26 22:44:33 +00:00
2007-12-13 18:53:02 +00:00
#####################
# site data object #
#####################
2008-02-21 21:10:35 +00:00
# site table #
2007-12-13 18:53:02 +00:00
#####################
##############
# TODO: need to figure out how to handle a key for the site table.
# since this is really implemented differently than all the other
# data objects, it doesn't map as cleanly.
# change format of site table so each column is an attr and there
# is only a single row in the table keyed by xcatmaster name?
#############
2007-10-26 22:44:33 +00:00
@ { $ defspec { site } - > { 'attrs' } } = (
2007-12-13 18:53:02 +00:00
{ attr_name = > 'master' ,
2007-10-26 22:44:33 +00:00
tabentry = > 'site.value' ,
2007-12-13 18:53:02 +00:00
access_tabentry = > 'site.key=str:master' ,
description = > 'The management node' } ,
{ attr_name = > 'installdir' ,
tabentry = > 'site.value' ,
access_tabentry = > 'site.key=str:installdir' ,
description = > 'The installation directory' } ,
{ attr_name = > 'xcatdport' ,
tabentry = > 'site.value' ,
access_tabentry = > 'site.key=str:xcatdport' ,
description = > 'Port used by xcatd daemon on master' } ,
) ;
#######################
# groups data object #
#######################
2008-02-21 21:10:35 +00:00
# groups table #
2007-12-13 18:53:02 +00:00
#######################
2007-11-26 20:30:00 +00:00
@ { $ defspec { group } - > { 'attrs' } } = (
{ attr_name = > 'groupname' ,
tabentry = > 'nodegroup.groupname' ,
access_tabentry = > 'nodegroup.groupname=attr:groupname' ,
2008-02-21 21:10:35 +00:00
} ,
2008-03-20 18:38:50 +00:00
{ attr_name = > 'grouptype' ,
tabentry = > 'nodegroup.grouptype' ,
access_tabentry = > 'nodegroup.groupname=attr:groupname' ,
} ,
2012-09-27 13:53:15 +00:00
{ attr_name = > 'members' ,
2007-11-26 20:30:00 +00:00
tabentry = > 'nodegroup.members' ,
access_tabentry = > 'nodegroup.groupname=attr:groupname' ,
2008-02-21 21:10:35 +00:00
} ,
2012-09-27 13:53:15 +00:00
{ attr_name = > 'membergroups' ,
tabentry = > 'nodegroup.membergroups' ,
access_tabentry = > 'nodegroup.groupname=attr:groupname' ,
} ,
2008-03-20 18:38:50 +00:00
{ attr_name = > 'wherevals' ,
2007-11-26 20:30:00 +00:00
tabentry = > 'nodegroup.wherevals' ,
access_tabentry = > 'nodegroup.groupname=attr:groupname' ,
2008-02-21 21:10:35 +00:00
} ,
2008-03-20 18:38:50 +00:00
{ attr_name = > 'usercomment' ,
2007-11-26 20:30:00 +00:00
tabentry = > 'nodegroup.comments' ,
access_tabentry = > 'nodegroup.groupname=attr:groupname' ,
2008-02-21 21:10:35 +00:00
} ,
2007-11-26 20:30:00 +00:00
2007-12-13 18:53:02 +00:00
###
# TODO: Need to copy attrs that are common between nodes and static groups
# Ideas: make a separate data structure that is linked/copied here.
# need to figure out the perl dereferencing to make that work.
###
2008-03-20 18:38:50 +00:00
) ;
2007-11-26 20:30:00 +00:00
2008-02-12 13:54:11 +00:00
# add on the generic node attrs
push ( @ { $ defspec { group } - > { 'attrs' } } , @ nodeattrs ) ;
2007-12-13 18:53:02 +00:00
#######################
# policy data object #
#######################
2008-02-21 21:10:35 +00:00
# policy table #
2007-12-13 18:53:02 +00:00
#######################
2007-11-26 20:30:00 +00:00
@ { $ defspec { policy } - > { 'attrs' } } = (
2007-12-13 18:53:02 +00:00
###
# TODO: The policy validate subroutine in the xcatd daemon code does not
2008-02-21 21:10:35 +00:00
# sort the rules in the policy table in priority order before
2007-12-13 18:53:02 +00:00
# processing. Talk to Jarrod - I think it should.
###
2007-11-26 20:30:00 +00:00
{ attr_name = > 'priority' ,
2007-12-13 18:53:02 +00:00
tabentry = > 'policy.priority' ,
access_tabentry = > 'policy.priority=attr:priority' ,
2008-03-20 18:38:50 +00:00
} ,
2007-11-26 20:30:00 +00:00
{ attr_name = > 'name' ,
tabentry = > 'policy.name' ,
access_tabentry = > 'policy.priority=attr:priority' ,
2008-03-20 18:38:50 +00:00
} ,
2007-11-26 20:30:00 +00:00
{ attr_name = > 'host' ,
tabentry = > 'policy.host' ,
access_tabentry = > 'policy.priority=attr:priority' ,
2008-03-20 18:38:50 +00:00
} ,
2007-11-26 20:30:00 +00:00
{ attr_name = > 'commands' ,
tabentry = > 'policy.commands' ,
access_tabentry = > 'policy.priority=attr:priority' ,
2008-03-20 18:38:50 +00:00
} ,
2007-11-26 20:30:00 +00:00
{ attr_name = > 'noderange' ,
tabentry = > 'policy.noderange' ,
access_tabentry = > 'policy.priority=attr:priority' ,
2008-03-20 18:38:50 +00:00
} ,
2007-11-26 20:30:00 +00:00
{ attr_name = > 'parameters' ,
tabentry = > 'policy.parameters' ,
access_tabentry = > 'policy.priority=attr:priority' ,
2008-03-20 18:38:50 +00:00
} ,
2007-11-26 20:30:00 +00:00
{ attr_name = > 'time' ,
tabentry = > 'policy.time' ,
access_tabentry = > 'policy.priority=attr:priority' ,
2008-03-20 18:38:50 +00:00
} ,
2007-11-26 20:30:00 +00:00
{ attr_name = > 'rule' ,
tabentry = > 'policy.rule' ,
2008-03-20 18:38:50 +00:00
access_tabentry = > 'policy.priority=attr:priority' ,
} ,
{ attr_name = > 'usercomment' ,
2007-11-26 20:30:00 +00:00
tabentry = > 'policy.comments' ,
access_tabentry = > 'policy.priority=attr:priority' ,
2008-02-21 21:10:35 +00:00
} ,
2007-11-26 20:30:00 +00:00
) ;
2007-10-26 22:44:33 +00:00
2007-12-13 18:53:02 +00:00
#############################
# notification data object #
#############################
2008-02-21 21:10:35 +00:00
# notification table #
2007-12-13 18:53:02 +00:00
#############################
2007-11-26 20:30:00 +00:00
@ { $ defspec { notification } - > { 'attrs' } } = (
2007-12-13 18:53:02 +00:00
{ attr_name = > 'filename' ,
2007-11-26 20:30:00 +00:00
tabentry = > 'notification.filename' ,
access_tabentry = > 'notification.filename=attr:filename' ,
2008-02-21 21:10:35 +00:00
} ,
2007-12-13 18:53:02 +00:00
{ attr_name = > 'tables' ,
2007-11-26 20:30:00 +00:00
tabentry = > 'notification.tables' ,
access_tabentry = > 'notification.filename=attr:filename' ,
2008-02-21 21:10:35 +00:00
} ,
2007-11-26 20:30:00 +00:00
{ attr_name = > 'tableops' ,
tabentry = > 'notification.tableops' ,
access_tabentry = > 'notification.filename=attr:filename' ,
2008-02-21 21:10:35 +00:00
} ,
2007-11-26 20:30:00 +00:00
{ attr_name = > 'comments' ,
tabentry = > 'notification.comments' ,
access_tabentry = > 'notification.filename=attr:filename' ,
2008-02-21 21:10:35 +00:00
} ,
2007-12-13 18:53:02 +00:00
) ;
2008-02-21 21:10:35 +00:00
2007-12-13 18:53:02 +00:00
###########################
# monitoring data object #
###########################
2008-02-21 21:10:35 +00:00
# monitoring table #
2007-12-13 18:53:02 +00:00
###########################
2007-12-04 20:51:58 +00:00
@ { $ defspec { monitoring } - > { 'attrs' } } = (
2008-01-14 17:10:14 +00:00
{ attr_name = > 'name' ,
tabentry = > 'monitoring.name' ,
access_tabentry = > 'monitoring.name=attr:name' ,
2008-02-21 21:10:35 +00:00
} ,
2007-12-04 20:51:58 +00:00
{ attr_name = > 'nodestatmon' ,
tabentry = > 'monitoring.nodestatmon' ,
2008-01-14 17:10:14 +00:00
access_tabentry = > 'monitoring.name=attr:name' ,
2008-02-21 21:10:35 +00:00
} ,
2007-12-04 20:51:58 +00:00
{ attr_name = > 'comments' ,
tabentry = > 'monitoring.comments' ,
2008-01-14 17:10:14 +00:00
access_tabentry = > 'monitoring.name=attr:name' ,
2008-02-21 21:10:35 +00:00
} ,
2008-06-24 14:14:30 +00:00
{ attr_name = > 'disable' ,
tabentry = > 'monitoring.disable' ,
access_tabentry = > 'monitoring.name=attr:name' ,
} ,
2007-12-04 20:51:58 +00:00
) ;
2007-12-13 18:53:02 +00:00
2009-01-28 18:49:02 +00:00
@ { $ defspec { eventlog } - > { 'attrs' } } = (
{ attr_name = > 'recid' ,
tabentry = > 'eventlog.recid' ,
access_tabentry = > 'eventlog.recid=attr:recid' ,
} ,
{ attr_name = > 'eventtime' ,
tabentry = > 'eventlog.eventtime' ,
access_tabentry = > 'eventlog.recid=attr:recid' ,
} ,
2009-01-29 02:41:02 +00:00
{ attr_name = > 'eventtype' ,
tabentry = > 'eventlog.eventtype' ,
access_tabentry = > 'eventlog.recid=attr:recid' ,
} ,
2009-01-28 18:49:02 +00:00
{ attr_name = > 'monitor' ,
tabentry = > 'eventlog.monitor' ,
access_tabentry = > 'eventlog.recid=attr:recid' ,
} ,
{ attr_name = > 'monnode' ,
tabentry = > 'eventlog.monnode' ,
access_tabentry = > 'eventlog.recid=attr:recid' ,
} ,
{ attr_name = > 'node' ,
tabentry = > 'eventlog.node' ,
access_tabentry = > 'eventlog.recid=attr:recid' ,
} ,
{ attr_name = > 'application' ,
tabentry = > 'eventlog.application' ,
access_tabentry = > 'eventlog.recid=attr:recid' ,
} ,
{ attr_name = > 'component' ,
tabentry = > 'eventlog.component' ,
access_tabentry = > 'eventlog.recid=attr:recid' ,
} ,
{ attr_name = > 'id' ,
tabentry = > 'eventlog.id' ,
access_tabentry = > 'eventlog.recid=attr:recid' ,
} ,
{ attr_name = > 'severity' ,
tabentry = > 'eventlog.severity' ,
access_tabentry = > 'eventlog.recid=attr:recid' ,
} ,
{ attr_name = > 'message' ,
tabentry = > 'eventlog.message' ,
access_tabentry = > 'eventlog.recid=attr:recid' ,
} ,
{ attr_name = > 'rawdata' ,
tabentry = > 'eventlog.rawdata' ,
access_tabentry = > 'eventlog.recid=attr:recid' ,
} ,
{ attr_name = > 'comments' ,
tabentry = > 'eventlog.comments' ,
access_tabentry = > 'eventlog.recid=attr:recid' ,
} ,
{ attr_name = > 'disable' ,
tabentry = > 'eventlog.disable' ,
access_tabentry = > 'eventlog.recid=attr:recid' ,
} ,
) ;
2012-09-27 13:53:15 +00:00
#############################
# auditlog object #
#############################
# auditlog table #
#############################
2008-09-30 20:00:46 +00:00
2010-03-01 17:37:50 +00:00
@ { $ defspec { auditlog } - > { 'attrs' } } = (
{ attr_name = > 'recid' ,
tabentry = > 'auditlog.recid' ,
access_tabentry = > 'auditlog.recid=attr:recid' ,
} ,
{ attr_name = > 'audittime' ,
tabentry = > 'auditlog.audittime' ,
access_tabentry = > 'auditlog.recid=attr:recid' ,
} ,
{ attr_name = > 'userid' ,
tabentry = > 'auditlog.userid' ,
access_tabentry = > 'auditlog.recid=attr:recid' ,
} ,
{ attr_name = > 'clientname' ,
tabentry = > 'auditlog.clientname' ,
access_tabentry = > 'auditlog.recid=attr:recid' ,
} ,
{ attr_name = > 'clienttype' ,
tabentry = > 'auditlog.clienttype' ,
access_tabentry = > 'auditlog.recid=attr:recid' ,
} ,
{ attr_name = > 'command' ,
tabentry = > 'auditlog.command' ,
access_tabentry = > 'auditlog.recid=attr:recid' ,
} ,
{ attr_name = > 'noderange' ,
tabentry = > 'auditlog.noderange' ,
access_tabentry = > 'auditlog.recid=attr:recid' ,
} ,
{ attr_name = > 'args' ,
tabentry = > 'auditlog.args' ,
access_tabentry = > 'auditlog.recid=attr:recid' ,
} ,
{ attr_name = > 'status' ,
tabentry = > 'auditlog.status' ,
access_tabentry = > 'auditlog.recid=attr:recid' ,
} ,
{ attr_name = > 'comments' ,
tabentry = > 'auditlog.comments' ,
access_tabentry = > 'auditlog.recid=attr:recid' ,
} ,
{ attr_name = > 'disable' ,
tabentry = > 'auditlog.disable' ,
access_tabentry = > 'auditlog.recid=attr:recid' ,
} ,
) ;
2012-09-27 13:53:15 +00:00
#############################
# firmware object #
#############################
# firmware table #
#############################
2010-03-01 17:37:50 +00:00
2010-06-01 14:52:34 +00:00
@ { $ defspec { firmware } - > { 'attrs' } } =
(
{ attr_name = > 'cfgfile' ,
tabentry = > 'firmware.cfgfile' ,
access_tabentry = > 'firmware.file=attr:cfgfile' ,
} ,
{ attr_name = > 'comments' ,
tabentry = > 'firmware.comments' ,
access_tabentry = > 'firmware.file=attr:cfgfile' ,
} ,
{ attr_name = > 'disable' ,
tabentry = > 'auditlog.disable' ,
access_tabentry = > 'firmware.file=attr:cfgfile' ,
} ,
) ;
2012-09-27 13:53:15 +00:00
#############################
# osdistro object #
#############################
2012-08-30 08:55:17 +00:00
@ { $ defspec { osdistro } - > { 'attrs' } } = (
{ attr_name = > 'osdistroname' ,
tabentry = > 'osdistro.osdistroname' ,
access_tabentry = > 'osdistro.osdistroname=attr:osdistroname' ,
} ,
{ attr_name = > 'basename' ,
tabentry = > 'osdistro.basename' ,
access_tabentry = > 'osdistro.osdistroname=attr:osdistroname' ,
} ,
{ attr_name = > 'majorversion' ,
tabentry = > 'osdistro.majorversion' ,
access_tabentry = > 'osdistro.osdistroname=attr:osdistroname' ,
} ,
{ attr_name = > 'minorversion' ,
tabentry = > 'osdistro.minorversion' ,
access_tabentry = > 'osdistro.osdistroname=attr:osdistroname' ,
} ,
{ attr_name = > 'arch' ,
tabentry = > 'osdistro.arch' ,
access_tabentry = > 'osdistro.osdistroname=attr:osdistroname' ,
} ,
2012-09-27 13:53:15 +00:00
2012-08-30 08:55:17 +00:00
{ attr_name = > 'type' ,
tabentry = > 'osdistro.type' ,
access_tabentry = > 'osdistro.osdistroname=attr:osdistroname' ,
} ,
{ attr_name = > 'dirpaths' ,
tabentry = > 'osdistro.dirpaths' ,
access_tabentry = > 'osdistro.osdistroname=attr:osdistroname' ,
} ,
) ;
2009-01-09 22:25:35 +00:00
2012-09-27 13:53:15 +00:00
#############################
# kit object #
#############################
# kit table #
#############################
@ { $ defspec { kit } - > { 'attrs' } } = (
{ attr_name = > 'kitname' ,
tabentry = > 'kit.kitname' ,
access_tabentry = > 'kit.kitname=attr:kitname' ,
} ,
{ attr_name = > 'name' ,
tabentry = > 'kit.name' ,
access_tabentry = > 'kit.kitname=attr:kitname' ,
} ,
2012-11-12 20:04:28 +00:00
{ attr_name = > 'description' ,
tabentry = > 'kit.description' ,
2012-09-27 13:53:15 +00:00
access_tabentry = > 'kit.kitname=attr:kitname' ,
} ,
{ attr_name = > 'version' ,
tabentry = > 'kit.version' ,
access_tabentry = > 'kit.kitname=attr:kitname' ,
} ,
{ attr_name = > 'ostype' ,
tabentry = > 'kit.ostype' ,
access_tabentry = > 'kit.kitname=attr:kitname' ,
} ,
{ attr_name = > 'isinternal' ,
tabentry = > 'kit.isinternal' ,
access_tabentry = > 'kit.kitname=attr:kitname' ,
} ,
{ attr_name = > 'kitdeployparams' ,
tabentry = > 'kit.kitdeployparams' ,
access_tabentry = > 'kit.kitname=attr:kitname' ,
} ,
) ;
#############################
# kitrepo object #
#############################
# kitrepo table #
#############################
@ { $ defspec { kitrepo } - > { 'attrs' } } = (
{ attr_name = > 'kitreponame' ,
tabentry = > 'kitrepo.kitreponame' ,
access_tabentry = > 'kitrepo.kitreponame=attr:kitreponame' ,
} ,
{ attr_name = > 'kitname' ,
tabentry = > 'kitrepo.kitname' ,
access_tabentry = > 'kitrepo.kitreponame=attr:kitreponame' ,
} ,
{ attr_name = > 'osname' ,
tabentry = > 'kitrepo.osname' ,
access_tabentry = > 'kitrepo.kitreponame=attr:kitreponame' ,
} ,
{ attr_name = > 'osmajorversion' ,
tabentry = > 'kitrepo.osmajorversion' ,
access_tabentry = > 'kitrepo.kitreponame=attr:kitreponame' ,
} ,
{ attr_name = > 'osminorversion' ,
tabentry = > 'kitrepo.osminorversion' ,
access_tabentry = > 'kitrepo.kitreponame=attr:kitreponame' ,
} ,
{ attr_name = > 'osarch' ,
tabentry = > 'kitrepo.osarch' ,
access_tabentry = > 'kitrepo.kitreponame=attr:kitreponame' ,
} ,
{ attr_name = > 'compat_osbasenames' ,
tabentry = > 'kitrepo.compat_osbasenames' ,
access_tabentry = > 'kitrepo.kitreponame=attr:kitreponame' ,
} ,
{ attr_name = > 'kitrepodir' ,
tabentry = > 'kitrepo.kitrepodir' ,
access_tabentry = > 'kitrepo.kitreponame=attr:kitreponame' ,
} ,
) ;
#############################
#############################
# kitcomponent object #
#############################
# kitcomponent table #
#############################
@ { $ defspec { kitcomponent } - > { 'attrs' } } = (
{ attr_name = > 'kitcompname' ,
tabentry = > 'kitcomponent.kitcompname' ,
access_tabentry = > 'kitcomponent.kitcompname=attr:kitcompname' ,
} ,
2012-11-12 20:04:28 +00:00
{ attr_name = > 'description' ,
tabentry = > 'kitcomponent.description' ,
2012-09-27 13:53:15 +00:00
access_tabentry = > 'kitcomponent.kitcompname=attr:kitcompname' ,
} ,
{ attr_name = > 'kitname' ,
tabentry = > 'kitcomponent.kitname' ,
access_tabentry = > 'kitcomponent.kitcompname=attr:kitcompname' ,
} ,
{ attr_name = > 'kitreponame' ,
tabentry = > 'kitcomponent.kitrepoid' ,
access_tabentry = > 'kitcomponent.kitcompname=attr:kitcompname' ,
} ,
{ attr_name = > 'basename' ,
tabentry = > 'kitcomponent.basename' ,
access_tabentry = > 'kitcomponent.kitcompname=attr:kitcompname' ,
} ,
{ attr_name = > 'version' ,
tabentry = > 'kitcomponent.version' ,
access_tabentry = > 'kitcomponent.kitcompname=attr:kitcompname' ,
} ,
{ attr_name = > 'release' ,
tabentry = > 'kitcomponent.release' ,
access_tabentry = > 'kitcomponent.kitcompname=attr:kitcompname' ,
} ,
{ attr_name = > 'serverroles' ,
tabentry = > 'kitcomponent.serverroles' ,
access_tabentry = > 'kitcomponent.kitcompname=attr:kitcompname' ,
} ,
{ attr_name = > 'kitpkgdeps' ,
tabentry = > 'kitcomponent.kitpkgdeps' ,
access_tabentry = > 'kitcomponent.kitcompname=attr:kitcompname' ,
} ,
{ attr_name = > 'driverpacks' ,
tabentry = > 'kitcomponent.driverpacks' ,
access_tabentry = > 'kitcomponent.kitcompname=attr:kitcompname' ,
} ,
{ attr_name = > 'kitcompdeps' ,
tabentry = > 'kitcomponent.kitcompdeps' ,
access_tabentry = > 'kitcomponent.kitcompname=attr:kitcompname' ,
} ,
{ attr_name = > 'postbootscripts' ,
tabentry = > 'kitcomponent.postbootscripts' ,
access_tabentry = > 'kitcomponent.kitcompname=attr:kitcompname' ,
} ,
{ attr_name = > 'exlist' ,
tabentry = > 'kitcomponent.exlist' ,
access_tabentry = > 'kitcomponent.kitcompname=attr:kitcompname' ,
} ,
) ;
###################################################
2009-01-09 22:25:35 +00:00
###################################################
# adding user defined external defspec
##################################################
foreach my $ objname ( keys ( % xCAT:: ExtTab:: ext_defspec ) ) {
if ( exists ( $ xCAT:: ExtTab:: ext_defspec { $ objname } - > { 'attrs' } ) ) {
if ( exists ( $ defspec { $ objname } ) ) {
my @ extattr = @ { $ xCAT:: ExtTab:: ext_defspec { $ objname } - > { 'attrs' } } ;
my @ attr = @ { $ defspec { $ objname } - > { 'attrs' } } ;
my % tmp_hash = ( ) ;
foreach my $ orig ( @ attr ) {
my $ attrname = $ orig - > { attr_name } ;
$ tmp_hash { $ attrname } = 1 ;
}
foreach ( @ extattr ) {
my $ attrname = $ _ - > { attr_name } ;
if ( exists ( $ tmp_hash { $ attrname } ) ) {
xCAT::MsgUtils - > message ( 'ES' , "\n Warning: Conflict when adding user defined defspec. Attribute name $attrname is already defined in object $objname. \n" ) ;
} else {
push ( @ { $ defspec { $ objname } - > { 'attrs' } } , $ _ ) ;
}
}
} else {
$ defspec { $ objname } = $ xCAT:: ExtTab:: ext_defspec { $ objname } ;
}
}
}
#print "\ndefspec:\n";
#foreach(%xCAT::Schema::defspec) {
# print " $_:\n";
# my @attr=@{$xCAT::Schema::defspec{$_}->{'attrs'}};
# foreach my $h (@attr) {
# print " " . $h->{attr_name} . "\n";
# }
#}
2008-09-30 20:00:46 +00:00
2007-12-13 18:53:02 +00:00
# Build a corresponding hash for the attribute names to make
# definition access easier
foreach ( keys % xCAT:: Schema:: defspec ) {
my $ dataobj = $ xCAT:: Schema:: defspec { $ _ } ;
my $ this_attr ;
foreach $ this_attr ( @ { $ dataobj - > { 'attrs' } } ) {
$ dataobj - > { attrhash } - > { $ this_attr - > { attr_name } } = $ this_attr ;
}
} ;
1 ;
2008-03-20 18:38:50 +00:00