aboutsummaryrefslogtreecommitdiffstats
path: root/modules/transifex/manifests/init.pp
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2011-02-25 18:25:54 +0000
committerMichael Scherer <misc@mageia.org>2011-02-25 18:25:54 +0000
commit472c927aa3ec0b5d0b72c0358c8cbd4db7b9f460 (patch)
tree4220a077293cd372a8dad17993d3348d7180f0b4 /modules/transifex/manifests/init.pp
parenta92797d65437f16c5f1eb88adc8a290a20213a2f (diff)
downloadpuppet-472c927aa3ec0b5d0b72c0358c8cbd4db7b9f460.tar
puppet-472c927aa3ec0b5d0b72c0358c8cbd4db7b9f460.tar.gz
puppet-472c927aa3ec0b5d0b72c0358c8cbd4db7b9f460.tar.bz2
puppet-472c927aa3ec0b5d0b72c0358c8cbd4db7b9f460.tar.xz
puppet-472c927aa3ec0b5d0b72c0358c8cbd4db7b9f460.zip
- give the name of the application for adding the permission
Diffstat (limited to 'modules/transifex/manifests/init.pp')
-rw-r--r--modules/transifex/manifests/init.pp30
1 files changed, 19 insertions, 11 deletions
diff --git a/modules/transifex/manifests/init.pp b/modules/transifex/manifests/init.pp
index c27f6d6b..3e2c7da9 100644
--- a/modules/transifex/manifests/init.pp
+++ b/modules/transifex/manifests/init.pp
@@ -97,16 +97,24 @@ class transifex {
# allow the people in mga-i18n-committers to :
# - manage projects
# - manage ressources
- django_application::add_permission_to_group { ['add_project',
- 'change_project',
- 'delete_project',
- 'add_resource',
- 'change_resource',
- 'delete_resource',
- ]:
- group => 'mga-i18n-committers',
- module => "transifex",
- path => "/usr/share/transifex:/usr/share",
- require => Django_application::Create_group['mga-i18n-committers'],
+ define committers_permission($app='')
+ {
+ django_application::add_permission_to_group { $name:
+ app => $app,
+ group => 'mga-i18n-committers',
+ module => "transifex",
+ path => "/usr/share/transifex:/usr/share",
+ require => Django_application::Create_group['mga-i18n-committers'],
+ }
}
+
+ committers_permission { ['add_project',
+ 'change_project',
+ 'delete_project']: }
+
+ committers_permission { [ 'add_resource',
+ 'change_resource',
+ 'delete_resource']:
+ app => "resources",
+ }
}