forked from dpla-attic/automation
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVagrantfile.dist
More file actions
71 lines (62 loc) · 2.36 KB
/
Copy pathVagrantfile.dist
File metadata and controls
71 lines (62 loc) · 2.36 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# 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"
dbnodes = {
'dbnode1' => '192.168.50.4',
'dbnode2' => '192.168.50.5'
}
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
# All boxes are hashicorp/precise64, which is Ubuntu 12.04 LTS
# BigCouch and ElasticSearch servers.
# Necessary in all cases.
dbnodes.keys.each do |hostname|
config.vm.define hostname do |dbnode|
dbnode.vm.box = "hashicorp/precise64"
dbnode.vm.network :private_network, ip: dbnodes[hostname]
dbnode.vm.provider "virtualbox" do |vb|
vb.memory = 1024
end
end
end
# Loadbalancer for development.
# Necessary in all cases.
config.vm.define :loadbal do |loadbal|
loadbal.vm.box = "hashicorp/precise64"
loadbal.vm.network :private_network, ip: "192.168.50.2"
loadbal.vm.provider "virtualbox" do |vb|
vb.memory = 256
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 = "hashicorp/precise64"
webapp.vm.network :private_network, ip: "192.168.50.6"
webapp.vm.provider "virtualbox" do |vb|
vb.memory = 768
end
#
# *** EDIT THESE FOR LOCAL DEVELOPMENT ***
# Change the path to the synced local directory, if necessary,
# but don't modify the mount point.
# webapp.vm.synced_folder "../frontend", "/frontend_dev"
# webapp.vm.synced_folder "../platform", "/api_dev"
# webapp.vm.synced_folder "../frontend-wp", "/wordpress_dev"
# webapp.vm.synced_folder "../exhibitions", "/exhibitions_dev"
# webapp.vm.synced_folder "../primary-source-sets", "/pss_dev"
end
end