-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
70 lines (61 loc) · 2.07 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.define "host1" do |host11|
host1.vm.box = "terrywang/archlinux"
host1.vm.hostname = 'host1'
config.ssh.insert_key = false
host1.vm.network "private_network", type: "dhcp"
host1.vm.provider :virtualbox do |v|
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
v.customize ["modifyvm", :id, "--memory", 4096]
end
# Ansible provisioner: mailstack
config.vm.provision "ansible" do |ansible|
ansible.playbook = "vagrant.yml"
ansible.compatibility_mode = "2.0"
ansible.inventory_path = "inventory"
ansible.become = true
ansible.host_key_checking = false
ansible.ask_vault_pass = true
end
end
config.vm.define "host2" do |host2|
host2.vm.box = "terrywang/archlinux"
host2.vm.hostname = 'host2'
config.ssh.insert_key = false
host2.vm.network "private_network", type: "dhcp"
host2.vm.provider :virtualbox do |v|
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
v.customize ["modifyvm", :id, "--memory", 2048]
end
# Ansible provisioner: mailstack
config.vm.provision "ansible" do |ansible|
ansible.playbook = "vagrant.yml"
ansible.compatibility_mode = "2.0"
ansible.inventory_path = "inventory"
ansible.become = true
ansible.host_key_checking = false
ansible.ask_vault_pass = true
end
end
config.vm.define "host3" do |host3|
host3.vm.box = "terrywang/archlinux"
host3.vm.hostname = 'host3'
config.ssh.insert_key = false
host3.vm.network "private_network", type: "dhcp"
host3.vm.provider :virtualbox do |v|
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
v.customize ["modifyvm", :id, "--memory", 2048]
end
# Ansible provisioner: mailstack
config.vm.provision "ansible" do |ansible|
ansible.playbook = "vagrant.yml"
ansible.compatibility_mode = "2.0"
ansible.inventory_path = "inventory"
ansible.become = true
ansible.host_key_checking = false
ansible.ask_vault_pass = true
end
end
end