Skip to content

Instantly share code, notes, and snippets.

@hhoover
Last active January 3, 2016 22:29
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 hhoover/8529058 to your computer and use it in GitHub Desktop.
Save hhoover/8529058 to your computer and use it in GitHub Desktop.
Vagrantfile for Chef Dev Bastion
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure('2') do |config|
config.vm.box = 'dummy'
config.vm.box_url = 'https://github.com/mitchellh/vagrant-rackspace/raw/master/dummy.box'
config.vm.provision 'shell', inline: <<-EOF
apt-get update
apt-get -y install curl git vim zlib1g-dev libssl-dev libreadline6-dev libyaml-dev libxml2-dev libxslt-dev build-essential
curl -L https://get.rvm.io | bash -s stable
source /etc/profile.d/rvm.sh
rvm requirements
rvm install ruby
rvm use ruby --default
rvm rubygems current
gem install -N berkshelf test-kitchen foodcritic rubocop strainer kitchen-rackspace meez
EOF
config.ssh.private_key_path = 'PRIKEYPATH'
config.vm.provider :rackspace do |rs, override|
rs.username = 'USERNAME'
rs.api_key = 'APIKEY'
rs.public_key_path = 'PUBKEYPATH'
rs.flavor = /1 GB Performance/
rs.image = /Ubuntu 12.04/
rs.rackspace_region = :ord
rs.server_name = 'chefskeleton'
override.ssh.username = 'root'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment