Last active
October 7, 2015 03:46
-
-
Save efouts/9084b6a791a02d6a0f6d to your computer and use it in GitHub Desktop.
Basic vagrantfile for the rackspace cloud
This file contains hidden or 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
export DEBIAN_FRONTEND=noninteractive | |
apt-get update | |
apt-get install -y git vim | |
git config --system user.email "[email protected]" | |
git config --system user.name "Elliott Fouts" |
This file contains hidden or 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
Vagrant.configure(2) do |config| | |
config.vm.define :dev do |dev| | |
dev.ssh.forward_agent = true | |
dev.vm.provider :rackspace do |rs| | |
rs.username = ENV['RACKSPACE_USERNAME'] | |
rs.admin_password = ENV['RACKSPACE_ADMIN_PASSWORD'] | |
rs.api_key = ENV['RACKSPACE_API_KEY'] | |
rs.flavor = 'general1-1' | |
rs.image = 'Ubuntu 15.04 (Vivid Vervet) (PVHVM)' | |
rs.rackspace_region = :iad | |
rs.server_name = File.basename(Dir.getwd) | |
end | |
end | |
config.vm.provision 'shell' do |s| | |
s.path = 'bootstrap' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment