Skip to content

Commit 5332b22

Browse files
author
CharlesTBetz
committed
lab 04 v2
1 parent 07e028c commit 5332b22

File tree

1 file changed

+3
-39
lines changed

1 file changed

+3
-39
lines changed

lab-04-Vagrantfile

+3-39
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ Vagrant.configure(2) do |config|
5252

5353

5454
config.berkshelf.enabled = true
55+
config.berkshelf.berksfile_path = "~/Calavera/Berksfile"
56+
5557

5658
# how to boost capacity
5759
#config.vm.provider :virtualbox do |virtualbox|
@@ -139,42 +141,4 @@ Vagrant.configure(2) do |config|
139141
# test: curl http://10.1.0.62:8080/MainServlet
140142
# or curl http://127.0.0.1:91XX/MainServlet (8080 forwarded port, see above)
141143

142-
143-
144-
###############################################################################
145-
################################### test ##############################
146-
###############################################################################
147-
# a test machine to try out new things
148-
# not part of the pipeline
149-
150-
config.vm.define "test" do | test |
151-
152-
config.vm.provider :virtualbox do |virtualbox|
153-
virtualbox.customize ["modifyvm", :id, "--memory", "2048"]
154-
virtualbox.customize ["modifyvm", :id, "--cpuexecutioncap", "50"]
155-
end
156-
157-
test.vm.host_name ="test.calavera.biz"
158-
test.vm.network "private_network", ip: "192.168.33.99"
159-
test.vm.network "forwarded_port", guest: 22, host: 2299, auto_correct: true
160-
test.vm.network "forwarded_port", guest: 80, host: 8099, auto_correct: true
161-
test.vm.network "forwarded_port", guest: 8080, host: 8199, auto_correct: true
162-
163-
test.ssh.forward_agent =true
164-
165-
test.vm.synced_folder ".", "/home/test"
166-
test.vm.synced_folder "./shared", "/mnt/shared"
167-
168-
test.vm.provision :shell, path: "./shell/test.sh"
169-
test.vm.provision :shell, path: "./shell/test2.sh"
170-
# test.vm.provision :chef_zero do |chef|
171-
# chef.cookbooks_path = ["./cookbooks/"]
172-
# chef.data_bags_path = ["./data_bags/"]
173-
# chef.nodes_path = ["./nodes/"]
174-
# chef.roles_path = ["./roles/"]
175-
# chef.add_recipe "shared::_apt-update"
176-
# chef.add_recipe "java7::default"
177-
# chef.add_recipe "test::default"
178-
# end
179-
end
180-
###############################################################################
144+
end

0 commit comments

Comments
 (0)