source: other-projects/hathitrust/vagrant-solr-cluster/trunk/Vagrantfile@ 30956

Last change on this file since 30956 was 30956, checked in by davidb, 7 years ago

Initial commit of files for setting up with Vagrant a Solr cloud

  • Property svn:executable set to *
File size: 3.7 KB
RevLine 
[30956]1# -*- mode: ruby -*-
2# vi: set ft=ruby :
3
4# All Vagrant configuration is done below. The "2" in Vagrant.configure
5# configures the configuration version (we support older styles for
6# backwards compatibility). Please don't change it unless you know what
7# you're doing.
8Vagrant.configure("2") do |config|
9 # The most common configuration options are documented and commented below.
10 # For a complete reference, please see the online documentation at
11 # https://docs.vagrantup.com.
12
13 # Every Vagrant development environment requires a box. You can search for
14 # boxes at https://atlas.hashicorp.com/search.
15 # config.vm.box = "ubuntu/trusty64"
16
17
18 config.vm.provider "virtualbox" do |v|
19 v.memory = 1024
20 v.cpus = 2
21 end
22
23 config.vm.define "zoo1" do |zoo1|
24 zoo1.vm.box = "ubuntu/trusty64"
25 zoo1.vm.network "private_network", type: "dhcp"
26 end
27
28 config.vm.define "solr1" do |solr1|
29 solr1.vm.box = "ubuntu/trusty64"
30 solr1.vm.network "private_network", type: "dhcp"
31 end
32
33 config.vm.define "solr2" do |solr2|
34 solr2.vm.box = "ubuntu/trusty64"
35 solr2.vm.network "private_network", type: "dhcp"
36 end
37
38 config.vm.define "solr3" do |solr3|
39 solr3.vm.box = "ubuntu/trusty64"
40 solr3.vm.network "private_network", type: "dhcp"
41 end
42
43
44 # Disable automatic box update checking. If you disable this, then
45 # boxes will only be checked for updates when the user runs
46 # `vagrant box outdated`. This is not recommended.
47 # config.vm.box_check_update = false
48
49 # Create a forwarded port mapping which allows access to a specific port
50 # within the machine from a port on the host machine. In the example below,
51 # accessing "localhost:8080" will access port 80 on the guest machine.
52 # config.vm.network "forwarded_port", guest: 80, host: 8080
53
54 # Create a private network, which allows host-only access to the machine
55 # using a specific IP.
56 # config.vm.network "private_network", ip: "192.168.33.10"
57
58 # Create a public network, which generally matched to bridged network.
59 # Bridged networks make the machine appear as another physical device on
60 # your network.
61 # config.vm.network "public_network"
62
63 # Share an additional folder to the guest VM. The first argument is
64 # the path on the host to the actual folder. The second argument is
65 # the path on the guest to mount the folder. And the optional third
66 # argument is a set of non-required options.
67 # config.vm.synced_folder "../data", "/vagrant_data"
68
69 # Provider-specific configuration so you can fine-tune various
70 # backing providers for Vagrant. These expose provider-specific options.
71 # Example for VirtualBox:
72 #
73 # config.vm.provider "virtualbox" do |vb|
74 # # Display the VirtualBox GUI when booting the machine
75 # vb.gui = true
76 #
77 # # Customize the amount of memory on the VM:
78 # vb.memory = "1024"
79 # end
80 #
81 # View the documentation for the provider you are using for more
82 # information on available options.
83
84 # Define a Vagrant Push strategy for pushing to Atlas. Other push strategies
85 # such as FTP and Heroku are also available. See the documentation at
86 # https://docs.vagrantup.com/v2/push/atlas.html for more information.
87 # config.push.define "atlas" do |push|
88 # push.app = "YOUR_ATLAS_USERNAME/YOUR_APPLICATION_NAME"
89 # end
90
91 # Enable provisioning with a shell script. Additional provisioners such as
92 # Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
93 # documentation for more information about their specific syntax and use.
94 # config.vm.provision "shell", inline: <<-SHELL
95 # apt-get update
96 # apt-get install -y apache2
97 # SHELL
98end
Note: See TracBrowser for help on using the repository browser.