1 |
# this class hold the common stuff for all django applications |
2 |
# as we cannot declare the same ressource twice ( ie, |
3 |
# python-psycopg2 for example ) |
4 |
# it is required to place this in a common class |
5 |
class django_application { |
6 |
package {['python-django', |
7 |
'python-psycopg2', |
8 |
'python-django-auth-ldap']: } |
9 |
|
10 |
file { '/usr/local/lib/custom_backend.py': |
11 |
source => 'puppet:///modules/django_application/custom_backend.py', |
12 |
notify => Service['apache'] |
13 |
} |
14 |
|
15 |
django_application::script { ['django_create_group.py', |
16 |
'django_add_permission_to_group.py']: } |
17 |
|
18 |
} |