do some enchancement

This commit is contained in:
huweihua 2014-12-16 00:29:02 -05:00
parent f3ba9ab3eb
commit 4b7ac9d9b8
2 changed files with 4 additions and 0 deletions

View File

@ -1,6 +1,8 @@
start:reg_linux_diskfull_installation_flat
os:Linux
cmd:if ping -c 1 $$SN > /dev/null;then rpower $$SN off > /dev/null;fi
cmd:chdef -t node -o $$CN servicenode= monserver=$$MN nfsserver=$$MN tftpserver=$$MN xcatmaster=$$MN
check:rc==0

View File

@ -1,6 +1,8 @@
start:reg_linux_statelite_installation_hierarchy
os:Linux
cmd:MNIP=`cat /etc/hosts|grep $$MN|awk '{print $1}'`;sed -i "s:nameserver .*:nameserver $MNIP:g" /etc/resolv.conf
cmd:chdef -t node -o $$CN servicenode=$$SN monserver=$$SN nfsserver=$$SN tftpserver=$$SN xcatmaster=$$SN
check:rc==0
cmd:chdef -t node $$SN groups=service,all