How it's used:
When I want to make my slave offline, as a grokmirror admin, on each slave I:
- run "gitolite-tuleap-membership --create-cache"
- This fetch the user membership (users.json)
- edit gitolite-tuleap-membership and set use_cache = true;
- And that's all, the slave now no longer depends on master
When operations are completed on the master, the slave should be re-connected (use_cache = false)
Work needed
- A new option "use_cache" is added to 'tuleap-gitolite-membership' tool
- A new CLI switch '--create-cache' is added to tuleap-gitolite-membership to fetch all membership of users
- This leverage on the list of ssh keys already available in gitolite
- A new REST route is added on Tuleap to fetch membership of a list of users at once (/!\ be careful, the target is 4000 users)
- The result is stored as a json file (no need to store in a DB for the time being)