forked from netology-code/sdvps-homeworks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
7-01.Vagrantfile
37 lines (25 loc) · 854 Bytes
/
7-01.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
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
#config.vm.provider = 'virtualbox'
config.vm.define "net1" do | p |
p.vm.box = 'centos/7'
p.vm.host_name = "net1"
p.vm.network "public_network", bridge: "wlp7s0"
p.vm.provider :virtualbox do |res|
res.customize ["modifyvm", :id, "--cpus", "2"]
res.customize ["modifyvm", :id, "--memory", "2000"]
end
end
config.vm.define "net2" do | b |
b.vm.box= 'centos/7'
b.vm.host_name = "net2"
b.vm.network "public_network", bridge: "wlp7s0"
b.vm.provider :virtualbox do |res|
res.customize ["modifyvm", :id, "--cpus", "2"]
res.customize ["modifyvm", :id, "--memory", "2000"]
end
end
config.vm.provision "ansible" do |ansible|
ansible.playbook = "playbook.yml"
end
end