aboutsummaryrefslogtreecommitdiffstats
path: root/modules/transifex
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2011-02-25 00:55:23 +0000
committerMichael Scherer <misc@mageia.org>2011-02-25 00:55:23 +0000
commit75efc2825979ba6de2ba4f638b4ffef07ffc9038 (patch)
tree2782e838114a6ae068ae7625143c095897166a7c /modules/transifex
parent5e1118756dc5fcec937b0bcc91d9fd16c5b1585f (diff)
downloadpuppet-75efc2825979ba6de2ba4f638b4ffef07ffc9038.tar
puppet-75efc2825979ba6de2ba4f638b4ffef07ffc9038.tar.gz
puppet-75efc2825979ba6de2ba4f638b4ffef07ffc9038.tar.bz2
puppet-75efc2825979ba6de2ba4f638b4ffef07ffc9038.tar.xz
puppet-75efc2825979ba6de2ba4f638b4ffef07ffc9038.zip
- add permissions to add ressources
Diffstat (limited to 'modules/transifex')
-rw-r--r--modules/transifex/manifests/init.pp13
1 files changed, 12 insertions, 1 deletions
diff --git a/modules/transifex/manifests/init.pp b/modules/transifex/manifests/init.pp
index 0571d689..c27f6d6b 100644
--- a/modules/transifex/manifests/init.pp
+++ b/modules/transifex/manifests/init.pp
@@ -87,12 +87,23 @@ class transifex {
apache::vhost_redirect_ssl { "transifex.$domain": }
+ # the group are mapped from ldap, since AUTH_LDAP_FIND_GROUP_PERMS is set to yes
+ # but the group need to exist in django first
django_application::create_group { ["mga-i18n","mga-i18n-committers"]:
module => "transifex",
path => "/usr/share/transifex:/usr/share",
}
- django_application::add_permission_to_group { ['add_project','change_project','delete_project']:
+ # 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",