From 78bde6f6f78d86f8b38a30fd422a5eb95f0a5f52 Mon Sep 17 00:00:00 2001 From: jjhua Date: Tue, 17 Dec 2013 14:16:58 -0500 Subject: [PATCH] if we set up the chef-server during os provision, there are some error messages in the /var/log/messages on the management node. Fixed it. --- xCAT-OpenStack/postscripts/loadclouddata | 3 ++- xCAT/postscripts/config_chef_workstation | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/xCAT-OpenStack/postscripts/loadclouddata b/xCAT-OpenStack/postscripts/loadclouddata index 36b0c136a..3f8de9c7e 100755 --- a/xCAT-OpenStack/postscripts/loadclouddata +++ b/xCAT-OpenStack/postscripts/loadclouddata @@ -38,7 +38,8 @@ hkeys() { set | grep -o "^HASH${1}[[:alnum:]]*=" | sed -re "s/^HASH${1}(.*)=/\\1/g" } - +HOME='/root/' +export HOME #flags run_all=0 diff --git a/xCAT/postscripts/config_chef_workstation b/xCAT/postscripts/config_chef_workstation index 5adbf68c8..885fb3f0d 100755 --- a/xCAT/postscripts/config_chef_workstation +++ b/xCAT/postscripts/config_chef_workstation @@ -8,6 +8,8 @@ # It is used by install_chef_workstation on Ubuntu and chef kit on RH. #=cut #------------------------------------------------------------------------------- +HOME='/root/' +export HOME node=`hostname`