forked from garethr/pentesting-playground
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
39 lines (35 loc) · 1.21 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
# vi: set ft=ruby :
# -*- mode: ruby -*-
Vagrant.configure('2') do |config|
config.vm.box = "precise64-puppetlabs"
config.vm.box_url = "http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-1204-x64.box"
config.vm.define :victim do |conf|
conf.vm.hostname = 'victim'
conf.vm.network :private_network, ip: "192.168.50.10"
config.vm.provision :puppet,
:options => ["--debug", "--verbose", "--summarize", "--reports", "store"],
:facter => { "fqdn" => "target" } do |puppet|
puppet.manifests_path = "manifests"
puppet.module_path = "modules"
puppet.manifest_file = "base.pp"
end
end
config.vm.define :attacker do |conf|
conf.vm.hostname = 'attacker'
conf.vm.network :private_network, ip: "192.168.50.20"
conf.vm.provider :virtualbox do |vm|
vm.customize [
"modifyvm", :id,
"--memory", 2048,
"--cpus", "2"
]
end
config.vm.provision :puppet,
:options => ["--debug", "--verbose", "--summarize", "--reports", "store"],
:facter => { "fqdn" => "target" } do |puppet|
puppet.manifests_path = "manifests"
puppet.module_path = "modules"
puppet.manifest_file = "base.pp"
end
end
end