Skip to content

Instantly share code, notes, and snippets.

@e0ne
Created April 24, 2015 09:49
Show Gist options
  • Save e0ne/7cc76d0d72c6f5a21db5 to your computer and use it in GitHub Desktop.
Save e0ne/7cc76d0d72c6f5a21db5 to your computer and use it in GitHub Desktop.
#!/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