A standard vagrant / puppet configuration I use for new PHP projects
Install vagrant on your system see vagrantup.com
Install vagrant-hostmaster on your system see mosaicxm/vagrant-hostmaster
Get a base box with puppet support see vagrantup.com docs
Get a copy of this repository. You can do this either by integrating it as a git submodule or by just checking it out and copying the files.
Prefarably, the contents of this repository should be placed in a directory vagrant
inside your project's root dir.
Copy vagrant/Personalization.dist
to vagrant/Personalization
and modify vagrant/Personalization
according to your needs.
Example:
$vhost = "test"
$ip = "192.168.10.42"
$use_nfs = true
$base_box = "ubuntu-server-i386"
$webserver = "nginx"
After performing the steps listed above, you will have the following environment set up:
http://{$vhost}.dev/[app_dev.php]
)