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