2012-10-12 08:08:56 +00:00
|
|
|
|
|
|
|
## beginning of all attributes from the site table
|
|
|
|
|
|
|
|
#SITE_TABLE_ALL_ATTRIBS_EXPORT#
|
|
|
|
|
|
|
|
## end of all attributes from the site table
|
|
|
|
|
|
|
|
## One variable:
|
|
|
|
## There is a complex loglic to get the value of variable, and
|
|
|
|
## if there is one subroutine in one module,
|
|
|
|
## mark it as the following syntax.
|
|
|
|
|
|
|
|
ENABLESSHBETWEENNODES=#Subroutine:xCAT::Template::enablesshbetweennodes:$NODE#
|
|
|
|
export ENABLESSHBETWEENNODES
|
|
|
|
|
2012-12-12 06:54:14 +00:00
|
|
|
## tabdump(<TABLENAME>) is used to get all the information in the <TABLENAME> table
|
|
|
|
## The <TABLENAME> only could be non-"node key" table and two keys table, such as networks, passwd.
|
|
|
|
## And <TABLENAME> also couldn't be log related tables.
|
|
|
|
## The site table is used so frequent that the <TABLENAME> couldn't be the site table.
|
|
|
|
## And if the key is the node, you should use #TABLE...# instead of tabdump().
|
2012-12-14 02:57:06 +00:00
|
|
|
## And each attribute=value pair will be delimited by '||' .
|
2012-12-12 06:54:14 +00:00
|
|
|
## We may put special characters in the comments attribute.
|
|
|
|
## So the comments attribute will be put as the last in the list,
|
|
|
|
## and the parsing should be more carefull.
|
|
|
|
tabdump(networks)
|
2012-10-12 08:08:56 +00:00
|
|
|
|
2012-12-05 08:29:48 +00:00
|
|
|
NODE=$NODE
|
2012-10-12 08:08:56 +00:00
|
|
|
export NODE
|
|
|
|
|
2012-12-12 06:54:14 +00:00
|
|
|
|
2012-10-26 13:51:55 +00:00
|
|
|
## nfsserver,installnic,primarynic,routenames from the noderes tab
|
|
|
|
NFSSERVER=#TABLE:noderes:$NODE:nfsserver#
|
2012-10-12 08:08:56 +00:00
|
|
|
export NFSSERVER
|
2012-10-26 13:51:55 +00:00
|
|
|
INSTALLNIC=#TABLE:noderes:$NODE:installnic#
|
2012-10-12 08:08:56 +00:00
|
|
|
export INSTALLNIC
|
2012-10-26 13:51:55 +00:00
|
|
|
PRIMARYNIC=#TABLE:noderes:$NODE:primarynic#
|
2012-10-12 08:08:56 +00:00
|
|
|
export PRIMARYNIC
|
2012-10-26 13:51:55 +00:00
|
|
|
|
|
|
|
MASTER=#TABLE:noderes:$NODE:xcatmaster#
|
|
|
|
export MASTER
|
|
|
|
|
|
|
|
NODEROUTENAMES=#TABLE:noderes:$NODE:routenames#
|
|
|
|
export NODEROUTENAMES
|
2012-10-12 08:08:56 +00:00
|
|
|
## examples:
|
|
|
|
## NFSSERVER=9.114.34.108
|
|
|
|
## export NFSSERVER
|
|
|
|
## INSTALLNIC=mac
|
|
|
|
## export INSTALLNIC
|
|
|
|
## PRIMARYNIC=mac
|
|
|
|
## export PRIMARYNIC
|
|
|
|
|
|
|
|
## The number of the variables is uncertain. In some case, it will be blank.
|
|
|
|
## Complex logic
|
|
|
|
## The syntax will be #FLAG#.
|
|
|
|
#ROUTES_VARS_EXPORT#
|
|
|
|
|
|
|
|
## The details will be as follows or blank.
|
|
|
|
## NODEROUTENAMES=$NODE_routenames
|
|
|
|
## export NODEROUTENAMES
|
|
|
|
## ...
|
|
|
|
|
|
|
|
## osver, arch, profile export
|
2012-10-26 13:51:55 +00:00
|
|
|
OSVER=#TABLE:nodetype:$NODE:os#
|
2012-10-12 08:08:56 +00:00
|
|
|
export OSVER
|
2012-10-26 13:51:55 +00:00
|
|
|
ARCH=#TABLE:nodetype:$NODE:arch#
|
2012-10-12 08:08:56 +00:00
|
|
|
export ARCH
|
2012-10-26 13:51:55 +00:00
|
|
|
PROFILE=#TABLE:nodetype:$NODE:profile#
|
2012-10-12 08:08:56 +00:00
|
|
|
export PROFILE
|
2012-10-26 13:51:55 +00:00
|
|
|
PROVMETHOD=#TABLE:nodetype:$NODE:provmethod#
|
|
|
|
export PROVMETHOD
|
2012-10-12 08:08:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
PATH=`dirname $0`:$PATH
|
|
|
|
export PATH
|
|
|
|
|
|
|
|
NODESETSTATE=#Subroutine:xCAT::Postage::getnodesetstate:$NODE#
|
|
|
|
export NODESETSTATE
|
|
|
|
|
|
|
|
UPDATENODE=0
|
|
|
|
export UPDATENODE
|
|
|
|
|
2012-12-05 08:29:48 +00:00
|
|
|
NTYPE=$NTYPE
|
2012-10-12 08:08:56 +00:00
|
|
|
export NTYPE
|
|
|
|
|
|
|
|
MACADDRESS=#TABLE:mac:$NODE:mac#
|
|
|
|
export MACADDRESS
|
|
|
|
|
|
|
|
## vlan related items. It may not be configured by the users.
|
|
|
|
#VLAN_VARS_EXPORT#
|
|
|
|
|
|
|
|
## the details of VLAN_VARS_EXPORT will be looked like:
|
|
|
|
## VMNODE='YES'
|
|
|
|
## export VMNODE
|
|
|
|
## VLANID=vlan1...
|
|
|
|
## export VLANID
|
|
|
|
## VLANHOSTNAME=..
|
|
|
|
## ..
|
|
|
|
|
|
|
|
## get monitoring server and other configuration data for monitoring setup on nodes
|
|
|
|
#MONITORING_VARS_EXPORT#
|
|
|
|
|
|
|
|
## the details will be looked like as follows
|
|
|
|
## MONSERVER=9.114.34.108
|
|
|
|
## export MONSERVER
|
|
|
|
## MONMASTER=9.114.34.108
|
|
|
|
## export MONMASTER
|
|
|
|
|
|
|
|
## get the osimage related variables, such as ospkgdir, ospkgs ...
|
|
|
|
#OSIMAGE_VARS_EXPORT#
|
|
|
|
## examples:
|
|
|
|
## OSPKGDIR=/install/rhels6.2/ppc64
|
|
|
|
## export OSPKGDIR
|
|
|
|
## OSPKGS='bash,nfs-utils,openssl,dhclient,kernel,openssh-server,openssh-clients,busybox,wget,rsyslog,dash,vim-minimal,ntp,rsyslog,rpm,rsync,ppc64-utils,iputils,dracut,dracut-network,e2fsprogs,bc,lsvpd,irqbalance,procps,yum'
|
|
|
|
## export OSPKGS
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## get the diskless networks information. There may be no information.
|
|
|
|
#NETWORK_FOR_DISKLESS_EXPORT#
|
|
|
|
|
|
|
|
## examples of NETWORK_FOR_DISKLESS_EXPORT
|
|
|
|
## the details will be looked like:
|
|
|
|
## NETMASK=255.255.255.0
|
|
|
|
## export NETMASK
|
|
|
|
## GATEWAY=9.114.34.108
|
|
|
|
##
|
|
|
|
|
|
|
|
|
|
|
|
##
|
|
|
|
## Notice: The following flag postscripts-start-here could not be deleted from the template!!!
|
|
|
|
# postscripts-start-here
|
|
|
|
|
2012-10-26 13:51:55 +00:00
|
|
|
#INCLUDE_POSTSCRIPTS_LIST#
|
2012-10-12 08:08:56 +00:00
|
|
|
|
|
|
|
## Notice: The following flag postscripts-end-here could not be deleted from the template!!!
|
|
|
|
# postscripts-end-here
|
|
|
|
|
|
|
|
## Notice: The following flag postbootscripts-start-here could not be deleted from the template!!!
|
|
|
|
# postbootscripts-start-here
|
|
|
|
|
|
|
|
#INCLUDE_POSTBOOTSCRIPTS_LIST#
|
|
|
|
|
|
|
|
## Notice: The following flag postbootscripts-end-here could not be deleted from the template!!!
|
|
|
|
# postbootscripts-end-here
|