forked from yudai/cf_nise_installer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
33 lines (26 loc) · 979 Bytes
/
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
require './.vagrant-provision-reboot-plugin'
NISE_IP_ADDRESS = "10.39.39.39"
Vagrant.configure("2") do |config|
config.vm.box = "lucid64"
config.vm.box_url = "http://files.vagrantup.com/lucid64.box"
config.vm.network :private_network, ip: NISE_IP_ADDRESS
config.vm.provider "virtualbox" do |v|
v.memory = 2048
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