-
Notifications
You must be signed in to change notification settings - Fork 34
/
Vagrantfile
38 lines (27 loc) · 866 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
36
37
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.hostname = "webapp.dev"
config.vm.box = "gbailey/amzn2"
config.vm.network :private_network, ip: "192.168.50.4"
config.vm.network :forwarded_port, guest: 80, host: 80
config.vm.network :forwarded_port, guest: 443, host: 443
config.vm.synced_folder "app", "/var/app/", :id => "webapp-root", type: "virtualbox"
config.vm.provision :chef_solo do |chef|
chef.node_name = "api"
chef.version = "12.18.31"
chef.cookbooks_path = "resolved-cookbooks"
chef.add_recipe "phpapp::setup_vagrant"
chef.json = {
:yum => {
:exclude => 'kernel*'
},
:apache => {
:listen => ['*:80', '*:443']
},
:phpapp => {
:domain => 'webapp.dev'
}
}
end
end