Skip to content

Latest commit

 

History

History
93 lines (71 loc) · 2.86 KB

README.md

File metadata and controls

93 lines (71 loc) · 2.86 KB

Vagrant Salt LAMP

This allows to create basic LAMP development environment in a virtual machine managed by Vagrant and Salt.

Requirements:

Reading about Virtualbox, Vagrant and Salt is highly recommended. Basic understnading of YAML will help to in order to modify the settings files

Additional Optional Vagrant Plugins:

See list of more plugins at: https://github.com/mitchellh/vagrant/wiki/Available-Vagrant-Plugins

Installation

curl -L https://github.com/davidlonjon/vagrant-salt-lamp/archive/master.tar.gz | tar zx

Usage

Go into the extracted directory cd vagrant-salt-lamp-master

Edit settings.yml & ./shares/srv/pillar/settings.sls to be specific to your project

  • vi settings.yml
  • vi ./shares/srv/pillar/settings.sls

Run vagrant vagrant up

SSH into your newly created virtual machine vagrant ssh in which you should have a full LAMP stack.

What'll get

Installed Software

By default:

A Vagrant/Virtualbox virtual machine installed with Ubuntu Precise64

Inside the VM:

  • Default tools:
    • git
    • curl
    • vim
    • tmux
    • screen
    • htop
    • mytop
    • nmon
    • perl and perl libraries which will allow to install manually innotop
  • Apache
  • MySQL
  • php
  • phpMyAdmin

Defaults

Issues:

  • Removal of hosts entries on host machine does not seems to work

Notes

Only been test on MAC (Tested on Lion OSX 10.8.4) as host and Ubunut Precise64 (12.04) as guest.

It is unlikely to work on Windows.

Todo

Possible add the following to the setup:

  • Jenkins
  • Redis
  • Postfix
  • Jasmine
  • Karma Test Runner
  • Coffeescript
  • Express HTTP
  • dnsmasq

Credits

This project and code have been directly inspired by or copied from: