vm node lists automatic

This commit is contained in:
q
2014-12-15 17:58:01 +02:00
parent 5051a51072
commit 11076a5626
6 changed files with 6 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
#!/bin/bash
if [ -z "${ANDURIL_NODELIST}" ]
then NODELIST=( vm3 vm4 vm5 vm6 vm7 vm8 )
then NODELIST=( $( scontrol show node|grep NodeName | sed -e 's,[^ ]\+=\([^ ]\+\) .*,\1,' ) )
else read -a NODELIST <<< "$ANDURIL_NODELIST"
fi