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 # root off of the rackspace provider dummy box
9 config.vm.box = "dummy"
11 # rackspace systems, even with cloud-init
12 # don't seem to have the cloud int user ${osname} (or similar)
13 # getting the ssh key for some reason, root does for sure
15 config.ssh.username = 'root'
17 # make sure to set the following in your
18 # ~/.vagrant.d/boxes/dummy/0/rackspace/Vagrantfile
23 # If you are not using an SSH token / smartcard also set this
25 # config.ssh.private_key_path -- set this outside the rackspace block
27 config.vm.provider :rackspace do |rs|
28 # create these base builds always on the smallest system possible
29 rs.flavor = 'general1-1'
31 # allow for switching to ORD cloud but default to DFW
32 if (ENV['RSREGION'] == 'ord')
33 rs.rackspace_region = :ord
35 rs.rackspace_region = :dfw
38 # Default the Fedora 20 (Heisenbug) - Vagrant ready image unless overriden by a RSIMAGE
39 # environment variable
41 rs.image = ENV['RSIMAGE']
43 rs.image = 'Fedora 20 (Heisenbug) - Vagrant ready'
47 # run our bootstrapping for the ovsdb-devstack system
48 config.vm.provision 'shell', path: 'bootstrap.sh'
50 # set RSRESEAL to... anything if you want to snap an image of this box
51 # not setting the environment variable will cause the system to come
52 # up fully and not be in a resealable state
54 config.vm.provision 'shell', path: 'system_reseal.sh'