Wiki » Historique » Version 17
Patrice THEBAULT, 10/03/2015 16:19
1 | 1 | Thierry Bertrand | h1. Principe de fonctionnement |
---|---|---|---|
2 | 1 | Thierry Bertrand | |
3 | 1 | Thierry Bertrand | Le paquet eole-zephir-medde sert à alimenter le Zephir avec les informations des modules eSBL & eCDL. |
4 | 1 | Thierry Bertrand | Il contient à minima les dictionnaires et les fonctions nécessaires pour pouvoir déclarer un serveur via le frontend Zephir. |
5 | 1 | Thierry Bertrand | |
6 | 1 | Thierry Bertrand | Par extension, il peut aussi contenir tous les dictionnaires "hors Eole" nécessaires aux variantes. |
7 | 7 | Thierry Bertrand | *! les dictionnaires portés par Eole ne doivent pas figurer dans ce dépôt ! Ce serait fatal à apt !* |
8 | 1 | Thierry Bertrand | |
9 | 11 | Thierry Bertrand | h1. Arborescence dépôt |
10 | 1 | Thierry Bertrand | |
11 | 2 | Thierry Bertrand | <pre> |
12 | 1 | Thierry Bertrand | |_ creole |
13 | 1 | Thierry Bertrand | | |_ funcs |
14 | 1 | Thierry Bertrand | | |_ creole3 |
15 | 1 | Thierry Bertrand | | |_ mesFonctionsPerso.py |
16 | 5 | Thierry Bertrand | </pre>Ce répertoire sert à stocker l'ensemble des fonctions personnalisées nécessaires à la saisie. |
17 | 5 | Thierry Bertrand | |
18 | 3 | Thierry Bertrand | <pre> |
19 | 1 | Thierry Bertrand | |_ zephir |
20 | 1 | Thierry Bertrand | | |_ default_modules |
21 | 1 | Thierry Bertrand | | |_ 6 |
22 | 1 | Thierry Bertrand | | |_ ecdl-2.4 |
23 | 1 | Thierry Bertrand | | |_ esbl-2.4 |
24 | 1 | Thierry Bertrand | | |_ 7 |
25 | 1 | Thierry Bertrand | | |_ ecdl-2.4.1 |
26 | 1 | Thierry Bertrand | | |_ ecdl-2.4.1 |
27 | 9 | Thierry Bertrand | </pre>Les répertoires 6 et 7 servent à stocker les fichiers contenant les informations de dictionnaires nécessaires par module. |
28 | 9 | Thierry Bertrand | Ces chiffres correspondent respectivement aux versions 2.4 & 2.4.1 d'Eole. |
29 | 1 | Thierry Bertrand | Les fichiers doivent être appelés *nom_module-release* |
30 | 9 | Thierry Bertrand | |
31 | 9 | Thierry Bertrand | ex. ecdl-2.4.1 |
32 | 9 | Thierry Bertrand | |
33 | 5 | Thierry Bertrand | |
34 | 6 | Thierry Bertrand | |
35 | 1 | Thierry Bertrand | <pre> |
36 | 10 | Thierry Bertrand | |_ zephir |
37 | 1 | Thierry Bertrand | | |_ dictionnaires |
38 | 1 | Thierry Bertrand | | |_ 2.4 |
39 | 1 | Thierry Bertrand | | |_ eole |
40 | 1 | Thierry Bertrand | | |_ eole-ecdl |
41 | 1 | Thierry Bertrand | | |_ eole-esbl |
42 | 1 | Thierry Bertrand | | |_ 2.4.1 |
43 | 1 | Thierry Bertrand | | |_ eole |
44 | 1 | Thierry Bertrand | | |_ eole-ecdl |
45 | 1 | Thierry Bertrand | | |_ eole-ecdlannuaire |
46 | 1 | Thierry Bertrand | | |_ eole-esbl |
47 | 1 | Thierry Bertrand | | |_ supervision-psin |
48 | 6 | Thierry Bertrand | </pre>Ces répertoires correspondent aux noms des paquets d'où sont issus les dictionnaires pour le module. |
49 | 6 | Thierry Bertrand | Ils abritent tous les dictionnaires nécessaires au frontend. |
50 | 6 | Thierry Bertrand | |
51 | 6 | Thierry Bertrand | Par exemple, le répertoire |
52 | 6 | Thierry Bertrand | <pre> |
53 | 6 | Thierry Bertrand | | |_ supervision-psin |
54 | 6 | Thierry Bertrand | </pre>contient |
55 | 1 | Thierry Bertrand | 20_psin.xml 49_ocsinventory_agent.xml |
56 | 8 | Thierry Bertrand | |
57 | 11 | Thierry Bertrand | h1. Principes d'alimentation |
58 | 8 | Thierry Bertrand | |
59 | 1 | Thierry Bertrand | L'alimentation peut se faire de deux manières : |
60 | 10 | Thierry Bertrand | |
61 | 11 | Thierry Bertrand | h2. 1 - outils zephir-parc |
62 | 10 | Thierry Bertrand | |
63 | 10 | Thierry Bertrand | Le dépôt zephir-parc contient un tas d'outils permettant quasiment d'automatiser la collecte d'informations nécessaires. |
64 | 10 | Thierry Bertrand | |
65 | 17 | Patrice THEBAULT | Ces outils ne gèrent que les modules et pas les variantes. |
66 | 17 | Patrice THEBAULT | |
67 | 10 | Thierry Bertrand | Sur un serveur installé, mis *à jour* de sa version et *instancié* |
68 | 10 | Thierry Bertrand | |
69 | 10 | Thierry Bertrand | <pre> |
70 | 10 | Thierry Bertrand | git clone https://dev-eole.ac-dijon.fr/git/zephir-parc.git |
71 | 10 | Thierry Bertrand | cd zephir-parc/outils |
72 | 1 | Thierry Bertrand | </pre> |
73 | 17 | Patrice THEBAULT | Ce répertoire contient un script shell zephir_dicts.sh qui, lancé sur le module, va générer une archive sous /tmp (Cette opération est donc à répéter sur un serveur de chaque module) |
74 | 10 | Thierry Bertrand | |
75 | 10 | Thierry Bertrand | L'archive est organisée de la manière suivante (cas d'un eCDL) : |
76 | 10 | Thierry Bertrand | <pre> |
77 | 10 | Thierry Bertrand | ecdl-2.4.1.paqs |
78 | 10 | Thierry Bertrand | |_ eole |
79 | 10 | Thierry Bertrand | | |_ eole-antivirus |
80 | 10 | Thierry Bertrand | | |_ eole-client-annuaire |
81 | 10 | Thierry Bertrand | | |_ eole-ead-common |
82 | 10 | Thierry Bertrand | | |_ eole-ecdl |
83 | 10 | Thierry Bertrand | | |_ eole-ecdlannuaire |
84 | 10 | Thierry Bertrand | | |_ eole-exim |
85 | 10 | Thierry Bertrand | | |_ eole-fichier-common |
86 | 10 | Thierry Bertrand | | |_ eole-fichier-primaire |
87 | 10 | Thierry Bertrand | | |_ eole-flask |
88 | 10 | Thierry Bertrand | | |_ eole-nut |
89 | 10 | Thierry Bertrand | | |_ eole-server |
90 | 10 | Thierry Bertrand | | |_ eole-userpassword |
91 | 10 | Thierry Bertrand | | |_ supervision-psin |
92 | 10 | Thierry Bertrand | </pre> |
93 | 13 | Thierry Bertrand | fichier nommodule-release |
94 | 10 | Thierry Bertrand | Le fichier *ecdl-2.4.1.paqs* correspond au fichier *nom_module-release* vu précédemment et doit être renommé *sans* l'extension .paqs. |
95 | 10 | Thierry Bertrand | Soit ici ecdl-2.4.1.paqs devient ecdl-2.4.1 |
96 | 10 | Thierry Bertrand | De plus, il *doit* subir une modification nécessaire pour indiquer si le module concerné est en mode conteneur ou pas : |
97 | 10 | Thierry Bertrand | mode *non conteneur* : ajout de la ligne: eole/eole-zephir-module |
98 | 10 | Thierry Bertrand | mode *conteneur* : eole/eole-zephir-module-container |
99 | 10 | Thierry Bertrand | Reste alors à le placer au bon endroit sur le dépôt soit ici : _eole-zephir-medde/zephir/default_modules/7/ecdl-2.4.1_ |
100 | 10 | Thierry Bertrand | |
101 | 13 | Thierry Bertrand | répertoires de dictionnaires |
102 | 10 | Thierry Bertrand | L'archive se comporte comme l'arborescence du dépôt. On obtient des répertoires qui correspondent à des paquets et contenant des dictionnaires. |
103 | 12 | Thierry Bertrand | Ils devront être ajoutés au dépôt à l'endroit adéquat sous */zephir/dictionnaires/release* soit ici : _eole-zephir-medde/zephir/dictionnaires/2.4.1/_ |
104 | 12 | Thierry Bertrand | |
105 | 10 | Thierry Bertrand | *Rappel : dans le cadre des modules MEDDE traités ici, il faut purger tous les dicos portés par Eole et ne pas les ajouter sous peine de casser apt* |
106 | 14 | Thierry Bertrand | |
107 | 15 | Thierry Bertrand | h2. 2 - Méthode automatique type EN |
108 | 16 | Patrice THEBAULT | |
109 | 14 | Thierry Bertrand | Un script parse l'ensemble des dicos de tous les dépôts et alimente le paquet des dictionnaires zephir EN automatiquement. |
110 | 14 | Thierry Bertrand | Il reste à développer ET tester au MEDDE |
111 | 14 | Thierry Bertrand | |
112 | 15 | Thierry Bertrand | h2. 3 - A la main ... |
113 | 16 | Patrice THEBAULT | |
114 | 14 | Thierry Bertrand | Pour chaque dépôt à jour concerné, récupérer de chaque branche (2.4, 2.4.1 ...), l'ensemble des dicos en n'oubliant pas de préciser le nom du paquet pour le répertoire. |
115 | 14 | Thierry Bertrand | Ou, à chaque modification de dictionnaire, se poser la question *"Et le Zephir dans tout ça ?"* et prendre le réflexe d'alimenter ce dépôt systématiquement et correctement. |