Masayoshi Kobayashi | f704d30 | 2013-03-25 23:55:13 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | |
Masayoshi Kobayashi | 972b846 | 2013-06-21 15:46:38 -0700 | [diff] [blame] | 3 | . `dirname $0`/func.sh |
Masayoshi Kobayashi | f704d30 | 2013-03-25 23:55:13 +0000 | [diff] [blame] | 4 | |
| 5 | basename=$ONOS_CLUSTER_BASENAME |
| 6 | nr_nodes=$ONOS_CLUSTER_NR_NODES |
| 7 | |
| 8 | for n in `seq 1 $nr_nodes`; do |
| 9 | echo "Host node$n" |
| 10 | echo "User ubuntu" |
| 11 | echo "HostName ${basename}${n}" |
| 12 | done > ~/.ssh/config |
| 13 | |
| 14 | cd ${HOME}/bin |
| 15 | for n in `seq 1 $nr_nodes`; do |
| 16 | ln -s ssh_exec node${n} |
| 17 | done |