-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVagrantfile
More file actions
34 lines (28 loc) · 727 Bytes
/
Vagrantfile
File metadata and controls
34 lines (28 loc) · 727 Bytes
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.provider "virtualbox" do |vb|
# vb.gui = true
vb.memory = "2048"
vb.cpus = 2
end
config.vm.define "u1" do | u1 |
u1.vm.box = "ubuntu/xenial64"
u1.vm.network "private_network", ip: "10.0.0.11"
u1.vm.hostname = "u1"
end
config.vm.define "u2" do | u2 |
u2.vm.box = "ubuntu/xenial64"
u2.vm.network "private_network", ip: "10.0.0.22"
u2.vm.hostname = "u2"
end
config.vm.define "c1" do | c1 |
c1.vm.box = "centos/7"
c1.vm.network "private_network", ip: "10.0.0.33"
c1.vm.hostname = "c2"
end
config.vm.provision "shell", inline: <<-SHELL
date
echo Done!
SHELL
end