Role os_barbican for OpenStack-Ansible
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Vagrantfile 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # Note:
  2. # This file is maintained in the openstack-ansible-tests repository.
  3. # https://opendev.org/openstack/openstack-ansible-tests/src/Vagrantfile
  4. #
  5. # If you need to perform any change on it, you should modify the central file,
  6. # then, an OpenStack CI job will propagate your changes to every OSA repository
  7. # since every repo uses the same Vagrantfile
  8. # Verify whether required plugins are installed.
  9. required_plugins = [ "vagrant-disksize" ]
  10. required_plugins.each do |plugin|
  11. if not Vagrant.has_plugin?(plugin)
  12. raise "The vagrant plugin #{plugin} is required. Please run `vagrant plugin install #{plugin}`"
  13. end
  14. end
  15. Vagrant.configure(2) do |config|
  16. config.vm.provider "virtualbox" do |v|
  17. v.memory = 6144
  18. v.cpus = 2
  19. # https://github.com/hashicorp/vagrant/issues/9524
  20. v.customize ["modifyvm", :id, "--audio", "none"]
  21. end
  22. config.vm.synced_folder ".", "/vagrant", type: "rsync"
  23. config.vm.provision "shell",
  24. privileged: false,
  25. inline: <<-SHELL
  26. cd /vagrant
  27. ./run_tests.sh
  28. SHELL
  29. config.vm.define "ubuntu1604" do |xenial|
  30. xenial.disksize.size = "40GB"
  31. xenial.vm.box = "ubuntu/xenial64"
  32. end
  33. config.vm.define "ubuntu1804" do |bionic|
  34. bionic.disksize.size = "40GB"
  35. bionic.vm.box = "ubuntu/bionic64"
  36. end
  37. config.vm.define "opensuse423" do |leap423|
  38. leap423.vm.box = "opensuse/openSUSE-42.3-x86_64"
  39. end
  40. config.vm.define "opensuse150" do |leap150|
  41. leap150.vm.box = "opensuse/openSUSE-15.0-x86_64"
  42. end
  43. config.vm.define "centos7" do |centos7|
  44. centos7.vm.box = "centos/7"
  45. end
  46. end