
This syncs most of the common files with the openstack-tests repository. This effectively removes the Ubuntu 14.04 support from the Vagrantfile as well as the RHEL6 STIG V-38496 workaround for it. This also removes the now unused tests/vagrant.yml file and uses the tests/test.yml like the upstream OpenStack CI does. However, it doesn't sync the bindep.txt file since it doesn't quite match what we have in the openstack-ansible-tests repository so the shared one needs to be fixed first. Finally, it adds a new doc/.gitignore file to exclude the generated documentation file. This is necessary in order for the shared .gitignore one to be used in the root of the repository. Change-Id: Ia34979af9029ffb03fb525679356e6d9f3a039a6
36 lines
841 B
Ruby
36 lines
841 B
Ruby
# Verify whether required plugins are installed.
|
|
required_plugins = [ "vagrant-disksize" ]
|
|
required_plugins.each do |plugin|
|
|
if not Vagrant.has_plugin?(plugin)
|
|
raise "The vagrant plugin #{plugin} is required. Please run `vagrant plugin install #{plugin}`"
|
|
end
|
|
end
|
|
|
|
Vagrant.configure(2) do |config|
|
|
config.vm.provider "virtualbox" do |v|
|
|
v.memory = 2048
|
|
v.cpus = 2
|
|
end
|
|
|
|
config.vm.provision "shell",
|
|
privileged: false,
|
|
inline: <<-SHELL
|
|
cd /vagrant
|
|
./run_tests.sh
|
|
SHELL
|
|
|
|
config.vm.define "ubuntu1604" do |xenial|
|
|
xenial.disksize.size = "40GB"
|
|
xenial.vm.box = "ubuntu/xenial64"
|
|
end
|
|
|
|
config.vm.define "opensuse422" do |leap422|
|
|
leap422.vm.box = "opensuse/openSUSE-42.2-x86_64"
|
|
end
|
|
|
|
config.vm.define "centos7" do |centos7|
|
|
centos7.vm.box = "centos/7"
|
|
end
|
|
|
|
end
|