-
Notifications
You must be signed in to change notification settings - Fork 1
/
Vagrantfile
44 lines (33 loc) · 1.04 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
36
37
38
39
40
41
42
43
44
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.hostname = 'mail.tca0.nl'
# for testing debian bases distros
config.vm.box = "ubuntu/trusty64"
config.vm.network :private_network, ip: "192.168.33.39"
config.vm.network "forwarded_port", guest: 2375, host: 2375
#config.ssh.username = "root"
#config.vm.provider "docker" do |d|
# d.image = "kshlm/vagrant-centos"
# d.has_ssh = true
# d.remains_running = true
# d.expose = [6783,22]
#end
config.vm.provider :virtualbox do |v|
v.name = "test-mailserver"
v.memory = 256
v.cpus = 1
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
v.customize ["modifyvm", :id, "--ioapic", "on"]
end
# Enable provisioning with Ansible.
config.vm.provision "ansible" do |ansible|
#ansible.verbose = "vvv"
ansible.groups = {
"tutum-nodes" => ["node01"],
"all_groups:children" => ["tutum-nodes"]
}
ansible.playbook = "sample-playbook.yml"
end
end