2013-11-01 17:20:07 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/* Copiez coller ce fichier en config.php pour executer correctement Git Center */
|
|
|
|
|
|
|
|
// TRUE : Sécurité si vous executez Git Center sur un serveur GitLab
|
|
|
|
define('ONGITLAB', false);
|
|
|
|
|
2014-01-23 20:56:14 +00:00
|
|
|
/*
|
|
|
|
* Dans le cas d'une connexion avec une clef RSA (clef privée) :
|
|
|
|
* -- Le mot de passe SSH (pass) est facultatif et sera utilisé en car de refus de connexion avec la clef
|
|
|
|
* -- Le keypass est le mot de passe de la clef (laissez vide ou omettez pas le champ si vous n'avez pas mis de keypass)
|
|
|
|
* -- Le key est votre clef privée qui peut être soit un chemin (absolu ou relatif) vers le fichier id_rsa soit LA FUCKING CLEF PRIVÉE EN DUR !!!
|
|
|
|
* ^ OUI ÇA FONCTIONNE OMGWTFBBQ11
|
|
|
|
*/
|
2014-02-03 16:02:15 +00:00
|
|
|
|
2013-11-01 17:20:07 +00:00
|
|
|
// Définition de la forêt de serveurs
|
|
|
|
$servers = array(
|
|
|
|
'Groupe de serveur 1' => array(
|
|
|
|
'prod1' => array(
|
|
|
|
'title' => 'Production de la mort',
|
|
|
|
'host' => '192.168.1.10',
|
|
|
|
'port' => 22,
|
|
|
|
'user' => 'root',
|
|
|
|
'pass' => 'root',
|
2014-04-07 07:58:06 +00:00
|
|
|
'path' => '/home/user/root',
|
|
|
|
'after_push' => 'php -f TAMERE.php'
|
2013-11-01 17:20:07 +00:00
|
|
|
),
|
|
|
|
'test1' => array(
|
|
|
|
'title' => 'Test de la mort',
|
|
|
|
'host' => '192.168.1.20',
|
|
|
|
'port' => 22,
|
|
|
|
'user' => 'user',
|
|
|
|
'pass' => 'blbl',
|
2014-04-07 07:58:06 +00:00
|
|
|
'path' => '/home/user/test',
|
|
|
|
'after_pull' => 'php -f TONPERE.php'
|
2013-11-01 17:20:07 +00:00
|
|
|
),
|
|
|
|
'prod2' => array(
|
|
|
|
'title' => 'Production de la mort',
|
|
|
|
'host' => '192.168.1.30',
|
|
|
|
'port' => 22,
|
|
|
|
'user' => 'root',
|
2014-01-23 20:56:14 +00:00
|
|
|
'pass' => 'partoutatiss',
|
2013-11-01 17:20:07 +00:00
|
|
|
'path' => '/home/user/root'
|
2014-02-03 16:02:15 +00:00
|
|
|
)
|
2013-11-01 17:20:07 +00:00
|
|
|
),
|
2014-01-23 20:56:14 +00:00
|
|
|
'Groupe de serveur 2 conf RSA' => array(
|
2013-11-01 17:20:07 +00:00
|
|
|
'prod3' => array(
|
|
|
|
'title' => 'Production de la mort',
|
|
|
|
'host' => '192.168.1.40',
|
|
|
|
'port' => 22,
|
|
|
|
'user' => 'root',
|
|
|
|
'pass' => 'root',
|
2014-01-23 20:56:14 +00:00
|
|
|
'key' => '/Users/tamere/.ssh/id_rsa',
|
|
|
|
'keypass' => 'rootdelaclefrsa',
|
2013-11-01 17:20:07 +00:00
|
|
|
'path' => '/home/user/root'
|
|
|
|
),
|
|
|
|
'test3' => array(
|
|
|
|
'title' => 'Test de la mort',
|
|
|
|
'host' => '192.168.1.40',
|
|
|
|
'port' => 22,
|
|
|
|
'user' => 'user',
|
2014-01-23 20:56:14 +00:00
|
|
|
'key' => '-----BEGIN RSA PRIVATE KEY-----
|
|
|
|
MIIEpAIBAAKCAQEAw/scCsz9rtp+2VzUwpkdqNHPy6vqS72qvy3dt04U0rHj6NVv
|
|
|
|
/L+zF3M0EfULpNAB6D5XY35D854IKZ/Dwcp1/2xjPkLJ+XaLl38TUStLfMQA8EgR
|
|
|
|
EVzW5QrAte8xZOF35lyfoi5HBQay8R3d3SqIoRFzINEpWHtwlIHbf6CACQ1Rgx2J
|
|
|
|
gQo1/i8gu2xzp7T04cGSWguCEKbQsDqLTHNGYTDl2fTJki9b3NE6Fm+0/qp87pPq
|
|
|
|
YVNqapwPYlVDpmql4kcomPKnBzo3/ThFXeq5iwJMKwTgqnVUIttKTKJ1/HB83VPM
|
|
|
|
n/+FR+hwkcqtgSiPLI9ddtsRikO1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xMrcWrxgC2MKIuEjQW054Ldsu5h0bPukOMGM4+n+tfbutQFh9cfgzv/xbi14Ua
|
|
|
|
EoU8KFImGG8vYk2476DJmrp+0HF0oFDKujFye7qdAtj/ZdcvfrMTZbkSHnYGPcK7
|
|
|
|
dP6swwKBgQDT95rsxbXPtpA03H46GpVeBYJ5ARepPpObrilYxkt5LymncAJykAvr
|
|
|
|
KW6dcEHI6KsqCFJz+jqUeuKEM9yHn23UtvxiUDEtdbRJ6yKIhJzwG/c/ZOxWlIVR
|
|
|
|
PLBLwUI2uDV8cMCdDfEYMxkBbMHP4L2IDKjEIznGRIw386Cq2LsOmg==
|
|
|
|
-----END RSA PRIVATE KEY-----',
|
2013-11-01 17:20:07 +00:00
|
|
|
'path' => '/home/user/test'
|
|
|
|
),
|
|
|
|
'prod4' => array(
|
|
|
|
'title' => 'Production de la mort',
|
|
|
|
'host' => '192.168.1.50',
|
|
|
|
'port' => 22,
|
|
|
|
'user' => 'root',
|
2014-01-23 20:56:14 +00:00
|
|
|
'pass' => 'blbl',
|
2013-11-01 17:20:07 +00:00
|
|
|
'path' => '/home/user/root'
|
|
|
|
)
|
|
|
|
)
|
|
|
|
);
|