forked from aporat/opsworks-php-cookbooks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
43 lines (31 loc) · 968 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
38
39
40
41
42
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.omnibus.chef_version = :latest
config.vm.hostname = "webapp.dev"
config.vm.box = "centos/7"
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/webapp/", :id => "webapp-root", :nfs => true
config.berkshelf.enabled = true
config.berkshelf.berksfile_path = 'Berksfile'
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = "."
chef.json = {
:yum => {
:exclude => 'kernel*'
},
:apache => {
:listen => ['*:80', '*:443']
},
:phpapp => {
:domain => 'webapp.dev',
:path => 'webapp'
}
}
chef.run_list = [
"recipe[phpapp::setup_vagrant]"
]
end
end