@@ -9,25 +9,39 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
99 # options are documented and commented below. For a complete reference,
1010 # please see the online documentation at vagrantup.com.
1111
12- # Every Vagrant virtual environment requires a box to build off of.
13- config . vm . box = "fedora20"
12+ config . vm . define "default" , primary : true do |config |
13+ config . vm . box = "fedora20"
14+ config . vm . box_url = "http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_fedora-20_chef-provisionerless.box"
15+
16+ config . vm . network "forwarded_port" , guest : 43273 , host : 43273
17+ config . vm . network "forwarded_port" , guest : 6060 , host : 2225
18+ config . vm . network "forwarded_port" , guest : 14000 , host : 14000
19+ for i in 4000 ..4050
20+ config . vm . network :forwarded_port , guest : i , host : i
21+ end
22+ end
23+
24+ config . vm . define "rhel-7-atomic" do |config |
25+ config . vm . box = "rhel-7-atomic"
26+ config . vm . box_url = "http://rcm-img06.build.bos.redhat.com/images/releases/2014.8/vagrant/rh-atomic-host-vagrant-2014.8.box"
27+
28+ config . vm . network "forwarded_port" , guest : 43273 , host : 53273
29+ config . vm . network "forwarded_port" , guest : 6060 , host : 12225
30+ config . vm . network "forwarded_port" , guest : 14000 , host : 24000
31+ for i in 4000 ..4050
32+ config . vm . network :forwarded_port , guest : i , host : i +1000
33+ end
1434
15- # The url from where the 'config.vm.box' box will be fetched if it
16- # doesn't already exist on the user's system.
17- config . vm . box_url = "http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_fedora-20_chef-provisionerless.box"
35+ config . vm . provider "virtualbox" do |v |
36+ v . customize [ "modifyvm" , :id , "--natdnshostresolver1" , "on" ]
37+ end
38+ end
1839
1940 # Create a forwarded port mapping which allows access to a specific port
2041 # within the machine from a port on the host machine. In the example below,
2142 # accessing "localhost:8080" will access port 80 on the guest machine.
2243 # config.vm.network :forwarded_port, guest: 80, host: 8080
2344
24- config . vm . network "forwarded_port" , guest : 43273 , host : 43273
25- config . vm . network "forwarded_port" , guest : 6060 , host : 2225
26- config . vm . network "forwarded_port" , guest : 14000 , host : 14000
27- for i in 4000 ..4050
28- config . vm . network :forwarded_port , guest : i , host : i
29- end
30-
3145 # Create a private network, which allows host-only access to the machine
3246 # using a specific IP.
3347 # config.vm.network :private_network, ip: "192.168.33.10"
0 commit comments