forked from dverdin/ansible-webmail-server
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Vagrantfile
35 lines (29 loc) · 1.2 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Vagrant configuration file for a development VM
# Works with vmware fusion and virtual box providers
Vagrant.configure("2") do |config|
# The VM Image to use. Find others at: http://vagrantcloud.com
# Note: The "nocm" version of this box does not have any puppet software installed
config.vm.box = "puppetlabs/ubuntu-16.04-64-nocm"
# VM: "webmail-server"
config.vm.define "webmail-server" do |conf|
conf.vm.hostname = "webmail-server"
# Give it a fixed IP
conf.vm.network "private_network", ip: "192.168.66.66", :netmask => "255.255.255.0"
conf.vm.provider "vmware_fusion" do |v|
v.vmx["memsize"] = "1024"
end
conf.vm.provider "virtualbox" do |v|
v.memory = 1024
end
end
config.vm.provision "ansible" do |ansible|
# Groups to add to the Ansible inventory file generated by Vagrant
# For use by ansible-playbook later.
# These are not used by provision.yml
ansible.groups = {
"webmail" => ["webmail-server"],
}
ansible.playbook = "provision-vagrant-vm.yml"
#ansible.verbose = "vvvv" # For troubleshooting ansible connection problems
end
end