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.

71 lines
3.0 KiB

  1. # -*- mode: ruby -*-
  2. # vi: set ft=ruby :
  3. # All Vagrant configuration is done below. The "2" in Vagrant.configure
  4. # configures the configuration version (we support older styles for
  5. # backwards compatibility). Please don't change it unless you know what
  6. # you're doing.
  7. Vagrant.configure("2") do |config|
  8. # The most common configuration options are documented and commented below.
  9. # For a complete reference, please see the online documentation at
  10. # https://docs.vagrantup.com.
  11. # Every Vagrant development environment requires a box. You can search for
  12. # boxes at https://vagrantcloud.com/search.
  13. config.vm.box = "ubuntu/bionic64"
  14. config.vm.hostname = "collabora.dev"
  15. # Disable automatic box update checking. If you disable this, then
  16. # boxes will only be checked for updates when the user runs
  17. # `vagrant box outdated`. This is not recommended.
  18. # config.vm.box_check_update = false
  19. # Create a forwarded port mapping which allows access to a specific port
  20. # within the machine from a port on the host machine. In the example below,
  21. # accessing "localhost:8080" will access port 80 on the guest machine.
  22. # NOTE: This will enable public access to the opened port
  23. # config.vm.network "forwarded_port", guest: 80, host: 8080
  24. # Create a forwarded port mapping which allows access to a specific port
  25. # within the machine from a port on the host machine and only allow access
  26. # via 127.0.0.1 to disable public access
  27. # config.vm.network "forwarded_port", guest: 80, host: 8080, host_ip: "127.0.0.1"
  28. # Create a private network, which allows host-only access to the machine
  29. # using a specific IP.
  30. config.vm.network "private_network", ip: "192.168.33.10"
  31. # Create a public network, which generally matched to bridged network.
  32. # Bridged networks make the machine appear as another physical device on
  33. # your network.
  34. # config.vm.network "public_network"
  35. # Share an additional folder to the guest VM. The first argument is
  36. # the path on the host to the actual folder. The second argument is
  37. # the path on the guest to mount the folder. And the optional third
  38. # argument is a set of non-required options.
  39. # config.vm.synced_folder "../data", "/vagrant_data"
  40. # Provider-specific configuration so you can fine-tune various
  41. # backing providers for Vagrant. These expose provider-specific options.
  42. # Example for VirtualBox:
  43. #
  44. # config.vm.provider "virtualbox" do |vb|
  45. # # Display the VirtualBox GUI when booting the machine
  46. # vb.gui = true
  47. #
  48. # # Customize the amount of memory on the VM:
  49. # vb.memory = "1024"
  50. # end
  51. #
  52. # View the documentation for the provider you are using for more
  53. # information on available options.
  54. # Enable provisioning with a shell script. Additional provisioners such as
  55. # Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
  56. # documentation for more information about their specific syntax and use.
  57. config.vm.provision "shell", inline: <<-SHELL
  58. cat /vagrant/.ssh/id_ed25519.pub >> /home/vagrant/.ssh/authorized_keys
  59. SHELL
  60. end