-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configured Vagrant to deploy the hub.
- Loading branch information
1 parent
f5a00ab
commit aeebce8
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.vagrant/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# -*- mode: ruby -*- | ||
# vi: set ft=ruby : | ||
|
||
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | ||
VAGRANTFILE_API_VERSION = "2" | ||
|
||
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | ||
|
||
# Every Vagrant virtual environment requires a box to build off of. | ||
config.vm.box = "precise64" | ||
config.vm.box_url = "http://files.vagrantup.com/precise64.box" | ||
|
||
#config.vm.network :forwarded_port, guest: 38080, host: 38080 | ||
config.ssh.forward_agent = true | ||
|
||
#Make sure you let Berkshelf tell Vagrant where to pull the cookbooks from. | ||
#The Berksfile is located in the same directory as this Vagrantfile | ||
config.berkshelf.enabled = true | ||
|
||
|
||
config.vm.define "hub", :primary => true do |hub| | ||
hub.vm.hostname = "selenium-hub" | ||
|
||
hub.vm.provision :chef_solo do |chef| | ||
chef.provisioning_path = "/tmp/vagrant-chef" | ||
chef.log_level = :debug | ||
chef.add_recipe "selenium-grid::hub" | ||
#chef.json = {} | ||
end | ||
|
||
# config.vm.provider "virtualbox" do |v| | ||
# v.customize ["modifyvm", :id, "--memory", 1024] | ||
# end | ||
end | ||
|
||
end |