Skip to content

Instantly share code, notes, and snippets.

@rthallisey
Last active October 17, 2016 17:03
Show Gist options
  • Save rthallisey/91805fc7ef0afdaddccb16a63475cc26 to your computer and use it in GitHub Desktop.
Save rthallisey/91805fc7ef0afdaddccb16a63475cc26 to your computer and use it in GitHub Desktop.
#!/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