-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
51 lines (40 loc) · 1.56 KB
/
Vagrantfile
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.provider "virtualbox" do |riak|
riak.memory = 1024
riak.cpus = 2
end
#config.vm.provision "shell",
# inline: "date"
# This keeps the provisioning folder in sync
# While this feature makes it possible to flip the switches in installing clients,
# Double checking and installing stuff takes time. This needs to be evaluated
# so that future flipping of client installs wouldnt take much time.
#config.vm.synced_folder "provision", "/home/vagrant/provision"
# This drops this to the vagrant home directory under provision folder
config.vm.provision "file",
source: "provision",
destination: "~/provision",
run: "always"
# Install Basho Erlang with Riak and all its dependencies.
# Note that Erlang is installed in the vagrant home directory and Riak in root
config.vm.provision "shell",
inline: "/bin/bash /home/vagrant/provision/install_riak.sh"
# Install Riak clients and dependencies
config.vm.provision "shell",
inline: "/bin/bash /home/vagrant/provision/install_clients.sh"
# Run Riak
# This initializes environment variables for the clients
config.vm.provision "shell",
inline: "/bin/bash /home/vagrant/provision/start_riak.sh",
run: "always"
# Install Riak client testers
# This will be installed in root
config.vm.provision "shell",
inline: "/bin/bash /home/vagrant/provision/install_client_tester.sh",
run: "always"
#config.vm.provision "shell",
# inline: "date"
end