-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathVagrantfile
33 lines (23 loc) · 815 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.define :web do |web|
web.vm.box = "trusty64"
web.vm.box_url = "http://files.vagrantup.com/trusty64.box"
web.vm.network :private_network, ip: "10.33.33.33"
web.vm.network :forwarded_port, guest: 80, host: 8080
web.vm.hostname = "dev.416.bike"
web.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "1024"]
end
web.vm.provision :ansible do |ansible|
ansible.playbook = "build-server.yml"
ansible.inventory_path = "hosts-vagrant"
ansible.verbose = "v"
ansible.ask_sudo_pass = true
# https://github.com/mitchellh/vagrant/issues/3096
ansible.limit = 'all'
end
end
end