Projet

Général

Profil

Installation Gateway dans nebula » Historique » Version 35

Gérald Schwartzmann, 28/08/2014 16:00

1 26 Gilles Grandgérard
h1. Installation pour utilisation
2 3 Gilles Grandgérard
3 25 Gilles Grandgérard
h2. 1) Récupération du dépot eole-ci-test
4 1 Gilles Grandgérard
5 4 Gilles Grandgérard
Faire :
6 4 Gilles Grandgérard
<pre>
7 29 Gérald Schwartzmann
git clone https://dev-eole.ac-dijon.fr/git/eole-ci-tests.git
8 4 Gilles Grandgérard
</pre>
9 1 Gilles Grandgérard
10 1 Gilles Grandgérard
h2. 2) Ajout de la gateway dans le eole-ci-tests
11 1 Gilles Grandgérard
12 1 Gilles Grandgérard
il faut créer un script dans 'configuration/gateway/' dont le nom sera 'routeur_<user_ebula>.sh'.
13 25 Gilles Grandgérard
Penser à mettre les droits d'execution.
14 1 Gilles Grandgérard
15 22 Gilles Grandgérard
<pre>
16 22 Gilles Grandgérard
IP_EOLE=<fin de l'Ip sur le reseau EOLE>
17 22 Gilles Grandgérard
</pre>
18 22 Gilles Grandgérard
19 26 Gilles Grandgérard
Voir : 
20 26 Gilles Grandgérard
* http://dev-eole.ac-dijon.fr/projects/eole-interne/wiki/Adressage_ip 
21 26 Gilles Grandgérard
* Attention à ce que l'adresse soit disponible 
22 1 Gilles Grandgérard
23 25 Gilles Grandgérard
h2. 3) Ajout de la clef publique ssh dans eole-ci-tests/security/authorized_keys
24 1 Gilles Grandgérard
25 30 Gérald Schwartzmann
Les clefs publiques SSH présentes dans eole-ci-tests/security/authorized_keys sont automatiquement concatenées dans /root/.ssh/authorized_keys au 1er démarrage de la VM.
26 1 Gilles Grandgérard
L'acces a chaque VM peut se faire sans mot de passe.
27 1 Gilles Grandgérard
28 1 Gilles Grandgérard
Utiliser le nom 'user@hostname' pour votre fichier de cle.
29 1 Gilles Grandgérard
30 1 Gilles Grandgérard
h2. 4) Commit
31 1 Gilles Grandgérard
32 1 Gilles Grandgérard
<pre>
33 31 Gérald Schwartzmann
git add -a
34 31 Gérald Schwartzmann
git commit -m "ajout de l'utisateur <user>"
35 1 Gilles Grandgérard
git push
36 1 Gilles Grandgérard
</pre>
37 26 Gilles Grandgérard
38 26 Gilles Grandgérard
Attendre que Jenkins publie le commit vers les VM
39 26 Gilles Grandgérard
40 26 Gilles Grandgérard
h2. 5) Lancer la gateway
41 26 Gilles Grandgérard
42 35 Gérald Schwartzmann
* Aller dans OpenNebual (https://benjamin.eole.lan/)
43 35 Gérald Schwartzmann
* Aller dans 'Virtual Resources', puis 'Templates'
44 35 Gérald Schwartzmann
* Chercher 'gateway'
45 35 Gérald Schwartzmann
* Cliquer sur 'Instantiate'.La VM démarre.
46 28 Gilles Grandgérard
47 35 Gérald Schwartzmann
* Vérification
48 35 Gérald Schwartzmann
** Se connecter en VNC avec 'eole/$eole&123456'
49 35 Gérald Schwartzmann
** Taper 'ip addr' ==> vérifier l'IP SW EOLE
50 32 Gérald Schwartzmann
* lancer :
51 32 Gérald Schwartzmann
<pre>
52 32 Gérald Schwartzmann
 ssh root@<ipgateway>  ==> la connexion doit être sans mot de passe car la clef
53 32 Gérald Schwartzmann
</pre>
54 26 Gilles Grandgérard
55 26 Gilles Grandgérard
h1. Préparation du poste de travail
56 26 Gilles Grandgérard
57 26 Gilles Grandgérard
h2. 1) Modifier /etc/hosts
58 26 Gilles Grandgérard
59 35 Gérald Schwartzmann
* Ajouter votre gateway : 
60 26 Gilles Grandgérard
<pre>
61 26 Gilles Grandgérard
192.168.230.<IP> gateway.ac-test.fr
62 26 Gilles Grandgérard
</pre>
63 26 Gilles Grandgérard
64 35 Gérald Schwartzmann
* Vérification
65 26 Gilles Grandgérard
<pre>
66 26 Gilles Grandgérard
ping gateway
67 26 Gilles Grandgérard
ping gateway.ac-test.fr
68 26 Gilles Grandgérard
</pre>
69 26 Gilles Grandgérard
70 35 Gérald Schwartzmann
* Concatener le fichier (eole-ci-tests.git)/scripts/host dans /etc/hosts
71 26 Gilles Grandgérard
72 33 Gérald Schwartzmann
<pre>
73 33 Gérald Schwartzmann
cd (eole-ci-tests.git)/scripts/
74 33 Gérald Schwartzmann
cat hosts >> /etc/hosts
75 33 Gérald Schwartzmann
</pre>
76 33 Gérald Schwartzmann
77 35 Gérald Schwartzmann
* Executer le fichier (eole-ci-tests.git)/scripts/gateway-up.sh
78 26 Gilles Grandgérard
Les routes sont inscrites...
79 3 Gilles Grandgérard
80 27 Gilles Grandgérard
h2. 1) Vérification
81 27 Gilles Grandgérard
82 27 Gilles Grandgérard
*Aller dans OpenNebual (https://benjamin.eole.lan/)
83 27 Gilles Grandgérard
*Aller dans 'Virtual Resources', puis 'Templates'
84 27 Gilles Grandgérard
*Chercher 'aca.eolebase'
85 27 Gilles Grandgérard
*Cliquer sur 'Instantiate'.La VM démarre.
86 27 Gilles Grandgérard
*Se connecter en VNC avec 'eole/$eole&123456'
87 27 Gilles Grandgérard
*Taper 'ip addr' ==> vérifier l'IP SW EOLE
88 27 Gilles Grandgérard
89 27 Gilles Grandgérard
90 1 Gilles Grandgérard
h1. Creation d'un test
91 1 Gilles Grandgérard
92 3 Gilles Grandgérard
todo
93 3 Gilles Grandgérard
94 1 Gilles Grandgérard
h1. Lancement dans jenkins
95 3 Gilles Grandgérard
96 3 Gilles Grandgérard
h2. Mise à jour de "eole-ci-tests" sur toutes les VM
97 3 Gilles Grandgérard
98 1 Gilles Grandgérard
todo
99 1 Gilles Grandgérard
100 31 Gérald Schwartzmann
h2.