chef client/workstation installation based on the cfgmgt table

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16888 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jjhua 2013-07-05 03:28:53 +00:00
parent 55fc5d4064
commit 23d64d7acc
5 changed files with 22 additions and 13 deletions

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/sh
# IBM(c) 2013 EPL license http://www.eclipse.org/legal/epl-v10.html
@ -20,8 +20,10 @@ if [ $ARGNUM -gt 1 ]; then
fi
if [ -z "$chef_server" ]; then
if [ -n "$CFGSERVER" ]; then
chef_server=$CFGSERVER
if [ -n "$CFGSERVER" -a -n "$CFGMGR" ]; then
if [ $CFGMGR = "chef" ]; then
chef_server=$CFGSERVER
fi
fi
if [ -z "$chef_server" ]
then

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/sh
# IBM(c) 2013 EPL license http://www.eclipse.org/legal/epl-v10.html
@ -24,9 +24,10 @@ fi
if [ -z "$chefserver" ]
then
if [ -n "$CFGSERVER" ]
then
chefserver=$CFGSERVER
if [ -n "$CFGSERVER" -a -n "$CFGMGR" ]; then
if [ $CFGMGR = "chef" ]; then
chefserver=$CFGSERVER
fi
fi
if [ -z "$chefserver" ]
then

View File

@ -52,9 +52,10 @@ fi
if [ -z "$chefserver" ]
then
if [ -n "$CFGSERVER" ]
then
chefserver=$CFGSERVER
if [ -n "$CFGSERVER" -a -n "$CFGMGR" ]; then
if [ $CFGMGR = "chef" ]; then
chefserver=$CFGSERVER
fi
fi
if [ -z "$chefserver" ]
then

View File

@ -53,9 +53,10 @@ fi
if [ -z "$chefserver" ]
then
if [ -n "$CFGSERVER" ]
then
chefserver=$CFGSERVER
if [ -n "$CFGSERVER" -a -n "$CFGMGR" ]; then
if [ $CFGMGR = "chef" ]; then
chefserver=$CFGSERVER
fi
fi
if [ -z "$chefserver" ]
then

View File

@ -77,6 +77,7 @@ export NTYPE
MACADDRESS=#TABLE:mac:$NODE:mac#
export MACADDRESS
## vlan related items. vlan may not be configured.
#VLAN_VARS_EXPORT#
@ -114,6 +115,9 @@ export NICCUSTOMSCRIPTS
NICNETWORKS=#TABLE:nics:$NODE:nicnetworks#
export NICNETWORKS
CFGMGR=#TABLE:cfgmgt:$NODE:cfgmgr#
export CFGMGR
CFGSERVER=#TABLE:cfgmgt:$NODE:cfgserver#
export CFGSERVER