Last active
January 3, 2016 22:29
-
-
Save hhoover/8529058 to your computer and use it in GitHub Desktop.
Vagrantfile for Chef Dev Bastion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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