X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=vagrant%2Fintegration-robotframework%2FVagrantfile;h=9fa6a79fc482b9e0fbf1ec233fee62eaaa301427;hb=20a3f67ad05150c5729e4b758fc8b306b155007c;hp=3c685506007ecc930cb9f4f8c06ca11d3b23744c;hpb=adeace3998bb6cdbefcb343c556a8cc01167e3c4;p=releng%2Fbuilder.git diff --git a/vagrant/integration-robotframework/Vagrantfile b/vagrant/integration-robotframework/Vagrantfile index 3c6855060..9fa6a79fc 100644 --- a/vagrant/integration-robotframework/Vagrantfile +++ b/vagrant/integration-robotframework/Vagrantfile @@ -32,7 +32,14 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| # in your base box config.vm.provider :rackspace do |rs| # create these base builds always on the smallest system possible - rs.flavor = 'performance1-1' + rs.flavor = 'general1-1' + + # allow for switching to ORD cloud but default to DFW + if (ENV['RSREGION'] == 'ord') + rs.rackspace_region = :ord + else + rs.rackspace_region = :dfw + end # Default the CentOS 6.5 - Vagrant ready image unless overriden by a RSIMAGE # environment variable @@ -43,13 +50,33 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| end end - # run our bootstrapping for the ovsdb-devstack system + # Explicitlly set default shared folder and load lib folder + config.vm.synced_folder ".", "/vagrant" + config.vm.synced_folder "../lib/", "/vagrant/lib" + + # run our bootstrapping for the robotframework system config.vm.provision 'shell', path: 'bootstrap.sh' + + ################# + # LF NETWORKING # + ################# + + if ENV['LFNETWORK'] + # reconfigure the network setup to support our special private setup + config.vm.provision 'shell', path: '../lib/lf-networking/configure_lf_infra.sh', + args: ENV['RSSUBDOMAIN'] + end + + + ################# + # FINAL CLEANUP # + ################# + # set RSRESEAL to... anything if you want to snap an image of this box # not setting the environment variable will cause the system to come # up fully and not be in a resealable state if ENV['RSRESEAL'] - config.vm.provision 'shell', path: 'system_reseal.sh' + config.vm.provision 'shell', path: '../lib/system_reseal.sh' end end