forked from https://github.com/trailofbits/algo (bubble branch has our minor changes) https://github.com/trailofbits/algo
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.
 
 
 
 
 

37 lines
1.0 KiB

  1. Vagrant.configure("2") do |config|
  2. config.vm.box = "bento/ubuntu-20.04"
  3. config.vm.provider "virtualbox" do |v|
  4. v.name = "algo-20.04"
  5. v.memory = "512"
  6. v.cpus = "1"
  7. end
  8. config.vm.synced_folder "./", "/opt/algo", create: true
  9. config.vm.provision "ansible_local" do |ansible|
  10. ansible.playbook = "/opt/algo/main.yml"
  11. # https://github.com/hashicorp/vagrant/issues/12204
  12. ansible.pip_install_cmd = "sudo apt-get install -y python3-pip python-is-python3 && sudo ln -s -f /usr/bin/pip3 /usr/bin/pip"
  13. ansible.install_mode = "pip_args_only"
  14. ansible.pip_args = "-r /opt/algo/requirements.txt"
  15. ansible.inventory_path = "/opt/algo/inventory"
  16. ansible.limit = "local"
  17. ansible.verbose = "-vvvv"
  18. ansible.extra_vars = {
  19. provider: "local",
  20. server: "localhost",
  21. ssh_user: "",
  22. endpoint: "127.0.0.1",
  23. ondemand_cellular: true,
  24. ondemand_wifi: false,
  25. dns_adblocking: true,
  26. ssh_tunneling: true,
  27. store_pki: true,
  28. tests: true,
  29. no_log: false
  30. }
  31. end
  32. end