diff options
author | Michael Scherer <misc@mageia.org> | 2012-01-08 22:24:53 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2012-01-08 22:24:53 +0000 |
commit | 490ea98d094260d3fc47e0e9a322891f503224ab (patch) | |
tree | 09ea069351f6a66ff715d304f4063ee22371a7e0 /modules/django_application/manifests/init.pp | |
parent | f4f01178591b8bcd64277889c63c4d1801c2b0c0 (diff) | |
download | puppet-490ea98d094260d3fc47e0e9a322891f503224ab.tar puppet-490ea98d094260d3fc47e0e9a322891f503224ab.tar.gz puppet-490ea98d094260d3fc47e0e9a322891f503224ab.tar.bz2 puppet-490ea98d094260d3fc47e0e9a322891f503224ab.tar.xz puppet-490ea98d094260d3fc47e0e9a322891f503224ab.zip |
cleaning of the django_application module
Diffstat (limited to 'modules/django_application/manifests/init.pp')
-rw-r--r-- | modules/django_application/manifests/init.pp | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/modules/django_application/manifests/init.pp b/modules/django_application/manifests/init.pp index ae7e7cbc..2fe9d2a2 100644 --- a/modules/django_application/manifests/init.pp +++ b/modules/django_application/manifests/init.pp @@ -2,16 +2,9 @@ # 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 - } + package { ['python-django','python-psycopg2','python-django-auth-ldap']: } - file { "custom_backend.py": - path => "/usr/local/lib/custom_backend.py", - ensure => present, - owner => root, - group => root, - mode => 644, + file { "/usr/local/lib/custom_backend.py": source => "puppet:///modules/django_application/custom_backend.py", notify => Service['apache'] } @@ -19,16 +12,12 @@ class django_application { define script() { file { $name: path => "/usr/local/bin/$name", - ensure => present, - owner => root, - group => root, mode => 755, source => "puppet:///modules/django_application/$name", } } - script { ['django_create_group.py','django_add_permission_to_group.py']: - } + script { ['django_create_group.py','django_add_permission_to_group.py']: } define create_group($path,$module) { exec { "/usr/local/bin/django_create_group.py $name": |