Skip to content

Instantly share code, notes, and snippets.

@johnduarte
Last active November 1, 2016 22:27
Show Gist options
  • Save johnduarte/c2bc42c71c47193452eefbef72b377d8 to your computer and use it in GitHub Desktop.
Save johnduarte/c2bc42c71c47193452eefbef72b377d8 to your computer and use it in GitHub Desktop.
# Assumptions:
# * Following commands are run as a non-root user on a POSIX OS
# * Puppet-agent is installed and has been invoked at least once by the
# user in order to create the local puppetlabs directory path.
# This can be done with `puppet module install motd`
# * Git is installed
# * Ruby is installed
# * Bundler is installed
git clone https://github.com/johnduarte/puppet-beaker_101.git ~/.puppetlabs/etc/code/modules/beaker_101
puppet apply -e 'include beaker_101'
ln -s /tmp/beaker_101 ~/beaker_101
cd ~/beaker_101
bundle install
cat > export_proxy.rb <<EOS
on(master, 'echo "export http_proxy=http://4.31.142.200:8080" >> /etc/profile')
EOS
bundle exec beaker --hosts vmpooler.cfg --preserve-hosts --pre-suite export_proxy.rb,install_pe.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment