#!/bin/bash #This script will invoke the config_chef_client directly. #If the chef-server and chef-client are installed successfully at first, #and then on the chef-server node configure the software for the chef-client nodes. #We can run # updatenode chef-client #To configure the softare on the chef-client node. ./config_chef_client if [ $? -ne 0 ] then errmsg="Failed to run the postscript ./config_chef_client on $node" logger -t xcat -p local4.err $errmsg echo $errmsg exit 1 fi exit 0;