Setting up mirroring

Setting up mirroring has quite a few manual steps, although each step in itself is quite simple. The first step is to give each host a name, and make sure that the hosts can all talk to one another by these names. The second step is to enable mirroring on each server.

We start by installing Gitolite as normal on all the servers. Then, we edit each server's $HOME/.gitolite.rc file and uncomment the line defining the HOSTNAME, choosing a simple hostname as the value.

Tip

The hostname should be a simple word; it is of interest only to Gitolite and does not have any relation to the server's hostname as known by the operating system and DNS records.

Gitolite mirroring works by allowing the servers to communicate with each other using ...

Get Gitolite Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.