From 75efc2825979ba6de2ba4f638b4ffef07ffc9038 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Fri, 25 Feb 2011 00:55:23 +0000 Subject: - add permissions to add ressources --- modules/transifex/manifests/init.pp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'modules') 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", -- cgit v1.2.1