diff options
Diffstat (limited to 'modules/django_application/manifests/add_permission_to_group.pp')
-rw-r--r-- | modules/django_application/manifests/add_permission_to_group.pp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/modules/django_application/manifests/add_permission_to_group.pp b/modules/django_application/manifests/add_permission_to_group.pp index 037ec882..6e0663ed 100644 --- a/modules/django_application/manifests/add_permission_to_group.pp +++ b/modules/django_application/manifests/add_permission_to_group.pp @@ -2,11 +2,10 @@ define django_application::add_permission_to_group( $path, $module, $group, $app='') { - exec { "/usr/local/bin/django_add_permission_to_group.py $group $name $app": + exec { "/usr/local/bin/django_add_permission_to_group.py ${group} ${name} ${app}": user => 'root', - environment => ["DJANGO_SETTINGS_MODULE=$module.settings", - "PYTHONPATH=$path" ], + environment => ["DJANGO_SETTINGS_MODULE=${module}.settings", + "PYTHONPATH=${path}" ], require => Django_application::Script['django_add_permission_to_group.py'] } } - |