Slide 179
Slide 179 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,
$$$$$$$$"88name",$"Varnish$Training",
$$$$$$$$"88memory",$"512"
$$]
$$config.vm.network$:hostonly,$"12.12.12.6"
$$config.vm.share_folder$"v8data",$"/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
donderdag 25 april 13