mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-24 15:05:36 +00:00
update after review
This commit is contained in:
@ -15,7 +15,7 @@ check:output=~Version
|
||||
end
|
||||
|
||||
start:prsync_dir_node
|
||||
description: run prsync -o to copy files in dir from MN to CN
|
||||
description: run prsync to copy files in dir from MN to CN
|
||||
os:Linux
|
||||
cmd: mkdir -p /tmp/pscp
|
||||
check:rc==0
|
||||
@ -40,7 +40,7 @@ check:rc==0
|
||||
end
|
||||
|
||||
start:prsync_file_node
|
||||
description: run prsync -o to copy file from MN to CN
|
||||
description: run prsync to copy file from MN to CN
|
||||
os:Linux
|
||||
cmd: echo "prsync-test" > prsync.test
|
||||
check:rc==0
|
||||
|
@ -35,3 +35,20 @@ check:output=~$$CN
|
||||
check:output=~/root
|
||||
end
|
||||
|
||||
start:psh_l
|
||||
description: psh -l user CN 'uptime' in linux
|
||||
os:Linux
|
||||
cmd:psh -l root $$CN 'uptime'
|
||||
check:rc==0
|
||||
check:output=~$$CN
|
||||
end
|
||||
|
||||
|
||||
start:psh_i
|
||||
description: psh -i interface CN 'uptime' in linux
|
||||
os:Linux
|
||||
cmd:interface=`xdsh $$CN 'ifconfig' | sed -n 1p | awk -F : '{print $2}' | awk -F ' ' '{print $1}'`;sed -i "s/com $$CN/com $$CN $$CN-$interface/g" '/etc/hosts';psh -i $interface $$CN 'uptime'
|
||||
check:output=~$$CN
|
||||
check:rc==0
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user