diff options
-rw-r--r-- | files/django.conf | 4 | ||||
-rw-r--r-- | manifests/init.pp | 8 |
2 files changed, 10 insertions, 2 deletions
diff --git a/files/django.conf b/files/django.conf index 6501b1c..298900f 100644 --- a/files/django.conf +++ b/files/django.conf @@ -2,7 +2,7 @@ <Location "/everest-django/"> SetHandler python-program PythonHandler django.core.handlers.modpython - SetEnv DJANGO_SETTINGS_MODULE everest-django.settings + SetEnv DJANGO_SETTINGS_MODULE everest_django.settings PythonDebug On - PythonPath "['/usr/local/everest-django'] + sys.path" + PythonPath "['/usr/local/everest_django'] + sys.path" </Location> diff --git a/manifests/init.pp b/manifests/init.pp index 0a68a48..d60d794 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -1,3 +1,5 @@ +import "git" + class django::server { package { ["httpd", "Django", "mod_python"]: ensure => installed, @@ -17,6 +19,12 @@ class django::server { require => [Package["httpd"],Package["mod_python"]], notify => Service["httpd"], } + + git::repo { "django-code-repo": + src => "/pub/git/sd/intranet/everest_django", + dst => "/usr/local/everest_django", + require => [Package["httpd"], Package["Django"]], + } } |