-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathVagrantfile
62 lines (53 loc) · 1.84 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
Vagrant::configure('2') do |config|
# the base box this environment is built off of
config.vm.box = 'precise32'
# the url from where to fetch the base box if it doesn't exist
config.vm.box_url = 'http://files.vagrantup.com/precise32.box'
# use puppet to provision packages
config.vm.provision :puppet do |puppet|
puppet.manifests_path = 'puppet/manifests'
puppet.manifest_file = 'site.pp'
puppet.module_path = 'puppet/modules'
end
# setup master node
config.vm.define :master, {:primary => true} do |master|
# configure network
master.vm.hostname = 'master.local'
master.vm.network :private_network, ip: '33.33.33.10'
config.vm.provider 'virtualbox' do |v|
v.name = 'Vagrant Jenkins - Master'
v.customize ['modifyvm', :id, '--memory', 512]
end
end
# setup static phpqa node
config.vm.define :phpqa do |phpqa|
# configure network
phpqa.vm.hostname = 'phpqa.local'
phpqa.vm.network :private_network, ip: '33.33.33.11'
config.vm.provider 'virtualbox' do |v|
v.name = 'Vagrant Jenkins - PHP QA'
v.customize ['modifyvm', :id, '--memory', 512]
end
end
# setup drupal simpletest node
# config.vm.define :drupal do |drupal|
# # configure network
# drupal.vm.hostname = 'drupal.local'
# drupal.vm.network :private_network, ip: '33.33.33.12'
#
# config.vm.provider 'virtualbox' do |v|
# v.name = 'Vagrant Jenkins - Drupal Simpletest'
# v.customize ['modifyvm', :id, '--memory', 512]
# end
# end
# setup selenium node
config.vm.define :selenium do |selenium|
# configure network
selenium.vm.hostname = 'selenium.local'
selenium.vm.network :private_network, ip: '33.33.33.13'
config.vm.provider 'virtualbox' do |v|
v.name = 'Vagrant Jenkins - Selenium'
v.customize ['modifyvm', :id, '--memory', 512]
end
end
end