blob: 522f4472cf3e8b1c4e35d671509a52e78c3d3499 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# this class hold the common stuff for all django applications
# as we cannot declare the same ressource 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']:
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']
}
}
|