Created
February 7, 2014 16:51
-
-
Save cpilsworth/8866717 to your computer and use it in GitHub Desktop.
Solr Server Vagrant File
This file contains hidden or 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
# -*- 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| | |
# All Vagrant configuration is done here. The most common configuration | |
# options are documented and commented below. For a complete reference, | |
# please see the online documentation at vagrantup.com. | |
# Every Vagrant virtual environment requires a box to build off of. | |
config.vm.box = "precise64" | |
# Enable provisioning with chef solo, specifying a cookbooks path, roles | |
# path, and data_bags path (all relative to this Vagrantfile), and adding | |
# some recipes and/or roles. | |
# | |
config.vm.provision :chef_solo do |chef| | |
config.vm.network "forwarded_port", guest: 8983, host: 9983 | |
chef.add_recipe "git" | |
chef.add_recipe "apt" # Update apt to allow fetching of vim version | |
chef.add_recipe "vim" | |
chef.add_recipe "java" | |
chef.json = { | |
"java" => { | |
"jdk_version" => "7", | |
"install_flavor" => "oracle", | |
"oracle" => { | |
"accept_oracle_download_terms" => "true" | |
} | |
} | |
} | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment