|
|
#!/bin/bash |
|
|
|
|
|
hosts=("10.100.193.14" |
|
|
"10.100.193.16" |
|
|
"10.100.193.29" |
|
|
"10.100.193.37" |
|
|
"10.100.193.41" |
|
|
"10.100.193.75" |
|
|
"10.100.193.84" |
|
|
"10.100.193.96" |
|
|
"10.100.193.97" |
|
|
"10.100.193.137" |
|
|
"10.100.193.158" |
|
|
"10.100.193.164" |
|
|
"10.100.193.172" |
|
|
"10.100.193.181" |
|
|
"10.100.193.192" |
|
|
"10.100.193.198" |
|
|
"10.100.193.232" |
|
|
"10.100.193.233" |
|
|
"10.100.193.253" |
|
|
) |
|
|
|
|
|
|
|
|
script_content=$(<setup_env_huggingface.sh) |
|
|
|
|
|
for host in "${hosts[@]}"; do |
|
|
|
|
|
ssh -T jump-eu.tiktok-row.org << EOF |
|
|
ssh root@$host 'bash -s' <<< "$script_content" |
|
|
EOF |
|
|
done |
|
|
|