-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathVagrantfile
48 lines (42 loc) · 1.32 KB
/
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
43
44
45
46
47
48
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "centos64_ja"
config.vm.box_url = "https://dl.dropboxusercontent.com/u/3657281/centos64_ja.box"
config.vm.network :private_network, ip: "192.168.33.14"
#config.omnibus.chef_version = "11.4.0"
config.vm.synced_folder "./public_html", "/public_html", :create => true, :owner=> 'vagrant', :group=>'vagrant', :mount_options => ['dmode=777,fmode=666']
config.vm.provider :virtualbox do |vb|
#vb.customize ["modifyvm", :id, "--memory", 1024]
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
end
config.vm.provision :chef_solo do |chef|
chef.add_recipe "base"
chef.add_recipe "phpenv_phpbuild"
chef.json = {
:php_global_version => "5.5.8",
:php_configure_options => "",
:php => [
{
:version => "5.3.28",
:ini_file => "53",
:fpm_port => "9053",
:http_port => "8053"
},
{
:version => "5.4.24",
:ini_file => "54",
:fpm_port => "9054",
:http_port => "8054"
},
{
:version => "5.5.8",
:ini_file => "55",
:fpm_port => "9055",
:http_port => "8055"
}
]
}
end
end