-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVagrantfile
More file actions
34 lines (26 loc) · 747 Bytes
/
Vagrantfile
File metadata and controls
34 lines (26 loc) · 747 Bytes
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
require 'fileutils'
Vagrant.require_version ">= 1.8.0"
CONFIG = File.join(File.dirname(__FILE__), "config.rb")
FIRST_RUN_DONE = File.join(File.dirname(__FILE__), ".first_run_done")
if File.exist?(CONFIG)
require CONFIG
end
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/xenial64"
config.vm.box_version = "20170224.0.0"
config.vm.provider :virtualbox do |vb|
vb.gui = $vb_gui
vb.memory = $vb_memory
vb.cpus = $vb_cpus
vb.name = $vb_name
end
if not File.exist?(FIRST_RUN_DONE)
config.vm.provision "shell", path: "provisioning/test.sh", args: $locale
else
$scripts.each do |script|
config.vm.provision "shell", path: "#{script}"
end
end
end