mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-07-09 14:21:30 +00:00
Merge pull request #826 from xuweibj/S86265
Add attribute 'syslog', avoid the syslog configuration for certain node
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user