Slide 174
Slide 174 text
Vagrant::Config.run
do
|config|
config.vm.box
=
"lucid32"
config.vm.box_url
=
"http://files.vagrantup.com/lucid32.box"
config.vm.customize
[
"modifyvm",
:id,
"-‐-‐name",
"Varnish
Training",
"-‐-‐memory",
"512"
]
config.vm.network
:hostonly,
"12.12.12.6"
config.vm.share_folder
"v-‐data",
"/home/data",
"./"
config.vm.provision
:chef_solo
do
|chef|
chef.cookbooks_path
=
"./tools/chef/cookbooks"
chef.json
=
{
:varnish
=>
{
:vcl_dir
=>
"/home/data",
:version
=>
"3.0",
:listen_port
=>
"80",
:storage
=>
"malloc",
:storage_size
=>
"256m",
},
:apache
=>
{
:listen_ports
=>
["8080"]
}
}
chef.add_recipe("vim")
chef.add_recipe("apache2")
chef.add_recipe("apache2::mod_php5")
chef.add_recipe("varnish::apt_repo")
chef.add_recipe("varnish::default")
end
end