A Vagrantfile and Ansible playbook that can be used to setup test environment with an Exchange server host
This can set up a test Exchange environment in a domain. Currently supports the following scenarios:
The following is required to run any of these steps;
These examples use existing Windows Vagrant images for VirtualBox that have been created with the packer-windoze repository. As of writting this, the following boxes are available to be used and have been uploaded to the Vagrant Cloud service;
See the repo url or this blog post for more details.
To setup an Exchange environment you need to first download the Exchange install ISO for the version you wish to setup. From there you can run the following to set up the environment.
# Set up 2013 environment
export EXCHANGE2013_ISO_PATH=/var/lib/libvirt/filesystems/fs/mu_exchange_server_2013_with_sp1_x64_dvd_4059293.iso
vagrant up DC2013 EXCHANGE2013
ansible-playbook main.yml --limit env2013 -vv
# Set up 2016 environment
export EXCHANGE2016_ISO_PATH=/var/lib/libvirt/filesystems/fs/mu_exchange_server_2016_cumulative_update_16_x64_dvd_fc6f65ae.iso
vagrant up DC2016 EXCHANGE2016
ansible-playbook main.yml --limit env2016 -vv
# Set up 2019 environment
export EXCHANGE2019_ISO_PATH=/var/lib/libvirt/filesystems/fs/mu_exchange_server_2019_cumulative_update_5_x64_dvd_36df3aaf.iso
vagrant up DC2019 EXCHANGE2019
ansible-playbook main.yml --limit env2019 -vv
# Set up all environments - requires each 'EXCHANGE{VERSION}_ISO_PATH' env var to be set
vagrant up
ansible-playbook main.yml -vv