Projet

Général

Profil

Installation Gateway dans nebula » Historique » Version 36

Gilles Grandgérard, 02/09/2014 13:53

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 36 Gilles Grandgérard
h2. 5) Initialiser les réseaux dans Nebula
41 1 Gilles Grandgérard
42 36 Gilles Grandgérard
* Ouvrir votre navigateur, et Aller http://jenkins.eole.lan/view/Dev/job/genere-modele-reseau-dans-nebula/build?delay=0sec
43 36 Gilles Grandgérard
44 36 Gilles Grandgérard
h2. 6) Lancer la gateway
45 36 Gilles Grandgérard
46 36 Gilles Grandgérard
* Aller dans OpenNebula (https://benjamin.eole.lan/)
47 35 Gérald Schwartzmann
* Aller dans 'Virtual Resources', puis 'Templates'
48 35 Gérald Schwartzmann
* Chercher 'gateway'
49 35 Gérald Schwartzmann
* Cliquer sur 'Instantiate'.La VM démarre.
50 28 Gilles Grandgérard
51 35 Gérald Schwartzmann
* Vérification
52 35 Gérald Schwartzmann
** Se connecter en VNC avec 'eole/$eole&123456'
53 35 Gérald Schwartzmann
** Taper 'ip addr' ==> vérifier l'IP SW EOLE
54 32 Gérald Schwartzmann
* lancer :
55 32 Gérald Schwartzmann
<pre>
56 32 Gérald Schwartzmann
 ssh root@<ipgateway>  ==> la connexion doit être sans mot de passe car la clef
57 32 Gérald Schwartzmann
</pre>
58 26 Gilles Grandgérard
59 26 Gilles Grandgérard
h1. Préparation du poste de travail
60 26 Gilles Grandgérard
61 26 Gilles Grandgérard
h2. 1) Modifier /etc/hosts
62 26 Gilles Grandgérard
63 35 Gérald Schwartzmann
* Ajouter votre gateway : 
64 26 Gilles Grandgérard
<pre>
65 26 Gilles Grandgérard
192.168.230.<IP> gateway.ac-test.fr
66 26 Gilles Grandgérard
</pre>
67 26 Gilles Grandgérard
68 35 Gérald Schwartzmann
* Vérification
69 26 Gilles Grandgérard
<pre>
70 26 Gilles Grandgérard
ping gateway
71 26 Gilles Grandgérard
ping gateway.ac-test.fr
72 26 Gilles Grandgérard
</pre>
73 26 Gilles Grandgérard
74 35 Gérald Schwartzmann
* Concatener le fichier (eole-ci-tests.git)/scripts/host dans /etc/hosts
75 26 Gilles Grandgérard
76 33 Gérald Schwartzmann
<pre>
77 33 Gérald Schwartzmann
cd (eole-ci-tests.git)/scripts/
78 33 Gérald Schwartzmann
cat hosts >> /etc/hosts
79 33 Gérald Schwartzmann
</pre>
80 33 Gérald Schwartzmann
81 35 Gérald Schwartzmann
* Executer le fichier (eole-ci-tests.git)/scripts/gateway-up.sh
82 26 Gilles Grandgérard
Les routes sont inscrites...
83 3 Gilles Grandgérard
84 27 Gilles Grandgérard
h2. 1) Vérification
85 27 Gilles Grandgérard
86 27 Gilles Grandgérard
*Aller dans OpenNebual (https://benjamin.eole.lan/)
87 27 Gilles Grandgérard
*Aller dans 'Virtual Resources', puis 'Templates'
88 27 Gilles Grandgérard
*Chercher 'aca.eolebase'
89 27 Gilles Grandgérard
*Cliquer sur 'Instantiate'.La VM démarre.
90 27 Gilles Grandgérard
*Se connecter en VNC avec 'eole/$eole&123456'
91 27 Gilles Grandgérard
*Taper 'ip addr' ==> vérifier l'IP SW EOLE
92 27 Gilles Grandgérard
93 27 Gilles Grandgérard
94 1 Gilles Grandgérard
h1. Creation d'un test
95 1 Gilles Grandgérard
96 3 Gilles Grandgérard
todo
97 3 Gilles Grandgérard
98 1 Gilles Grandgérard
h1. Lancement dans jenkins
99 3 Gilles Grandgérard
100 3 Gilles Grandgérard
h2. Mise à jour de "eole-ci-tests" sur toutes les VM
101 3 Gilles Grandgérard
102 1 Gilles Grandgérard
todo
103 1 Gilles Grandgérard
104 31 Gérald Schwartzmann
h2.