|
a/vagrant/Vagrantfile |
|
b/vagrant/Vagrantfile |
|
... |
|
... |
28 |
# config.vm.network :bridged
|
28 |
# config.vm.network :bridged
|
29 |
|
29 |
|
30 |
# Forward a port from the guest to the host, which allows for outside
|
30 |
# Forward a port from the guest to the host, which allows for outside
|
31 |
# computers to access the VM, whereas host only networking does not.
|
31 |
# computers to access the VM, whereas host only networking does not.
|
32 |
config.vm.forward_port 8080, 8080
|
32 |
config.vm.forward_port 8080, 8080
|
|
|
33 |
config.vm.forward_port 8983, 8983 # solr
|
33 |
|
34 |
|
34 |
# Share an additional folder to the guest VM. The first argument is
|
35 |
# Share an additional folder to the guest VM. The first argument is
|
35 |
# an identifier, the second is the path on the guest to mount the
|
36 |
# an identifier, the second is the path on the guest to mount the
|
36 |
# folder, and the third is the path on the host to the actual folder.
|
37 |
# folder, and the third is the path on the host to the actual folder.
|
37 |
# config.vm.share_folder "v-data", "/vagrant_data", "../data"
|
38 |
# config.vm.share_folder "v-data", "/vagrant_data", "../data"
|
|
... |
|
... |
60 |
end
|
61 |
end
|
61 |
|
62 |
|
62 |
config.vm.provision :shell, :path => "allura_setup.sh"
|
63 |
config.vm.provision :shell, :path => "allura_setup.sh"
|
63 |
|
64 |
|
64 |
# Enable provisioning with chef solo, specifying a cookbooks path, roles
|
65 |
# Enable provisioning with chef solo, specifying a cookbooks path, roles
|
65 |
# path, and data_bags path (all relative to this Vagrantfile), and adding
|
66 |
# path, and data_bags path (all relative to this Vagrantfile), and adding
|
66 |
# some recipes and/or roles.
|
67 |
# some recipes and/or roles.
|
67 |
#
|
68 |
#
|
68 |
# config.vm.provision :chef_solo do |chef|
|
69 |
# config.vm.provision :chef_solo do |chef|
|
69 |
# chef.cookbooks_path = "../my-recipes/cookbooks"
|
70 |
# chef.cookbooks_path = "../my-recipes/cookbooks"
|
70 |
# chef.roles_path = "../my-recipes/roles"
|
71 |
# chef.roles_path = "../my-recipes/roles"
|