This repository has been archived by the owner on Oct 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathVagrantfile.dist
54 lines (47 loc) · 1.71 KB
/
Vagrantfile.dist
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Example Vagrantfile.
#
# Copy this to `Vagrantfile' and edit to suit your needs.
#
# Please note the synced_folder directives. If you want to be able
# to edit files locally (outside of the VM, in your host environment)
# and have them synced with the VMs, then change these directives to
# reference them.
#
# At the moment, all of the VMs below are necessary, but this could
# change in the future.
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Use the default insecure_private_key so ansible doesn't need to
# know about all the generated ones.
config.ssh.insert_key = false
# Elasticsearch (Ubuntu 16.04)
config.vm.define :es do |es|
es.vm.box = "bento/ubuntu-16.04"
es.vm.network :private_network, ip: "192.168.50.50"
es.vm.provider "virtualbox" do |vb|
vb.memory = 1024
end
end
# Loadbalancer for development.
# Necessary in all cases.
config.vm.define :loadbal do |loadbal|
loadbal.vm.box = "ubuntu/trusty64"
loadbal.vm.network :private_network, ip: "192.168.50.2"
loadbal.vm.provider "virtualbox" do |vb|
vb.memory = 307
end
end
# Web application server for development.
# (All relevant web apps on one host. Which web apps depends on
# which playbook you run.)
# Necessary in all cases.
config.vm.define :webapp1 do |webapp|
webapp.vm.box = "ubuntu/trusty64"
webapp.vm.network :private_network, ip: "192.168.50.6"
webapp.vm.provider "virtualbox" do |vb|
vb.memory = 1536
end
# EDIT FOR LOCAL DEPLOYMENT
# webapp.vm.synced_folder "../primary-source-sets", "/pss_dev"
end
end