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