old-benchmark-code/loadbot/init_all.sh

25 lines
856 B
Bash
Executable File

#!/bin/bash -x
#SELECT droplets.name, sizes.memory, vnics.vif as vname, ip_addresses.ip, images.name, servers.name from droplets
# JOIN sizes
# ON droplets.size_id = sizes.id
# JOIN vnics
# ON droplets.id = vnics.droplet_id
# JOIN ip_addresses
# ON vnics.ip_address_id = ip_addresses.id
# JOIN images
# ON droplets.image_id = images.id
# JOIN servers
# ON droplets.server_id = servers.id
# WHERE droplets.is_active=1;
# cat /tmp/junk |awk '{print $8}'
# run this once when you have a new collection of test servers
rm .ssh/known_hosts
cat testservers |xargs -n 1 --replace=BLAH echo ./ssh.pl BLAH root dopass \$1 > do_all.sh
bash -x do_all.sh "echo >> /etc/hosts"
bash -x do_all.sh "echo 69.55.54.144 loadbot >> /etc/hosts"
bash -x do_all.sh "restorecon -R /root/.ssh/"