2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-23 19:50:21 +00:00

Add node attribute 'syslog', avoid the syslog configuration for certain node

This commit is contained in:
XuWei
2016-03-22 04:12:03 -04:00
parent e8f3a2b295
commit ee67e2eafd
3 changed files with 3447 additions and 3419 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -44,6 +44,9 @@ export PRIMARYNIC
MASTER=#TABLE:noderes:$NODE:xcatmaster#
export MASTER
SYSLOG=#TABLE:noderes:$NODE:syslog#
export SYSLOG
NODEROUTENAMES=#TABLE:noderes:$NODE:routenames#
export NODEROUTENAMES

View File

@@ -13,6 +13,13 @@
# OSVER: possible values are sles10, fedora8, redhat5, aix etc.
#=cut
#-------------------------------------------------------------------------------
if [ "$SYSLOG" = "ignore" ]; then
echo "The value of syslog is '$SYSLOG'."
exit 0
elif [ -n "$SYSLOG" ]; then
echo "Warning: The value of syslog '$SYSLOG' is not supported, but will still run syslog script."
fi
if [ "$(uname -s|tr 'A-Z' 'a-z')" = "linux" ];then
str_dir_name=`dirname $0`
. $str_dir_name/xcatlib.sh