Skip to content

Instantly share code, notes, and snippets.

@dmsimard
Last active July 6, 2016 02:13
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 dmsimard/c7721e208749a48939495c38a8399e97 to your computer and use it in GitHub Desktop.
Save dmsimard/c7721e208749a48939495c38a8399e97 to your computer and use it in GitHub Desktop.
puppet-designate reproducer
#!/bin/bash
change="${1}"
echo "Testing change ${change}"
echo
echo "Installing dependencies"
echo
yum -y install git "@Development tools" ruby-devel rubygems openssl-devel \
libffi-devel libxml2-devel libxslt-devel wget epel-release
gem install bundler
echo
echo "Intalling vagrant"
echo
wget https://releases.hashicorp.com/vagrant/1.8.4/vagrant_1.8.4_x86_64.rpm
rpm -ivh vagrant_1.8.4_x86_64.rpm
echo
echo "Installing virtualbox"
echo
curl http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo |tee /etc/yum.repos.d/virtualbox.repo
yum -y --enablerepo=epel install dkms
yum -y install VirtualBox-5.0
echo
echo "Fetching puppet-designate and running beaker"
echo
git clone https://github.com/openstack/puppet-designate
cd puppet-designate/
git fetch https://git.openstack.org/openstack/puppet-designate ${change}
git checkout FETCH_HEAD
bundle install
export BEAKER_set=centos-70-x64
export BEAKER_destroy=no
bundle exec rake acceptance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment