-
Notifications
You must be signed in to change notification settings - Fork 11
/
Vagrantfile
83 lines (64 loc) · 2.06 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
$project_name = 'vagrant-typo3'
Vagrant.require_version ">= 1.5.0"
VAGRANTFILE_API_VERSION = "2"
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- -----
# Required Vagrant plugins
#
# vagrant-hostmanager (1.4+)
# vagrant-omnibus
# vagrant-vbguest (recommended)
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- -----
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "hashicorp/precise64"
config.vm.hostname = "www.#{$project_name}.dev"
config.vm.network :private_network, ip: "192.168.144.100"
# automatically manage /etc/hosts on hosts and guests
config.hostmanager.enabled = true
config.hostmanager.manage_host = true
config.ssh.forward_agent = true
config.vm.provider "virtualbox" do |vb|
vb.name = "www.#{$project_name}.dev"
vb.gui = false
vb.customize ["modifyvm", :id, "--memory", "1024"]
vb.customize ["modifyvm", :id, "--hwvirtex", "on"]
end
config.omnibus.chef_version = "11.12.4"
config.vm.provision :chef_solo do |chef|
# Chef run list
chef.add_recipe 'apt'
chef.add_recipe 'vim'
chef.add_recipe 'networking_basic'
chef.add_recipe 'timezone'
chef.add_recipe 'mysql::server'
chef.add_recipe 'php'
chef.add_recipe 'php::module_gd'
chef.add_recipe 'php::module_apc'
chef.add_recipe 'apache2'
chef.add_recipe 'typo3'
chef.add_recipe 'typo3::scheduler'
chef.add_recipe 'typo3::vagrant'
chef.json = {
:tz => 'America/Los_Angeles',
:mysql => {
:server_root_password => "password",
:server_repl_password => "password",
:server_debian_password => "password",
:allow_remote_root => true
},
:git => {
:prefix => "/usr/local"
},
:apache => {
:default_site_enabled => false
},
:typo3 => {
:version => '6.2.6',
:package => 'source',
:site_name => $project_name,
:application_context => 'Development'
}
}
end
# run host manager after chef
config.vm.provision :hostmanager
end