Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
redmine [2013/08/26 14:11] – [Autoriser l'utilisateur redmine à gérer gitolite] madko | redmine [Date inconnue] (Version actuelle) – modification externe (Date inconnue) 127.0.0.1 | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
====== Redmine ====== | ====== Redmine ====== | ||
+ | |||
+ | ===== Fonctionnement général ===== | ||
+ | |||
+ | |||
+ | Redmine met à jour les ACL et dépots GIT via un accès au dépôt gitolite. La clef publique SSH redmine doit être une clef d' | ||
+ | |||
+ | |||
+ | Quand redmine est utilisé pour ajouter, vérouiller ou dévérouiller une clef publique SSH, il utilise le dépôt redmine pour faire la configuration adéquate. Un hook d' | ||
+ | |||
+ | |||
+ | Un autre hook prévient redmine d'un changement sur le dépôt git. | ||
===== Installation redmine ===== | ===== Installation redmine ===== | ||
Ligne 114: | Ligne 125: | ||
- | Le plugins redmine-gitolite devrait être visible dans la page d' | + | Le plugins redmine-gitolite devrait être visible dans la page d' |
===== Installation gitolite ===== | ===== Installation gitolite ===== | ||
Ligne 142: | Ligne 152: | ||
Pour que les nouveaux contextes soient positionnés. Sinon SELinux bloquera l' | Pour que les nouveaux contextes soient positionnés. Sinon SELinux bloquera l' | ||
+ | |||
==== Récupération de gitolite ==== | ==== Récupération de gitolite ==== | ||
Ligne 160: | Ligne 171: | ||
[git@srvgit] $ gitolite/ | [git@srvgit] $ gitolite/ | ||
</ | </ | ||
+ | |||
+ | |||
==== Autoriser l' | ==== Autoriser l' | ||
Ligne 169: | Ligne 182: | ||
[git@srvgit] $ gitolite setup -pk / | [git@srvgit] $ gitolite setup -pk / | ||
</ | </ | ||
+ | ==== Gestion des clefs ssh par gitolite ==== | ||
+ | |||
+ | |||
+ | Il faut ajouter un hook dans gitolite pour gérer les clefs ssh dans le .ssh/ | ||
+ | |||
+ | |||
+ | < | ||
+ | [git@srvgit] $ cd /tmp | ||
+ | [git@srvgit] $ git clone git:// | ||
+ | [git@srvgit] $ cd redmine-gitolite | ||
+ | [git@srvgit] $ git checkout -t origin/ | ||
+ | [git@srvgit] $ cp contrib/ | ||
+ | [git@srvgit] $ chmod +x ~/ | ||
+ | </ | ||
+ | |||
+ | |||
+ | Il faut éditer ce fichier post-receive pour ajouter l'url du redmine, et la clef pour l' | ||
+ | |||
+ | |||
+ | Il faut ensuite editer le gitolite.rc pour exécuter ce hook, en ajoutant " | ||
+ | |||
+ | |||
+ | Puis lancer: | ||
+ | |||
+ | |||
+ | < | ||
+ | [git@srvgit] $ gitolite setup | ||
+ | </ | ||
+ | |||
+ | |||
==== Tester l' | ==== Tester l' | ||
Ligne 177: | Ligne 220: | ||
< | < | ||
[redmine@srvgit] $ ssh -T git@localhost | [redmine@srvgit] $ ssh -T git@localhost | ||
+ | </ | ||
+ | |||
+ | |||
+ | Exemple: | ||
+ | |||
+ | |||
+ | < | ||
+ | hello redmine, this is git@supervision running gitolite3 v3.5.2-3-g2515992 on git 1.7.1 | ||
+ | |||
+ | R W gitolite-admin | ||
+ | R W testing | ||
</ | </ | ||