forked from o19s/puppet-solr
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathVagrantfile
More file actions
37 lines (30 loc) · 946 Bytes
/
Copy pathVagrantfile
File metadata and controls
37 lines (30 loc) · 946 Bytes
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
["tomcat6", "jetty"].each do |puppet_base|
[
{
name: "precise64",
url: "http://files.vagrantup.com/precise64.box",
port: 8983
},
{
name: "cent64",
url: "http://developer.nrel.gov/downloads/vagrant-boxes/CentOS-6.4-x86_64-v20130731.box",
port: 8984
}
].each do |vm_info|
config.vm.define "#{vm_info[:name]}-#{puppet_base}" do |custom|
custom.vm.network :forwarded_port, guest: 8983, host: vm_info[:port]
custom.vm.box = vm_info[:name]
custom.vm.box_url = vm_info[:url]
custom.vm.provision :puppet do |puppet|
puppet.manifests_path = "."
puppet.manifest_file = "#{puppet_base}.pp"
puppet.options = ['--verbose']
end
end
end
end
config.vm.synced_folder ".", "/etc/puppet/modules/solr"
end