From d464001ca138d51ab8dfa23e906e1946a3dd8a37 Mon Sep 17 00:00:00 2001 From: jjhua Date: Tue, 22 Oct 2013 14:29:56 -0400 Subject: [PATCH] Add the chef-client to invoke the config_chef_client script --- xCAT/postscripts/chef-client | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 xCAT/postscripts/chef-client diff --git a/xCAT/postscripts/chef-client b/xCAT/postscripts/chef-client new file mode 100755 index 000000000..834b78f3f --- /dev/null +++ b/xCAT/postscripts/chef-client @@ -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 +#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;