summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJordan OMara <jomara@redhat.com>2008-06-27 14:17:56 -0400
committerJordan OMara <jomara@redhat.com>2008-06-27 14:17:56 -0400
commit04facba9300cb2a2e92277625d225f45d5043484 (patch)
treea4e1fb677f1802f882f97cab14d3033e4b1aa44b
parent78515f51b3a7bf851b92f8d50f59317ef84dc4af (diff)
downloadpuppet-django-04facba9300cb2a2e92277625d225f45d5043484.zip
puppet-django-04facba9300cb2a2e92277625d225f45d5043484.tar.gz
puppet-django-04facba9300cb2a2e92277625d225f45d5043484.tar.xz
Adding deployment of Django project
-rw-r--r--files/django.conf4
-rw-r--r--manifests/init.pp8
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"]],
+ }
}