forked from quipucords/rho
/
Vagrantfile
41 lines (32 loc) · 1.26 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
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "rhel-server-7-1"
# Define a test box to be scanned during tests
config.vm.define "test_1" do |test_1|
test_1.vm.network "private_network", ip: "192.168.50.10"
test_1.vm.provision "ansible" do |ansible|
ansible.playbook = "vagrant/setup-test-vms.yml"
end
end
# Define a test box to be scanned during tests
config.vm.define "test_2" do |test_2|
test_2.vm.network "private_network", ip: "192.168.50.11"
test_2.vm.provision "ansible" do |ansible|
ansible.playbook = "vagrant/setup-test-vms.yml"
end
end
# Define a test box to be scanned during tests
config.vm.define "test_3" do |test_3|
test_3.vm.network "private_network", ip: "192.168.50.12"
test_3.vm.provision "ansible" do |ansible|
ansible.playbook = "vagrant/setup-test-vms.yml"
end
end
# A test box that requires a password for sudo
config.vm.define "askpass" do |test_3|
test_3.vm.network "private_network", ip: "192.168.50.13"
test_3.vm.provision "ansible" do |ansible|
ansible.playbook = "vagrant/setup-test-vms.yml"
end
end
end