Skip to content

Commit 65e57cb

Browse files
committed
Add a Vagrantfile to spin up a lab environment
1 parent 40adcc5 commit 65e57cb

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

Blog/DevOps/Vagrant/Vagrantfile

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# -*- mode: ruby -*-
2+
# vi: set ft=ruby :
3+
4+
# All Vagrant configuration is done below. The "2" in Vagrant.configure
5+
# configures the configuration version (we support older styles for
6+
# backwards compatibility). Please don't change it unless you know what
7+
# you're doing.
8+
Vagrant.configure("2") do |config|
9+
10+
## LINUX VMS
11+
12+
config.vm.define "lab-ubuntu01" do |ubuntu01|
13+
ubuntu01.vm.box = "generic/ubuntu1804"
14+
ubuntu01.vm.hostname = "lab-ubuntu01"
15+
ubuntu01.vm.network "private_network", ip: "172.16.1.10"
16+
ubuntu01.vm.provider "hyperv" do |hv|
17+
hv.memory = 1024
18+
end
19+
end
20+
21+
config.vm.define "lab-centos01" do |centos01|
22+
centos01.vm.box = "generic/centos7"
23+
centos01.vm.hostname = "lab-centos01"
24+
centos01.vm.network "private_network", ip: "172.16.1.11"
25+
centos01.vm.provider "hyperv" do |hv|
26+
hv.memory = 1024
27+
end
28+
end
29+
30+
## WINDOWS VMS
31+
32+
config.vm.define "lab-win01" do |win01|
33+
win01.vm.box = "mwrock/Windows2016"
34+
win01.vm.hostname = "lab-windows01"
35+
win01.vm.communicator = "winrm"
36+
win01.winrm.username = "vagrant"
37+
win01.winrm.password = "vagrant"
38+
win01.vm.network "private_network", ip: "172.16.1.22"
39+
win01.vm.provider "hyperv" do |hv|
40+
hv.memory = 2048
41+
end
42+
end
43+
44+
config.vm.define "lab-win02" do |win02|
45+
win02.vm.box = "mwrock/Windows2012R2"
46+
win02.vm.hostname = "lab-windows02"
47+
win02.vm.communicator = "winrm"
48+
win02.winrm.username = "vagrant"
49+
win02.winrm.password = "vagrant"
50+
win02.vm.network "private_network", ip: "172.16.1.23"
51+
win02.vm.provider "hyperv" do |hv|
52+
hv.memory = 2048
53+
end
54+
end
55+
56+
end

0 commit comments

Comments
 (0)