aboutsummaryrefslogtreecommitdiffstats
path: root/modules/django_application
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2011-02-20 12:11:35 +0000
committerMichael Scherer <misc@mageia.org>2011-02-20 12:11:35 +0000
commit493adb6e32fc1196301247b937a07c95897859ed (patch)
tree417c03e8d5bea501a7f62792bf95784f98f8ea16 /modules/django_application
parent918c31b5c369b11efa4d743031590067a8afc69f (diff)
downloadpuppet-493adb6e32fc1196301247b937a07c95897859ed.tar
puppet-493adb6e32fc1196301247b937a07c95897859ed.tar.gz
puppet-493adb6e32fc1196301247b937a07c95897859ed.tar.bz2
puppet-493adb6e32fc1196301247b937a07c95897859ed.tar.xz
puppet-493adb6e32fc1196301247b937a07c95897859ed.zip
- add a class for django application ( to avoid duplication
with potential futur django application )
Diffstat (limited to 'modules/django_application')
-rw-r--r--modules/django_application/manifests/init.pp15
1 files changed, 15 insertions, 0 deletions
diff --git a/modules/django_application/manifests/init.pp b/modules/django_application/manifests/init.pp
new file mode 100644
index 00000000..8f04c5a8
--- /dev/null
+++ b/modules/django_application/manifests/init.pp
@@ -0,0 +1,15 @@
+class django_application {
+ package { ['python-django','python-psycopg2','python-django-auth-ldap']:
+ ensure => installed
+ }
+
+ file { "custom_backend.py":
+ path => "/usr/local/lib/custom_backend.py",
+ ensure => present,
+ owner => root,
+ group => root,
+ mode => 644,
+ source => "puppet:///modules/django_application/custom_backend.py",
+ notify => Service['apache']
+ }
+}