Skip to content

This is a flexible setup that will handle projects running on LEMP using Ansible to provision and setup needed packages

Notifications You must be signed in to change notification settings

vbernabe/vagrant-lemp-via-ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vagrant LEMP via Ansible Provisioning

This is a flexible setup that will handle projects running on LEMP using Ansible to provision and setup needed packages

Setup includes

Pre-Requisite

User should already have

Setup

Once you have the above pre-requisite installed you can follow the instructions below

Clone this repository

$ git clone https://github.com/vbernabe/vagrant-lemp-via-ansible.git vagrant-ansible

Create and provision your VM via Vagrant with Ansible

$ cd vagrant-ansible
$ vagrant up

Start your vagrant box

$ vagrant up

Try and access your web browser

http://localhost:8080/

Done!

Using your VM with your project

Your vagrant-ansible dir will have a projects folder which will be the location of your DOCUMENT_ROOT.

Projects folder currently have 2 files

  • index.php - sample index file with phpinfo() you can
  • adminer.php - this is similar to PHPMyAdmin to help you access MySQL

You can drop your source folder under "projects" folder and access via http://localhost:8080/yourprojectname

Fine tune your VM

If your project needs other dependencies or configuration you can ssh to your Vagrant Ubuntu VM and install any libraries needed.

$ vagrant ssh

Credentials

  • MySQL
    • Username: root
    • Password: empty
  • VM - has sudo access
    • Username: vagrant
    • Password: vagrant

Stopping VM

Stop your VM if not in used

Stop vagrant

$ vagrant halt

Complete Cleanup

$ vagrant destroy

Others

For Windows Users you need to install PuTTy to manage Vagrant

Other vagrant commands: https://www.vagrantup.com/docs/cli/

License

The MIT License (MIT)

Copyright (c) <2016>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

This is a flexible setup that will handle projects running on LEMP using Ansible to provision and setup needed packages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages