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 # Fedora and EL systems default to requiring tty for sudo
18 # This should have been disabled with the Vagrant ready
19 # base box conversion (see rackspace-convert-base vagrant)
23 # make sure to set the following in your
24 # ~/.vagrant.d/boxes/dummy/0/rackspace/Vagrantfile
29 # If you are not using an SSH token / smartcard also set this
31 # config.ssh.private_key_path -- set this outside the rackspace block
33 config.vm.provider :rackspace do |rs|
34 # create these base builds always on the smallest system possible
35 rs.flavor = 'general1-1'
37 # allow for switching to ORD cloud but default to DFW
38 if (ENV['RSREGION'] == 'ord')
39 rs.rackspace_region = :ord
41 rs.rackspace_region = :dfw
44 # Default the CentOS 6.5 - Vagrant ready image unless overriden by a RSIMAGE
45 # environment variable
47 rs.image = ENV['RSIMAGE']
49 rs.image = 'CentOS 6.5 - Vagrant ready'
53 # Explicitlly set default shared folder and load lib folder
54 config.vm.synced_folder ".", "/vagrant"
55 config.vm.synced_folder "../lib/", "/vagrant/lib"
57 # run our bootstrapping for the ovsdb-devstack system
58 config.vm.provision 'shell', path: 'bootstrap.sh'
66 # reconfigure the network setup to support our special private setup
67 config.vm.provision 'shell', path: '../lib/lf-networking/configure_lf_infra.sh',
68 args: ENV['RSSUBDOMAIN']
76 # set RSRESEAL to... anything if you want to snap an image of this box
77 # not setting the environment variable will cause the system to come
78 # up fully and not be in a resealable state
80 config.vm.provision 'shell', path: '../lib/system_reseal.sh'