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 = 'performance1-1'
37 # Default the CentOS 6.5 - Vagrant ready image unless overriden by a RSIMAGE
38 # environment variable
40 rs.image = ENV['RSIMAGE']
42 rs.image = 'CentOS 6.5 - Vagrant ready'
46 # run our bootstrapping for the ovsdb-devstack system
47 config.vm.provision 'shell', path: 'bootstrap.sh'
49 # set RSRESEAL to... anything if you want to snap an image of this box
50 # not setting the environment variable will cause the system to come
51 # up fully and not be in a resealable state
53 config.vm.provision 'shell', path: 'system_reseal.sh'