Created
April 24, 2015 09:49
-
-
Save e0ne/7cc76d0d72c6f5a21db5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for ip in `fuel node | grep cinder | awk '{print $9}'`; | |
do | |
echo $ip | |
scp ubuntu-fuel-6.0-stable-1313.tar.gz $ip:/root | |
echo "deb file:///root/ubuntu-fuel-6.0-stable-1272/ubuntu ./" >> /etc/apt/sources.list | |
ssh $ip 'apt-get update' | |
ssh $ip 'apt-get upgrade -y' | |
ssh $ip 'service cinder-volume restart' | |
exit | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment