Fix port forwarding for example boxes
This commit is contained in:
parent
7416c2e22f
commit
aedaeb06da
1 changed files with 4 additions and 2 deletions
6
example/Vagrantfile
vendored
6
example/Vagrantfile
vendored
|
@ -27,14 +27,16 @@ echo "Hi there I'm a shell script used for provisioning"
|
|||
chef.log_level = :debug
|
||||
end
|
||||
|
||||
%w(precise quantal raring).each do |release|
|
||||
port = 8080
|
||||
releases = %w(precise quantal raring)
|
||||
releases.each do |release|
|
||||
config.vm.define(release) do |lxc_config|
|
||||
lxc_config.vm.box = "#{release}64"
|
||||
lxc_config.vm.box_url = "http://dl.dropbox.com/u/13510779/lxc-#{release}-amd64-2013-04-21.box"
|
||||
# Uncomment if you want to try out a box built locally
|
||||
# lxc_config.vm.box_url = "../boxes/output/lxc-#{release}64.box"
|
||||
lxc_config.vm.hostname = "lxc-#{release}64-example"
|
||||
lxc_config.vm.network :forwarded_port, guest: 80, host: 8081
|
||||
lxc_config.vm.network :forwarded_port, guest: 80, host: (port += 1)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue