Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 1.5 KB

README.md

File metadata and controls

47 lines (31 loc) · 1.5 KB

#Play framework and Vagrant with some Ansible magic

A simple Vagrant config with Play Framework, Ansible and MySQL server that gets you started quickly with a working example. When deployed, the folder structure will look like this:

  • yourrepo/
    • frameworks/
      • play-2.2.3/
    • project/
      • example_project
    • provision/
      • templates/
      • ansible_hosts
      • playbook.yml
    • ansible.cfg
    • Vagrantfile

##Requirements

##Getting Started

git clone [email protected]:torbjokv/play-vagrant.git yourrepo && cd yourrepo && vagrant up

This takes time. Grab a coffee - or two!

vagrant ssh -c "cd project && play ~run"

When it's ready, go to your browser and enter http://localhost:9000/ Le voilà!

##Tips and tricks

  • If the filesystem is slow, set NETWORK_FILE_SYSTEM to true in the Vagrantfile, reboot the VM ("vagrant halt; vagrant up") and enter your root password.

##Problems?

Vagrant and ansible have good dokumentation at http://docs.vagrantup.com/v2 and http://docs.ansible.com/

Bitdeli Badge githalytics.com alpha