-
Notifications
You must be signed in to change notification settings - Fork 57
/
Vagrantfile
38 lines (31 loc) · 1.21 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
require './.vagrant-provision-reboot-plugin'
NISE_IP_ADDRESS = "10.39.39.39"
Vagrant.configure("2") do |config|
config.vm.box = "trusty64"
config.vm.box_url = "https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box"
config.vm.network :private_network, ip: NISE_IP_ADDRESS
config.vm.provider "virtualbox" do |v|
v.memory = 2048
end
if Vagrant.has_plugin?("vagrant-proxyconf")
config.proxy.http = ENV["http_proxy"]
config.proxy.https = ENV["https_proxy"]
config.proxy.no_proxy = ENV["no_proxy"]
end
# Install newer Git to use relative paths in submodules' .git
config.vm.provision :shell do |shell|
shell.inline = 'apt-get update && apt-get -y install python-software-properties && add-apt-repository ppa:git-core/ppa'
end
# Run installer
config.vm.provision :shell do |shell|
shell.inline = "cd /vagrant && NISE_IP_ADDRESS=#{NISE_IP_ADDRESS} ./scripts/install.sh"
shell.privileged = false
end
# Reboot to reload the kernel
config.vm.provision :unix_reboot
# Start the processes
config.vm.provision :shell do |shell|
shell.inline = 'cd /vagrant && ./scripts/start.sh'
shell.privileged = false
end
end