-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVagrantfile
More file actions
40 lines (32 loc) · 1.36 KB
/
Vagrantfile
File metadata and controls
40 lines (32 loc) · 1.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
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.require_version ">= 1.8.4"
Vagrant.configure(2) do |config|
config.vm.box = 'ubuntu/xenial64'
config.vm.hostname = 'refstack'
config.vm.network :private_network, ip: '192.168.10.10'
config.vm.network :forwarded_port, guest: 8000, host: 8000
config.vm.network :forwarded_port, guest: 443, host: 443
config.vm.synced_folder './shared/', '/home/ubuntu/shared', create: true
config.vm.synced_folder './opt_refstack', '/opt', create: true
if ENV['http_proxy'] != nil and ENV['https_proxy'] != nil and ENV['no_proxy'] != nil
if not Vagrant.has_plugin?('vagrant-proxyconf')
system 'vagrant plugin install vagrant-proxyconf'
raise 'vagrant-proxyconf was installed but it requires to execute again'
end
config.proxy.http = ENV['http_proxy']
config.proxy.https = ENV['https_proxy']
config.proxy.no_proxy = ENV['no_proxy']
end
config.vm.provider 'virtualbox' do |v|
v.customize ['modifyvm', :id, '--memory', 1024 * 2 ]
v.customize ["modifyvm", :id, "--cpus", 2]
end
config.vm.provision 'shell' do |s|
s.path = 'post_install.sh'
end
end