aboutsummaryrefslogtreecommitdiffstats
path: root/modules/django_application/manifests/init.pp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/django_application/manifests/init.pp')
-rw-r--r--modules/django_application/manifests/init.pp18
1 files changed, 18 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..f56f73ef
--- /dev/null
+++ b/modules/django_application/manifests/init.pp
@@ -0,0 +1,18 @@
+# this class hold the common stuff for all django applications
+# as we cannot declare the same resource twice ( ie,
+# python-psycopg2 for example )
+# it is required to place this in a common class
+class django_application {
+ package {['python-django',
+ 'python-psycopg2',
+ 'python-django-auth-ldap']: }
+
+ file { '/usr/local/lib/custom_backend.py':
+ source => 'puppet:///modules/django_application/custom_backend.py',
+ notify => Service['apache']
+ }
+
+ django_application::script { ['django_create_group.py',
+ 'django_add_permission_to_group.py']: }
+
+}