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.

29 lines
913B

  1. # -*- mode: ruby -*-
  2. # vi: set ft=ruby :
  3. Vagrant.configure("2") do |config|
  4. config.vm.box = "ubuntu/bionic64"
  5. # Network config: Since it's a mail server, the machine must be connected
  6. # to the public web. However, we currently don't want to expose SSH since
  7. # the machine's box will let anyone log into it. So instead we'll put the
  8. # machine on a private network.
  9. config.vm.hostname = "mailinabox.lan"
  10. config.vm.network "private_network", ip: "192.168.50.4"
  11. config.vm.provision :shell, :inline => <<-SH
  12. # Set environment variables so that the setup script does
  13. # not ask any questions during provisioning. We'll let the
  14. # machine figure out its own public IP.
  15. export NONINTERACTIVE=1
  16. export PUBLIC_IP=auto
  17. export PUBLIC_IPV6=auto
  18. export PRIMARY_HOSTNAME=auto
  19. #export SKIP_NETWORK_CHECKS=1
  20. # Start the setup script.
  21. cd /vagrant
  22. setup/start.sh
  23. SH
  24. end