Add the chef-client to invoke the config_chef_client script
This commit is contained in:
parent
f8daa39253
commit
d464001ca1
20
xCAT/postscripts/chef-client
Executable file
20
xCAT/postscripts/chef-client
Executable file
@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
|
||||
#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-nodes> 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;
|
Loading…
Reference in New Issue
Block a user