-
Notifications
You must be signed in to change notification settings - Fork 279
/
Vagrantfile
35 lines (26 loc) · 1007 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
34
35
# -*- mode: ruby -*-
# vi: set ft=ruby :
VM_IP = "192.168.50.100"
# 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.box = "bento/ubuntu-16.04"
config.vm.synced_folder ".", "/app"
# Use password auth
config.ssh.username = "vagrant"
config.ssh.password = "vagrant"
# Manage our hostfile for us
if Vagrant.has_plugin?("vagrant-hostmanager")
config.hostmanager.enabled = true
config.hostmanager.manage_host = true
config.hostmanager.manage_guest = true
else
config.vm.post_up_message = "Vagrant-hostmanager is not installed. Manual update of your hostfile is required."
end
# Keep it simple; just 1 VM for db and web
config.vm.define "herokuwp" do |herokuwp|
herokuwp.vm.hostname = "herokuwp.local"
herokuwp.vm.provision :shell, :path => "support/vagrant/install.sh"
herokuwp.vm.network :private_network, ip: VM_IP
end
end