jazahn/django-vagrant — pull request #1 by arthurian (2014-04-21 15:53:09+00:00)
Title: Puppet config tweaks

This fixes the issue with pulling from the GIT repository and also connecting to the Django server.

The reason you weren't able to connect to the django server was not the port forwarding, that was setup correctly, it was because the server was only accessible to the localhost and not the host machine. On the [runserver](https://docs.djangoproject.com/en/dev/ref/django-admin/) docs, it says:

> Note that the default IP address, 127.0.0.1, is not accessible from other machines on your network. To make your development server viewable to other machines on the network, use its own IP address (e.g. 192.168.2.1) or 0.0.0.0 or :: (with IPv6 enabled).

I also added a test to the git command so that it will only run the first time, otherwise the clone will fail on subsequent provisions. After it's cloned, maybe we'll want it to to auto-pull updates when it's provisioned. But that can be added later.