forked from GhostofGoes/getmac
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
145 lines (131 loc) · 4.51 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrant Documentation: https://docs.vagrantup.com/v2/
# More boxes at: https://app.vagrantup.com
# Prerequisites: latest versions of Vagrant and VirtualBox
# If you're on Linux, do NOT use apt/yum to install, they are severely outdated.
# Instead, download the .deb from https://www.vagrantup.com/downloads.html,
# and install using "sudo apt install ./<file>.deb".
# Usage: Navigate to the folder containing this file in your CLI (Windows CMD, Linux BASH)
# Create VM: "vagrant up [name]"
# Destroy VM: "vagrant destroy [name]"
# Power down VM: "vagrant halt [name]"
# Power on VM: "vagrant up [name]"
# VM Command line: "vagrant ssh [name]"
# Provision: "vagrant provision [name]"
# Example: "vagrant up centos" creates a CentOS 7 dev/test machine
Vagrant.configure(2) do |config|
# CentOS 7
config.vm.define "centos" do |centos|
centos.vm.box = "centos/7"
centos.vm.host_name = "getmac-centos7"
centos.vm.provider "virtualbox" do |vb|
vb.gui = false
vb.memory = "1024"
vb.name = "getmac-CentOS-7"
end
centos.vm.provision "shell", path: "scripts/centos-provision.sh", privileged: false
end
# OpenBSD 6
config.vm.define "openbsd" do |openbsd|
openbsd.vm.box = "generic/openbsd6"
openbsd.vm.host_name = "getmac-openbsd"
openbsd.vm.provider "virtualbox" do |vb|
vb.gui = false
vb.memory = "512"
vb.name = "getmac-OpenBSD-6"
end
openbsd.vm.synced_folder ".", "/home/vagrant/getmac"
openbsd.vm.provision "shell", path: "scripts/openbsd-provision.sh", privileged: false
end
# NetBSD 8
config.vm.define "netbsd" do |netbsd|
netbsd.vm.box = "generic/netbsd8"
netbsd.vm.host_name = "getmac-netbsd"
netbsd.vm.provider "virtualbox" do |vb|
vb.gui = false
vb.memory = "512"
vb.name = "getmac-NetBSD-8"
end
netbsd.vm.synced_folder ".", "/home/vagrant/getmac"
end
# FreeBSD 11 (version currently used by PFSense)
config.vm.define "freebsd" do |freebsd|
freebsd.vm.box = "generic/freebsd11"
freebsd.vm.host_name = "getmac-freebsd"
freebsd.vm.provider "virtualbox" do |vb|
vb.gui = false
vb.memory = "512"
vb.name = "getmac-FreeBSD-12"
end
freebsd.vm.synced_folder ".", "/home/vagrant/getmac"
freebsd.vm.provision "shell", path: "scripts/freebsd-provision.sh", privileged: false
end
# OpenSUSE 42
config.vm.define "opensuse" do |opensuse|
opensuse.vm.box = "generic/opensuse42"
opensuse.vm.host_name = "getmac-opensuse"
opensuse.vm.provider "virtualbox" do |vb|
vb.gui = false
vb.memory = "512"
vb.name = "getmac-OpenSUSE-42"
end
opensuse.vm.synced_folder ".", "/home/vagrant/getmac"
end
# Solaris 10
config.vm.define "solaris" do |solaris|
solaris.vm.box = "tnarik/solaris10-minimal"
solaris.vm.host_name = "getmac-solaris"
solaris.vm.provider "virtualbox" do |vb|
vb.gui = false
vb.memory = "512"
vb.name = "getmac-Solaris-10"
end
solaris.vm.synced_folder ".", "/home/vagrant/getmac"
solaris.vm.provision "shell", path: "scripts/solaris-provision.sh", privileged: false
end
# Android
config.vm.define "android" do |android|
android.vm.box = "lgromb/androidx86-kk"
android.vm.host_name = "getmac-android"
android.vm.provider "virtualbox" do |vb|
vb.gui = true
vb.memory = "1024"
vb.name = "getmac-Android-KitKat"
end
android.vm.synced_folder ".", "/home/vagrant/getmac"
end
# Windows Server 2012 R2
config.vm.define "winserver" do |winserver|
winserver.vm.box = "opentable/win-2012r2-standard-amd64-nocm"
winserver.vm.host_name = "getmac-winserver"
winserver.vm.provider "virtualbox" do |vb|
vb.gui = true
vb.memory = "2048"
vb.name = "getmac-Windows-Server-2012R2"
end
winserver.vm.synced_folder ".", "/home/vagrant/getmac"
end
# Windows 10
config.vm.define "win10" do |win10|
win10.vm.box = "Microsoft/EdgeOnWindows10"
win10.vm.host_name = "getmac-win10"
win10.vm.provider "virtualbox" do |vb|
vb.gui = true
vb.memory = "2048"
vb.name = "getmac-Windows-10"
end
win10.vm.synced_folder ".", "/home/vagrant/getmac"
end
# Windows 7
config.vm.define "win7" do |win7|
win7.vm.box = "datacastle/windows7"
win7.vm.host_name = "getmac-win7"
win7.vm.provider "virtualbox" do |vb|
vb.gui = true
vb.memory = "2048"
vb.name = "getmac-Windows-7"
end
win7.vm.synced_folder ".", "/home/vagrant/getmac"
end
end