Development Virtual Machine built with vagrant + puppet
Copy files Vagrantfile
+ vm/*
in your project folder
| /my_php_project
| ... other project files
| - vm
| - Vagrantfile
| ... other project files
Open terminal and put your current directory at same level of Vagrantfile
cd my_php_project
vagrant up
vagrant ssh
vagrant halt
DocumentRoot: http://localhost:8080 points to the folder that contains Vagrantfile
PHP info: http://localhost:8080/phpinfo
PHPMyAdmin: http://localhost:8080/phpmyadmin
Default Puppet configuration: vm/manifests/default.pp
Every time the configuration
changes virtual machine have to run provision
vagrant provision
class users
is used to ensure users creation
class apt
is used to ensure apt-update command to be executed
class timezone
is used to set correct time and date
class syspackage
is used to install system packages given in the sys_packages
array
class nodeglobal
is used to install node modules given in the node_modules
array globally
class php
is used to install php and its modules
class apache
is used to install apache, its modules, set virtual hosts and configurations
class mysql::server
is used to install mysql and create databases
class phpmyadmin
is used to install phpmyadmin