-
Notifications
You must be signed in to change notification settings - Fork 158
/
Vagrantfile.old
53 lines (47 loc) · 1.89 KB
/
Vagrantfile.old
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
config.vm.synced_folder '.', '/vagrant', disabled: true
config.winrm.max_tries = 200
config.winrm.retry_delay = 2
#winsrv = "royce/capsulecorp-winsrv"
winsrv = "StefanScherer/windows_2019"
winwks = "StefanScherer/windows_10"
vms = [{name: "goku", ip: "192.168.56.100", box: winsrv},
{name: "gohan", ip: "192.168.56.101", box: winsrv},
{name: "vegeta", ip: "192.168.56.102", box: winsrv},
{name: "trunks", ip: "192.168.56.103", box: winsrv},
{name: "tien", ip: "192.168.56.104", box: winwks},
{name: "raditz", ip: "192.168.56.105", box: winsrv}]
vms.each do |vm|
config.vm.define vm[:name] do |system|
system.vm.provider "virtualbox" do |v|
v.name = "ccpt_#{vm[:name]}"
end
system.vm.network :private_network, ip: vm[:ip]
system.vm.box = vm[:box]
system.vm.box_version = vm[:version]
system.vm.guest = :windows
system.vm.communicator = "winrm"
#system.vm.network :forwarded_port, guest: 3389, host: 3389, auto_correct: true
#system.vm.provision "ansible" do |ansible|
# ansible.playbook = "#{vm[:name]}.yml"
#end
end
end
config.vm.define "pentest" do |box|
box.vm.box = "royce/capsulecorp-pentest"
box.vm.box_version ="0.0.4-alpha"
box.vm.network "private_network", ip: "192.168.56.200"
box.vm.network :forwarded_port, guest: 3389, host: 3389, auto_correct: true
box.ssh.username = "pentest"
box.ssh.private_key_path = "ssh/capsulecorp_id_rsa"
box.vm.provision "ansible" do |ansible|
ansible.playbook = "pentest.yml"
end
end
end