-
Notifications
You must be signed in to change notification settings - Fork 5
/
Vagrantfile
33 lines (27 loc) · 1.06 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
Vagrant::Config.run do |config|
config.vm.host_name = 'solr'
# 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'
# attach network adapters
config.vm.network :hostonly, '33.33.33.20', {:adapter => 2}
# use puppet to provision packages, set a fact to indicate which contrib
# module to support
config.vm.define :searchapi, {:primary => true} do |searchapi|
searchapi.vm.provision :puppet do |puppet|
puppet.manifests_path = 'puppet/manifests'
puppet.manifest_file = 'solr.pp'
puppet.module_path = 'puppet/modules'
puppet.facter = {'drupalsolrmodule' => 'search_api'}
end
end
config.vm.define :apachesolr do |apachesolr|
apachesolr.vm.provision :puppet do |puppet|
puppet.manifests_path = 'puppet/manifests'
puppet.manifest_file = 'solr.pp'
puppet.module_path = 'puppet/modules'
puppet.facter = {'drupalsolrmodule' => 'apachesolr'}
end
end
end