diff --git a/xCAT/postscripts/config_chef_client b/xCAT/postscripts/config_chef_client index fcf6a102f..d159f9043 100755 --- a/xCAT/postscripts/config_chef_client +++ b/xCAT/postscripts/config_chef_client @@ -20,7 +20,11 @@ if [ $ARGNUM -gt 1 ]; then fi if [ -z "$chef_server" ]; then - if [ -n "$CHEFSERVER" ]; then + if [ -n "$CFGSERVER" ]; then + chef_server=$CFGSERVER + fi + if [ -z "$chef_server" ] + then chef_server=$CHEFSERVER fi if [ -z "$chef_server" ]; then diff --git a/xCAT/postscripts/config_chef_workstation b/xCAT/postscripts/config_chef_workstation index 2763fec7c..c75b197d8 100755 --- a/xCAT/postscripts/config_chef_workstation +++ b/xCAT/postscripts/config_chef_workstation @@ -24,7 +24,11 @@ fi if [ -z "$chefserver" ] then - if [ -n "$CHEFSERVER" ] + if [ -n "$CFGSERVER" ] + then + chefserver=$CFGSERVER + fi + if [ -z "$chefserver" ] then chefserver=$CHEFSERVER fi diff --git a/xCAT/postscripts/install_chef_client b/xCAT/postscripts/install_chef_client index 337ff90fd..c340d77c0 100755 --- a/xCAT/postscripts/install_chef_client +++ b/xCAT/postscripts/install_chef_client @@ -52,7 +52,11 @@ fi if [ -z "$chefserver" ] then - if [ -n "$CHEFSERVER" ] + if [ -n "$CFGSERVER" ] + then + chefserver=$CFGSERVER + fi + if [ -z "$chefserver" ] then chefserver=$CHEFSERVER fi diff --git a/xCAT/postscripts/install_chef_workstation b/xCAT/postscripts/install_chef_workstation index 062692a77..1639610b1 100755 --- a/xCAT/postscripts/install_chef_workstation +++ b/xCAT/postscripts/install_chef_workstation @@ -53,7 +53,11 @@ fi if [ -z "$chefserver" ] then - if [ -n "$CHEFSERVER" ] + if [ -n "$CFGSERVER" ] + then + chefserver=$CFGSERVER + fi + if [ -z "$chefserver" ] then chefserver=$CHEFSERVER fi diff --git a/xCAT/templates/mypostscript/mypostscript.tmpl b/xCAT/templates/mypostscript/mypostscript.tmpl index 74839e002..8615698df 100755 --- a/xCAT/templates/mypostscript/mypostscript.tmpl +++ b/xCAT/templates/mypostscript/mypostscript.tmpl @@ -114,6 +114,8 @@ export NICCUSTOMSCRIPTS NICNETWORKS=#TABLE:nics:$NODE:nicnetworks# export NICNETWORKS +CFGSERVER=#TABLE:cfgmgt:$NODE:cfgserver# +export CFGSERVER ##