quickly install things with bash for loops on many boxes

for i in {6..8}; do ssh root@192.168.1.$i apt-get install -y nova-api-metadata=1:2013.1-0ubuntu2; done;

The above for loop will ssh to compute nodes 6,7 and 8 and install the nova-api-metadata package listed.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s