aboutsummaryrefslogtreecommitdiffstats
path: root/modules/django_application
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2011-02-25 18:25:52 +0000
committerMichael Scherer <misc@mageia.org>2011-02-25 18:25:52 +0000
commita17ed6337e515b3fbb6863eef46cf6e5ea7c5750 (patch)
treeeb9cb1f46d4fcd3c905fb22a11452ff41938db7e /modules/django_application
parentb767eefb55422562ac93a80552c40ad59f21073b (diff)
downloadpuppet-a17ed6337e515b3fbb6863eef46cf6e5ea7c5750.tar
puppet-a17ed6337e515b3fbb6863eef46cf6e5ea7c5750.tar.gz
puppet-a17ed6337e515b3fbb6863eef46cf6e5ea7c5750.tar.bz2
puppet-a17ed6337e515b3fbb6863eef46cf6e5ea7c5750.tar.xz
puppet-a17ed6337e515b3fbb6863eef46cf6e5ea7c5750.zip
add support for giving application name when adding permission to a group
Diffstat (limited to 'modules/django_application')
-rw-r--r--modules/django_application/manifests/init.pp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/django_application/manifests/init.pp b/modules/django_application/manifests/init.pp
index d8bedbef..ae7e7cbc 100644
--- a/modules/django_application/manifests/init.pp
+++ b/modules/django_application/manifests/init.pp
@@ -39,8 +39,8 @@ class django_application {
}
}
- define add_permission_to_group($path,$module,$group) {
- exec { "/usr/local/bin/django_add_permission_to_group.py $group $name":
+ define add_permission_to_group($path,$module,$group, $app='') {
+ exec { "/usr/local/bin/django_add_permission_to_group.py $group $name $app":
user => root,
environment => ["DJANGO_SETTINGS_MODULE=$module.settings",
"PYTHONPATH=$path" ],