Deployment of containerised OpenStack to bare metal using kolla and bifrost
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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # -*- mode: ruby -*-
  2. # vi: set ft=ruby :
  3. Vagrant.configure('2') do |config|
  4. config.vm.hostname = 'controller1'
  5. config.vm.network 'private_network', ip: '192.168.33.3', auto_config: false
  6. config.vm.box = 'stackhpc/centos-7'
  7. config.vm.box_version = '0.2.0'
  8. config.vm.provider 'virtualbox' do |vb|
  9. vb.memory = '4096'
  10. vb.linked_clone = true
  11. end
  12. config.vm.provider 'vmware_fusion' do |vmware|
  13. vmware.vmx['memsize'] = '4096'
  14. vmware.vmx['vhv.enable'] = 'TRUE'
  15. vmware.linked_clone = true
  16. end
  17. config.vm.provision 'shell', inline: <<-SHELL
  18. echo "cat > /etc/selinux/config << EOF
  19. SELINUX=disabled
  20. SELINUXTYPE=targeted
  21. EOF" | sudo -s
  22. cat /etc/selinux/config
  23. SHELL
  24. # NOTE: Reboot to apply selinux change, requires the reload plugin:
  25. # vagrant plugin install vagrant-reload
  26. config.vm.provision :reload
  27. config.vm.provision 'shell', privileged: false, inline: <<-SHELL
  28. cat << EOF | sudo tee /etc/sysconfig/network-scripts/ifcfg-eth1
  29. DEVICE=eth1
  30. USERCTL=no
  31. BOOTPROTO=none
  32. IPADDR=192.168.33.3
  33. NETMASK=255.255.255.0
  34. ONBOOT=yes
  35. NM_CONTROLLED=no
  36. EOF
  37. sudo ifup eth1
  38. /vagrant/dev/install-dev.sh
  39. # Configure the legacy development environment. This has been retained
  40. # while transitioning to the new development environment.
  41. cat > /vagrant/kayobe-env << EOF
  42. export KAYOBE_CONFIG_PATH=/vagrant/etc/kayobe
  43. export KOLLA_CONFIG_PATH=/vagrant/etc/kolla
  44. EOF
  45. cp /vagrant/dev/dev-vagrant.yml /vagrant/etc/kayobe/
  46. cp /vagrant/dev/dev-hosts /vagrant/etc/kayobe/inventory
  47. cp /vagrant/dev/dev-vagrant-network-allocation.yml /vagrant/etc/kayobe/network-allocation.yml
  48. SHELL
  49. end