Skip to content

Instantly share code, notes, and snippets.

@xarses
Last active August 29, 2015 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xarses/7cd6a335055546078a31 to your computer and use it in GitHub Desktop.
Save xarses/7cd6a335055546078a31 to your computer and use it in GitHub Desktop.
testing fuel-library changes
  1. copy pull-changes.sh from raw

    note: link could be wrong if updated below

    wget https://gist.githubusercontent.com/xarses/7cd6a335055546078a31/raw/pull-change.sh
  2. find review you want to test and go to patch set download section. Select pull, you should see line like

    git pull https://review.openstack.org/stackforge/fuel-library refs/changes/13/133513/3
  3. call pull-changes.sh

    bash pull-changes.sh git pull https://review.openstack.org/stackforge/fuel-library refs/changes/13/133513/3
#!/bin/bash
yum install -y git
cd /etc/puppet
git clone https://github.com/stackforge/fuel-library
cd fuel-library
# run the git call from cmd args
$@
git checkout FETCH_HEAD
# update link to modules
rm modules
ln -s fuel-library/deployment/puppet modules
#copy the site.pp
cd /etc/puppet
cp -r manifests manifests-new
mv manifests manifests-old
mv manifests-new manifests
cp modules/osnailyfacter/examples/site.pp manifests/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment