Last active
October 17, 2016 17:03
-
-
Save rthallisey/91805fc7ef0afdaddccb16a63475cc26 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
| git clone https://github.com/openstack/puppet-tripleo | |
| pushd puppet-tripleo | |
| git checkout stable/newton | |
| popd | |
| declare -a IP_LIST | |
| IP_LIST=$(nova list | grep 'overcloud' | cut -d '|' -f 7 | cut -d '=' -f 2) | |
| for IP in $IP_LIST; do | |
| scp -r puppet-tripleo heat-admin@$IP:puppet-tripleo | |
| ssh -oStrictHostKeyChecking=no heat-admin@$IP sudo rm -rf /etc/puppet/modules/tripleo | |
| ssh -oStrictHostKeyChecking=no heat-admin@$IP sudo mv puppet-tripleo /etc/puppet/modules/tripleo | |
| done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment