2 # vi: set ft=ruby sw=2 ts=2 sts=2 et :
4 # Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
5 VAGRANTFILE_API_VERSION = "2"
7 Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
8 config.vm.box = "dummy"
10 config.ssh.username = 'root'
12 config.vm.provider :rackspace do |rs|
13 rs.flavor = 'general1-1'
16 rs.image = ENV['RSIMAGE']
18 rs.image = 'CentOS 6.5 - Vagrant ready'
21 # allow for switching to ORD but default to DFW
22 if (ENV['RSREGION'] == 'ord')
23 rs.rackspace_region = :ord
25 rs.rackspace_region = :dfw
29 # explicitly configure shared folder syncs
30 config.vm.synced_folder '.', '/vagrant', :disabled => true
31 config.vm.synced_folder '..', '/vagrant/lib'
33 # reconfigure the network setup to support our special private setup
34 config.vm.provision 'shell', path: 'configure_lf_infra.sh', args: ENV['RSSUBDOMAIN']
36 # reseal the system for imaging
37 config.vm.provision 'shell', path: '../system_reseal.sh'