Information Technology Reference
In-Depth Information
The gitolite package is installed in the system by the
vagrant
user with the
$
sudo apt-get install
command. Once the package is installed we can config-
ure it for any arbitrary account. The command to configure gitolite for an account is
$
gl-setup
. The only necessary parameter of this command is the filename of the pub-
lic key for the administrator. We want to use
vagrant
as the administrator, thus we
first have to generate the RSA key for vagrant:
# Guest OS (Ubuntu 12.04)
# as vagrant user
$ ssh-keygen -t rsa -C
vagrant@localhost
-N "" -f .ssh/
id_rsa
The key has to be copied to git account. We use the scp command for this:
# Guest OS (Ubuntu 12.04)
# as vagrant user
You should notice that vagrant's public key
∼
/.ssh/id_rsa.pub
will be copied
named from
id_rsa.pub
to
admin.pub
. This is very important. Gitolite uses file-
names as usernames. If you name the public key file as
sarah.pub
, then gitolite will
treat this key as the user named
sarah
.
to the git account with:
$ sudo su - git
and then run the following command:
$ gl-setup admin.pub
Managing users and privileges