2014-06-04 23:39:58 +00:00
|
|
|
# -*- mode: ruby -*-
|
|
|
|
# vi: set ft=ruby :
|
|
|
|
|
|
|
|
Vagrant.configure("2") do |config|
|
2014-06-06 12:20:26 +00:00
|
|
|
config.vm.box = "ubuntu14.04"
|
|
|
|
config.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box"
|
2014-06-04 23:39:58 +00:00
|
|
|
|
2014-06-06 12:20:26 +00:00
|
|
|
# Network config: Since it's a mail server, the machine must be connected
|
|
|
|
# to the public web. However, we currently don't want to expose SSH since
|
|
|
|
# the machine's box will let anyone log into it. So instead we'll put the
|
|
|
|
# machine on a private network.
|
2014-06-04 23:39:58 +00:00
|
|
|
config.vm.hostname = "mailinabox"
|
2014-06-06 12:20:26 +00:00
|
|
|
config.vm.network "private_network", ip: "192.168.50.4"
|
2014-06-04 23:39:58 +00:00
|
|
|
|
|
|
|
config.vm.provision :shell, :inline => <<-SH
|
|
|
|
# Set environment variables so that the setup script does
|
|
|
|
# not ask any questions during provisioning. We'll let the
|
|
|
|
# machine figure out its own public IP and it'll take a
|
|
|
|
# subdomain on our justtesting.email domain so we can get
|
|
|
|
# started quickly.
|
2014-06-07 18:55:57 +00:00
|
|
|
export PUBLIC_IP=auto
|
2014-06-08 22:32:52 +00:00
|
|
|
export PUBLIC_IPV6=auto
|
2014-06-30 13:15:36 +00:00
|
|
|
export PRIMARY_HOSTNAME=auto-easy
|
2014-06-04 23:39:58 +00:00
|
|
|
export CSR_COUNTRY=US
|
2014-07-29 23:09:08 +00:00
|
|
|
#export SKIP_NETWORK_CHECKS=1
|
2014-06-04 23:39:58 +00:00
|
|
|
|
|
|
|
# Start the setup script.
|
|
|
|
cd /vagrant
|
|
|
|
setup/start.sh
|
|
|
|
SH
|
|
|
|
end
|