•  
     
    story #8021 limit repository created on mirrors
Summary
site admin
limit repository created on mirrors
Empty
  • Use gitolite HOSTNAME mechanism
  • Add "hostname" info as mirror parameter
  • Once hostname is defined
    • Master hostname is assumed to be "master" (lowercase)
    • tuleap generates:
      • a gitolite.conf with [1] as content
      • a master.conf with all gitolite repo (actually it's the previous "gitolite.conf", see [2])
      • a file per mirror with mirror's hostname name (sfo in [3] exemple)
      • a directory per project/mirror with the conf file for the project with the repo that must be mirrored on the project (and only those files)
  • Plus other fixes to include:
    • gitolite-admin should be updated when the permissions changes (same as request #8001)

[1] gitolite.conf content

include "%HOSTNAME.conf"

[2] example of master.conf

include "projects/mozilla.conf"
include "projects/eclipse.conf"
include "projects/apache.conf"

[3] example of sfo.conf

include "sfo/mozilla.conf"
include "sfo/apache.conf"
Empty
loic.lefort@st.com, Nouha Terzi (terzino)
Status
Empty
Done
Development
  • [ ] Does it involves User Interface? 
  • [ ] Are there any mockups?
  • [ ] Are permissions checked?
  • [ ] Does it need Javascript development?
  • [ ] Does it need a forge upgrade bucket?
  • [ ] Does it need to execute things in system events?
  • [ ] Does it impact project creation (templates)?
  • [ ] Is it exploratory?
Empty
Details
#8021
Manuel Vacelet (vaceletm)
2015-05-28 09:52
2015-04-20 18:03
7819

References
Referencing story #8021

Follow-ups

User avatar
Loïc Lefort (lefort)2015-05-28 09:52
I have updated permissions on a mirrored git. System event is completed.
I see files in gitolite config were updated (recent write time), but still Le_Mans.conf file is empty.

  • Category set to
User avatar
Martin GOYOT (goyotm)2015-05-28 09:43
I see. Could you try to update permissions on one of these repository and let the corresponding system event pass and then check again the content of the file?

Regards,
-- Martin
User avatar
Loïc Lefort (lefort)2015-05-28 09:30
In my case, I have created a Le_Mans mirror.
When as admin, I use Admin/"Git Plugin"/"Repositories on this mirror" for my mirror, I have correct list (2 git mirrored, from 2 different projects).

When I have a look at config for gitolite, I see Le_Mans directory containing one file per project and files content seems correct. I see also a file Le_Mans.conf but it is empty while it should have some "include Le_Mans/xxx.conf" lines.
We have this problem for all mirrors.
User avatar
Martin GOYOT (goyotm)2015-05-27 18:27
No, it should be good. Have you pressed the dump mirrored repositories button?

If yes, does your mirrors are concerned by a repository? I mean:

repo1 in project1 is mirrored on mirror1 => mirror1.conf includes mirror1/project1.conf which contains repo1 configuration

Regards,
-- Martin
User avatar
Loïc Lefort (lefort)2015-05-27 18:06
I see new .conf files for each mirrors, but they all are empty.
New directories per mirror seems to have a correct content.

I have installed tuleap 8.1.99.67.
Was there some specific steps for upgrade I could have missed ?
User avatar
Loïc Lefort (lefort)2015-04-21 16:53
Do not forget lines :
@mirrors = …
repo gitolite-admin
R = @mirrors
RW+ = id_rsa_gl-adm
I suppose they are useless on a mirror, so they could be moved to file master.conf

Add an error message if user tries to create a mirror named "projects", to avoid conflict with directory "projects" used by master ?
User avatar
  • Acceptance criteria
    Something went wrong, the follow up content couldn't be loaded
    Only formatting have been changed, you should switch to markup to see the changes