-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathVagrantfile
32 lines (26 loc) · 925 Bytes
/
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
Vagrant.configure("2") do |config|
config.ssh.insert_key = false
config.vm.define "master", primary: true do |master|
master.vm.box = "ubuntu/trusty64"
master.vm.network :forwarded_port, guest: 80, host: 8080
master.vm.network "private_network", ip: "192.168.50.2"
master.vm.provision "ansible" do |ansible|
ansible.inventory_path = "ansible/vagrant/inventory.txt"
ansible.playbook = "ansible/vagrant/playbook.yml"
ansible.limit = "master"
end
end
config.vm.define "node" do |node|
node.vm.box = "bento/ubuntu-16.04"
node.vm.network "private_network", ip: "192.168.50.10"
node.vm.provision "ansible" do |ansible|
ansible.inventory_path = "ansible/vagrant/inventory.txt"
ansible.playbook = "ansible/vagrant/playbook.yml"
ansible.limit = "node"
end
end
config.vm.provider "virtualbox" do |v|
v.memory = 1024
v.cpus = 2
end
end