Automating the installation of VM and mandatory packages for a Web application.
- Vagrant >=1.5
- Ansible >=1.6.1
- lsyncd
Install role dependency:
$ ansible-galaxy install leonidas.nvm
$ ansible-galaxy install geerlingguy.apache
$ ansible-galaxy install lesmyrmidons.mongodb
Download and move to folder:
$ cd /path/vm-environment-development
Copy the file parameters.rb.dist
to parameters.rb
:
$ cp parameters.rb.dist parameters.rb
Change the file parameters.rb
as desired.
To run VM and execute ansible for install all package:
$ vagrant up --provision
To do so, we will use lsyncd. You just run it once.
$ lsyncd -rsyncssh /folder/project [email protected] /vagrant/project/
- Ajenti (Web administration server)
- Mariadb (equal mysql)
- MongoDB (No-SQL v2.6.1)
- PHP5 (PHP 5.4.x)
- Composer (Dependency manager for PHP)
- Phpmyadmin (To administration database)
- nvm (Virtual Nodejs)
- git
MIT / BSD