-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVagrantfile
More file actions
31 lines (25 loc) · 1.1 KB
/
Vagrantfile
File metadata and controls
31 lines (25 loc) · 1.1 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.hostname = ENV["VM_HOSTNAME"] || "ndk.127.0.0.1.xip.io"
config.vm.box = 'trusty-server-cloudimg-amd64'
config.vm.box_url = 'https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box'
#config.vm.network :forwarded_port, guest: 80, host: 3080
config.vm.provider "virtualbox" do |vb|
# Don't boot with headless mode
vb.gui = true if ENV["VM_GUI"]
# Use VBoxManage to customize the VM. For example to change memory:
vb.customize ["modifyvm", :id, "--memory", ENV["VM_MEMORY"] || "512"]
end
if ENV["ANSIBLE_REMOTE"]
config.vm.provision "ansible" do |ansible|
ansible.playbook = "provision/site.yml"
ansible.verbose = ENV["ANSIBLE_VERBOSE"] if ENV["ANSIBLE_VERBOSE"]
ansible.tags = ENV["ANSIBLE_TAGS"] if ENV["ANSIBLE_TAGS"]
end
else
config.vm.provision :shell, :path => 'provision/provision.sh'
end
end