Skip to content

Vagrant config for Play framework with included MySQL server, orchestrated with Ansible.

License

Notifications You must be signed in to change notification settings

torbjokv/play-vagrant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#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

About

Vagrant config for Play framework with included MySQL server, orchestrated with Ansible.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published