chef client/workstation installation based on the cfgmgt table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16887 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
5f35f1d961
commit
7aabf34d76
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user