-
Notifications
You must be signed in to change notification settings - Fork 121
/
Copy path7-01.Vagrantfile
39 lines (27 loc) · 956 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
38
39
VAGRANTFILE_API_VERSION = "2"
ENV['VAGRANT_SERVER_URL'] = 'https://vagrant.elab.pro'
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
#config.vm.provider = 'virtualbox'
config.vm.define "net1" do | p |
p.vm.box = 'ubuntu/22.04'
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= 'ubuntu/22.04'
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"
ansible.compatibility_mode = "2.0"
end
end