Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| elearning:workbooks:debian:6:avance:l129:part4 [2019/11/03 11:28] – admin | elearning:workbooks:debian:6:avance:l129:part4 [2022/06/22 08:56] (Version actuelle) – admin | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| ~~PDF: | ~~PDF: | ||
| + | |||
| + | Version : **2022.01** | ||
| Dernière mise-à-jour : ~~LASTMOD~~ | Dernière mise-à-jour : ~~LASTMOD~~ | ||
| - | ======DOF504 | + | ======DOF404 |
| - | =====Hiera===== | + | =====Contenu du Module===== |
| - | ====Préparation==== | + | * **DOF404 - Hiera et Modules** |
| + | * Contenu du Module | ||
| + | * Préparation | ||
| + | * Hiera | ||
| + | * Présentation | ||
| + | * LAB #1 - Environnements | ||
| + | * LAB #2 -Les Types de Données Hiera | ||
| + | * LAB #3 - Interpolation | ||
| + | * Les Sources de Données basées sur des Facts | ||
| + | * LAB #4 -Créer des Ressources avec les Données d' | ||
| + | * LAB #5 - Gérer des Données Secrètes | ||
| + | * Modules | ||
| + | * LAB #6 - Installer des Modules | ||
| + | * LAB #7 - Utilisation des Modules | ||
| + | * puppetlabs/ | ||
| + | * puppetlabs/ | ||
| + | * puppet/ | ||
| - | ===Sous Debian/ | + | =====Préparation===== |
| + | |||
| + | Re-créez la machine virtuelle Puppet : | ||
| < | < | ||
| - | trainee@puppet:~$ cd puppet-beginners-guide-3 | + | desktop@serverXX:~$ cd puppet-beginners-guide-3 |
| - | trainee@puppet: | + | desktop@serverXX: |
| - | trainee@puppet: | + | desktop@serverXX: |
| - | trainee@puppet: | + | desktop@serverXX: |
| </ | </ | ||
| - | ===Sous Windows=== | + | =====Hiera===== |
| - | + | ||
| - | Exécutez **cmd** et saisissez les commandes suivantes : | + | |
| - | + | ||
| - | < | + | |
| - | Microsoft Windows [version 10.0.16299.431] | + | |
| - | (c) 2017 Microsoft Corporation. Tous droits réservés. | + | |
| - | + | ||
| - | C: | + | |
| - | + | ||
| - | C: | + | |
| - | + | ||
| - | C: | + | |
| - | + | ||
| - | C: | + | |
| - | + | ||
| - | C: | + | |
| - | </ | + | |
| ====Présentation==== | ====Présentation==== | ||
| - | Le manifest suivant stipule la version de l' | + | Le manifest suivant stipule la version de l' |
| < | < | ||
| Ligne 47: | Ligne 50: | ||
| </ | </ | ||
| - | Quand une mise à jour devient disponible, ce code doit être trouvé et modifié sur l' | + | Quand une mise à jour devient disponible, ce code doit être trouvé et modifié sur l' |
| Qui plus est, la mise à jour des données dans les manifests ne concerne pas uniquement les paquets mais aussi, par exemple, les : | Qui plus est, la mise à jour des données dans les manifests ne concerne pas uniquement les paquets mais aussi, par exemple, les : | ||
| Ligne 57: | Ligne 60: | ||
| * valeurs des configurations telles la quantité de mémoire allouée à un serveur de base de données. | * valeurs des configurations telles la quantité de mémoire allouée à un serveur de base de données. | ||
| - | Hiera permet de gérer les données indépendamment du code Puppet et de spécifier des valeurs différentes par noeud en fonction, par exemple, du nom d' | + | Hiera permet de gérer les données indépendamment du code Puppet et de spécifier des valeurs différentes par noeud en fonction, par exemple, du nom d' |
| Puppet peut ensuite consulter les informations en utilisant **lookup** : | Puppet peut ensuite consulter les informations en utilisant **lookup** : | ||
| Ligne 67: | Ligne 70: | ||
| </ | </ | ||
| - | <WRAP center round important | + | <WRAP center round important> |
| **Important** - **lookup** a besoin du nom de la clef Hiera, par exemple **backup_path**, | **Important** - **lookup** a besoin du nom de la clef Hiera, par exemple **backup_path**, | ||
| </ | </ | ||
| Ligne 88: | Ligne 91: | ||
| </ | </ | ||
| - | Prenons le cas d'un fichier de configuration hiera.yaml | + | Prenons le cas d'un fichier de configuration hiera.yaml |
| < | < | ||
| Ligne 108: | Ligne 111: | ||
| < | < | ||
| - | vagrant@ubuntu-xenial: | + | vagrant@ubuntu-xenial: |
| data environment.conf | data environment.conf | ||
| </ | </ | ||
| - | ====LAB #20 - Environnements==== | + | Copiez **data**, **environment.conf** et **hiera.yaml** du répertoire **/ |
| + | |||
| + | < | ||
| + | vagrant@ubuntu-xenial:/ | ||
| + | vagrant@ubuntu-xenial:/ | ||
| + | vagrant@ubuntu-xenial:/ | ||
| + | data environment.conf | ||
| + | vagrant@ubuntu-xenial:/ | ||
| + | vagrant@ubuntu-xenial: | ||
| + | </ | ||
| + | |||
| + | ====LAB #1 - Environnements==== | ||
| Un environnement est un répertoire contenant : | Un environnement est un répertoire contenant : | ||
| Ligne 124: | Ligne 138: | ||
| vagrant@ubuntu-xenial: | vagrant@ubuntu-xenial: | ||
| --- This is a test | --- This is a test | ||
| - | ... | ||
| </ | </ | ||
| Ligne 147: | Ligne 160: | ||
| Notice: Scope(Class[main]): | Notice: Scope(Class[main]): | ||
| Notice: Scope(Class[main]): | Notice: Scope(Class[main]): | ||
| - | Notice: Compiled catalog for ubuntu-xenial in environment pbg in 0.18 seconds | + | Notice: Compiled catalog for ubuntu-xenial in environment pbg in 0.03 seconds |
| - | Notice: Applied catalog in 0.03 seconds | + | Notice: Applied catalog in 0.01 seconds |
| </ | </ | ||
| Ligne 154: | Ligne 167: | ||
| < | < | ||
| - | vagrant@ubuntu-xenial: | + | vagrant@ubuntu-xenial: |
| --- | --- | ||
| test: 'This is a test' | test: 'This is a test' | ||
| Ligne 246: | Ligne 259: | ||
| < | < | ||
| - | vagrant@ubuntu-xenial: | ||
| - | data environment.conf | ||
| vagrant@ubuntu-xenial: | vagrant@ubuntu-xenial: | ||
| vagrant@ubuntu-xenial: | vagrant@ubuntu-xenial: | ||
| </ | </ | ||
| - | ====LAB #21 -Les Types de Données Hiera==== | + | ====LAB #2 -Les Types de Données Hiera==== |
| Dans le fichier **/ | Dans le fichier **/ | ||
| Ligne 261: | Ligne 272: | ||
| < | < | ||
| - | vagrant@ubuntu-xenial: | + | vagrant@ubuntu-xenial: |
| --- | --- | ||
| test: 'This is a test' | test: 'This is a test' | ||
| Ligne 283: | Ligne 294: | ||
| backup_retention_days: | backup_retention_days: | ||
| backup_path: | backup_path: | ||
| - | ... | + | ips: |
| + | home: '130.190.0.1' | ||
| + | office1: ' | ||
| + | office2: ' | ||
| + | firewall_allow_list: | ||
| + | - " | ||
| + | - " | ||
| + | - " | ||
| + | vpn_allow_list: | ||
| + | cms_parameters: | ||
| + | static: | ||
| + | sites_root: '/ | ||
| + | assets_root: | ||
| + | web_root: ' | ||
| + | laravel: | ||
| + | sites_root: '/ | ||
| + | assets_root: | ||
| + | web_root: ' | ||
| + | force_www_rewrite: | ||
| + | comment: "Force WWW" | ||
| + | rewrite_cond: | ||
| + | rewrite_rule: | ||
| + | users: | ||
| + | - ' | ||
| + | - ' | ||
| + | - ' | ||
| + | - ' | ||
| + | - ' | ||
| + | users2: | ||
| + | ' | ||
| + | ensure: present | ||
| + | uid: 1900 | ||
| + | shell: '/ | ||
| + | ' | ||
| + | ensure: present | ||
| + | uid: 1901 | ||
| + | shell: '/ | ||
| + | ' | ||
| + | ensure: present | ||
| + | uid: 1902 | ||
| + | shell: '/ | ||
| + | ' | ||
| + | ensure: present | ||
| + | uid: 1903 | ||
| + | shell: '/ | ||
| + | ' | ||
| + | ensure: present | ||
| + | uid: 1904 | ||
| + | shell: '/ | ||
| + | mysql:: | ||
| + | mysql:: | ||
| + | apache:: | ||
| + | pbg_ntp_params:: | ||
| + | pbg_ntp_params2:: | ||
| + | pbg_ntp_params2:: | ||
| + | pbg_ntp_params2:: | ||
| </ | </ | ||
| Ligne 310: | Ligne 376: | ||
| </ | </ | ||
| - | <WRAP center round important | + | <WRAP center round important> |
| **Important** - Une valeur booléenne doit être soit **true**, soit **false**. | **Important** - Une valeur booléenne doit être soit **true**, soit **false**. | ||
| </ | </ | ||
| Ligne 338: | Ligne 404: | ||
| </ | </ | ||
| - | Chaque clef du Hash possède son propre nom et est indéntée | + | Chaque clef du Hash possède son propre nom et est indentée |
| Pour mieux comprendre, créez le fichier **lookup_hash.pp** : | Pour mieux comprendre, créez le fichier **lookup_hash.pp** : | ||
| Ligne 360: | Ligne 426: | ||
| vagrant@ubuntu-xenial: | vagrant@ubuntu-xenial: | ||
| Notice: Scope(Class[main]): | Notice: Scope(Class[main]): | ||
| - | Notice: Compiled catalog for ubuntu-xenial in environment pbg in 0.20 seconds | + | Notice: Compiled catalog for ubuntu-xenial in environment pbg in 0.02 seconds |
| - | Notice: Applied catalog in 0.04 seconds | + | Notice: Applied catalog in 0.01 seconds |
| </ | </ | ||
| Ligne 378: | Ligne 444: | ||
| vagrant@ubuntu-xenial: | vagrant@ubuntu-xenial: | ||
| Notice: Scope(Class[main]): | Notice: Scope(Class[main]): | ||
| - | Notice: Compiled catalog for ubuntu-xenial in environment pbg in 0.15 seconds | + | Notice: Compiled catalog for ubuntu-xenial in environment pbg in 0.03 seconds |
| - | Notice: Applied catalog in 0.04 seconds | + | Notice: Applied catalog in 0.01 seconds |
| </ | </ | ||
| Ligne 394: | Ligne 460: | ||
| </ | </ | ||
| - | ====LAB #22 - Interpolation==== | + | ====LAB #3 - Interpolation==== |
| L' | L' | ||
| Ligne 431: | Ligne 497: | ||
| </ | </ | ||
| - | <WRAP center round important | + | <WRAP center round important> |
| **Important** - La priorité des sources est descendante. Si la valeur d'une clef est spécifiée dans deux sources et les valeurs sont différentes, | **Important** - La priorité des sources est descendante. Si la valeur d'une clef est spécifiée dans deux sources et les valeurs sont différentes, | ||
| </ | </ | ||
| Ligne 449: | Ligne 515: | ||
| * **Hash Merge** - retourne un Hash contenant toutes les clefs et toutes les valeurs correspondantes qui correspondent à la recherche, | * **Hash Merge** - retourne un Hash contenant toutes les clefs et toutes les valeurs correspondantes qui correspondent à la recherche, | ||
| * **Shallow Merge** - si Hiera retrouve deux Hash avec le même nom, il retourne uniquement le premier Hash, | * **Shallow Merge** - si Hiera retrouve deux Hash avec le même nom, il retourne uniquement le premier Hash, | ||
| - | * **Deep merge** - permet de considerer | + | * **Deep merge** - permet de considérer |
| - | ==Les Sources de Données basées sur des Facts== | + | ===Les Sources de Données basées sur des Facts=== |
| Revenons au fichier **/ | Revenons au fichier **/ | ||
| Ligne 491: | Ligne 557: | ||
| </ | </ | ||
| - | Ces deux lignes permettent d' | + | Ces deux lignes permettent d' |
| De même les deux lignes suivantes : | De même les deux lignes suivantes : | ||
| Ligne 504: | Ligne 570: | ||
| permettent une configuration différente par version du système d' | permettent une configuration différente par version du système d' | ||
| - | ====LAB #23 -Créer des Ressources avec le Données d' | + | ====LAB #4 -Créer des Ressources avec les Données d' |
| Commencez par créer le fichier **hiera_users.pp** : | Commencez par créer le fichier **hiera_users.pp** : | ||
| Ligne 535: | Ligne 601: | ||
| < | < | ||
| vagrant@ubuntu-xenial: | vagrant@ubuntu-xenial: | ||
| - | Notice: Compiled catalog for ubuntu-xenial in environment pbg in 0.19 seconds | + | Notice: Compiled catalog for ubuntu-xenial in environment pbg in 0.04 seconds |
| Notice: / | Notice: / | ||
| Notice: / | Notice: / | ||
| Ligne 541: | Ligne 607: | ||
| Notice: / | Notice: / | ||
| Notice: / | Notice: / | ||
| - | Notice: Applied catalog in 0.66 seconds | + | Notice: Applied catalog in 0.14 seconds |
| </ | </ | ||
| Ligne 588: | Ligne 654: | ||
| < | < | ||
| vagrant@ubuntu-xenial: | vagrant@ubuntu-xenial: | ||
| - | Notice: Compiled catalog for ubuntu-xenial in environment pbg in 0.18 seconds | + | Notice: Compiled catalog for ubuntu-xenial in environment pbg in 0.03 seconds |
| Notice: / | Notice: / | ||
| Notice: / | Notice: / | ||
| Ligne 599: | Ligne 665: | ||
| Notice: / | Notice: / | ||
| Notice: / | Notice: / | ||
| - | Notice: Applied catalog in 0.80 seconds | + | Notice: Applied catalog in 0.17 seconds |
| </ | </ | ||
| - | Consultez maintenant | + | Consultez maintenant |
| < | < | ||
| - | vagrant@ubuntu-xenial: | + | vagrant@ubuntu-xenial: |
| - | root: | + | |
| - | daemon: | + | |
| - | bin: | + | |
| - | sys: | + | |
| - | sync: | + | |
| - | games: | + | |
| - | man: | + | |
| - | lp: | + | |
| - | mail: | + | |
| - | news: | + | |
| - | uucp: | + | |
| - | proxy: | + | |
| - | www-data: | + | |
| - | backup: | + | |
| - | list: | + | |
| - | irc: | + | |
| - | gnats: | + | |
| - | nobody: | + | |
| - | systemd-timesync: | + | |
| - | systemd-network: | + | |
| - | systemd-resolve: | + | |
| - | systemd-bus-proxy: | + | |
| - | syslog: | + | |
| - | _apt: | + | |
| - | lxd: | + | |
| - | messagebus: | + | |
| - | uuidd: | + | |
| - | dnsmasq: | + | |
| - | sshd: | + | |
| pollinate: | pollinate: | ||
| vagrant: | vagrant: | ||
| ubuntu: | ubuntu: | ||
| vboxadd: | vboxadd: | ||
| + | ntp: | ||
| katy: | katy: | ||
| lark: | lark: | ||
| Ligne 646: | Ligne 684: | ||
| </ | </ | ||
| - | ====LAB #24 - Gérer des Données Secrètes==== | + | ====LAB #5 - Gérer des Données Secrètes==== |
| Souvent Puppet a besoin d' | Souvent Puppet a besoin d' | ||
| Ligne 662: | Ligne 700: | ||
| Building dependency tree | Building dependency tree | ||
| Reading state information... Done | Reading state information... Done | ||
| - | gnupg is already the newest version (1.4.20-1ubuntu3.1). | + | gnupg is already the newest version (1.4.20-1ubuntu3.3). |
| The following NEW packages will be installed: | The following NEW packages will be installed: | ||
| rng-tools | rng-tools | ||
| - | 0 upgraded, 1 newly installed, 0 to remove and 8 not upgraded. | + | 0 upgraded, 1 newly installed, 0 to remove and 7 not upgraded. |
| Need to get 21.9 kB of archives. | Need to get 21.9 kB of archives. | ||
| After this operation, 139 kB of additional disk space will be used. | After this operation, 139 kB of additional disk space will be used. | ||
| Get:1 http:// | Get:1 http:// | ||
| - | Fetched 21.9 kB in 0s (64.2 kB/s) | + | Fetched 21.9 kB in 0s (76.0 kB/s) |
| Selecting previously unselected package rng-tools. | Selecting previously unselected package rng-tools. | ||
| - | (Reading database ... 67016 files and directories currently installed.) | + | (Reading database ... 74569 files and directories currently installed.) |
| Preparing to unpack .../ | Preparing to unpack .../ | ||
| Unpacking rng-tools (5-0ubuntu3) ... | Unpacking rng-tools (5-0ubuntu3) ... | ||
| Processing triggers for man-db (2.7.5-1) ... | Processing triggers for man-db (2.7.5-1) ... | ||
| - | Processing triggers for systemd | + | Processing triggers for ureadahead |
| - | Processing triggers for ureadahead | + | Processing triggers for systemd |
| Setting up rng-tools (5-0ubuntu3) ... | Setting up rng-tools (5-0ubuntu3) ... | ||
| - | Processing triggers for systemd | + | Processing triggers for ureadahead |
| - | Processing triggers for ureadahead | + | Processing triggers for systemd |
| + | </ | ||
| + | |||
| + | Si la version installée de ruby est inférieure à la 2.5.0, mettez à jour ruby : | ||
| + | |||
| + | < | ||
| + | vagrant@ubuntu-xenial: | ||
| + | vagrant@ubuntu-xenial: | ||
| + | vagrant@ubuntu-xenial:~$ cd ruby-install-0.8.3/ | ||
| + | vagrant@ubuntu-xenial: | ||
| + | vagrant@ubuntu-xenial: | ||
| + | </ | ||
| + | |||
| + | Installez ensuite le support gpg pour Hiera : | ||
| + | |||
| + | < | ||
| + | vagrant@ubuntu-xenial: | ||
| </ | </ | ||
| Ligne 726: | Ligne 780: | ||
| Change (N)ame, (C)omment, (E)mail or (O)kay/ | Change (N)ame, (C)omment, (E)mail or (O)kay/ | ||
| You need a Passphrase to protect your secret key. | You need a Passphrase to protect your secret key. | ||
| + | |||
| + | NE METTEZ PAS DE PASSPHRASE. APPUYEZ SIMPLEMENT SUR [ENTREE] < | ||
| You don't want a passphrase - this is probably a *bad* idea! | You don't want a passphrase - this is probably a *bad* idea! | ||
| Ligne 735: | Ligne 791: | ||
| disks) during the prime generation; this gives the random number | disks) during the prime generation; this gives the random number | ||
| generator a better chance to gain enough entropy. | generator a better chance to gain enough entropy. | ||
| - | +++++ | + | .+++++ |
| .+++++ | .+++++ | ||
| We need to generate a lot of random bytes. It is a good idea to perform | We need to generate a lot of random bytes. It is a good idea to perform | ||
| Ligne 741: | Ligne 797: | ||
| disks) during the prime generation; this gives the random number | disks) during the prime generation; this gives the random number | ||
| generator a better chance to gain enough entropy. | generator a better chance to gain enough entropy. | ||
| - | .....+++++ | + | .+++++ |
| - | +++++ | + | ..+++++ |
| gpg: / | gpg: / | ||
| - | gpg: key 05205AF4 | + | gpg: key D327661B |
| public and secret key created and signed. | public and secret key created and signed. | ||
| Ligne 750: | Ligne 806: | ||
| gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model | gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model | ||
| gpg: depth: 0 valid: | gpg: depth: 0 valid: | ||
| - | pub | + | pub |
| - | Key fingerprint = 804C 7675 2822 6E73 6C4E E0D4 1280 D1A2 0520 5AF4 | + | Key fingerprint = 38E1 5B5E EBDF F39F F49B ED2A 9646 8A98 D327 661B |
| uid puppet < | uid puppet < | ||
| - | sub | + | sub |
| </ | </ | ||
| Ligne 759: | Ligne 815: | ||
| < | < | ||
| - | pub | + | pub |
| - | Key fingerprint = 804C 7675 2822 6E73 6C4E E0D4 1280 D1A2 0520 5AF4 | + | Key fingerprint = 38E1 5B5E EBDF F39F F49B ED2A 9646 8A98 D327 661B |
| uid puppet < | uid puppet < | ||
| - | sub | + | sub |
| </ | </ | ||
| Editez le fichier **/ | Editez le fichier **/ | ||
| - | |||
| - | < | ||
| - | ... | ||
| - | | ||
| - | ... | ||
| - | </ | ||
| - | |||
| - | Vous obtiendrez : | ||
| < | < | ||
| - | vagrant@ubuntu-xenial: | + | vagrant@ubuntu-xenial: |
| + | vagrant@ubuntu-xenial: | ||
| --- | --- | ||
| version: 5 | version: 5 | ||
| Ligne 823: | Ligne 872: | ||
| < | < | ||
| - | vagrant@ubuntu-xenial: | + | vagrant@ubuntu-xenial: |
| [hiera-eyaml-core] / | [hiera-eyaml-core] / | ||
| Ligne 835: | Ligne 884: | ||
| </ | </ | ||
| - | <WRAP center round important | + | <WRAP center round important> |
| **Important** - Utilisez l' | **Important** - Utilisez l' | ||
| </ | </ | ||
| Ligne 855: | Ligne 904: | ||
| </ | </ | ||
| - | Editez | + | Éditez |
| < | < | ||
| Ligne 877: | Ligne 926: | ||
| < | < | ||
| - | vagrant@ubuntu-xenial: | + | vagrant@ubuntu-xenial: |
| - | | + | --- |
| + | | ||
| --- | --- | ||
| </ | </ | ||
| - | <WRAP center round important | + | <WRAP center round important> |
| **Important** - **ENC** indique à Hiera que ce fichier est crypté. GPG indique à Hiera quel type de cryptage. | **Important** - **ENC** indique à Hiera que ce fichier est crypté. GPG indique à Hiera quel type de cryptage. | ||
| </ | </ | ||
| Ligne 891: | Ligne 941: | ||
| vagrant@ubuntu-xenial: | vagrant@ubuntu-xenial: | ||
| --- This is a test secret | --- This is a test secret | ||
| - | ... | ||
| </ | </ | ||
| Ligne 900: | Ligne 949: | ||
| vagrant@ubuntu-xenial: | vagrant@ubuntu-xenial: | ||
| #!/bin/bash | #!/bin/bash | ||
| - | / | + | eyaml edit --gpg-always-trust --gpg-recipients=puppet@i2tch.co.uk / |
| </ | </ | ||
| - | <WRAP center round important | + | <WRAP center round important> |
| **Important** - Utilisez l' | **Important** - Utilisez l' | ||
| </ | </ | ||
| Ligne 916: | Ligne 965: | ||
| < | < | ||
| - | vagrant@ubuntu-xenial: | + | vagrant@ubuntu-xenial: |
| - | -rw-r--r-- 1 root root 205 Jun 3 12:04 / | + | -rw-r--r-- 1 root root 134 Feb 12 09:37 / |
| - | vagrant@ubuntu-xenial: | + | vagrant@ubuntu-xenial: |
| - | vagrant@ubuntu-xenial: | + | vagrant@ubuntu-xenial: |
| - | -rwxr--r-- 1 root root 205 Jun 3 12:04 / | + | -rwxr--r-- 1 root root 134 Feb 12 09:37 / |
| </ | </ | ||
| Ligne 948: | Ligne 997: | ||
| </ | </ | ||
| - | <WRAP center round important | + | <WRAP center round important> |
| - | **Important** - Notez la modification de la ligne **test_secret: | + | **Important** - Notez la modification |
| </ | </ | ||
| - | Ajoutez maintenant un dexième | + | Ajoutez maintenant un deuxième |
| < | < | ||
| Ligne 974: | Ligne 1023: | ||
| < | < | ||
| - | vagrant@ubuntu-xenial: | + | vagrant@ubuntu-xenial: |
| - | ... | + | --- Somebody wakes up |
| </ | </ | ||
| - | Dernièrement il faut copier la clef GPG a chaque | + | Dernièrement il faut copier la clef GPG a chaque |
| < | < | ||
| Ligne 992: | Ligne 1041: | ||
| Version: GnuPG v1 | Version: GnuPG v1 | ||
| - | lQOYBFsTw6ABCADdkb6Ev1lqztqgNGBebDq0frW79ncPT6n4fqUFT7OBBIqLdBeY | + | lQOYBF5DvOEBCADjpHyyFInVw5v+2kWYnlWxYny5LAz4jdJIU4IhJtpBpOivU5GE |
| - | Ysd7kmaxBK0cWxIopBHUme5KA/ | + | P6X7u7izFfOclByUtPQuJlFKDzuXgCPXpH31Ifx0HCMdhM3SR1mNc+kWI65eQ23q |
| - | aAJR1NEA5KqZo3iSeMIeq8E60hs1cX4EKwi+5+4zAph2K1HPkLl+S+R7JKazEIVR | + | CCPd3d3t9dYjWOBnfczKwxKcztBYzrlDhUK7u1Wkdm+Z2n6d8y3PhP+IDvzW3H0K |
| - | MFPt9eZmKFCtEHYw0gdjvVSkcUJs5nVXKMqL9kAVOUfh3WrYDUrahPzkOQ4Nr5u0 | + | 1gbCsFKDF7cTlkQJQuyAFl7TggRfAbmD5z65LVlNBwVe4YBKpngF2+6SJ9T5j7MT |
| - | KRMunnsIrbhTsh/wfoZ6FtLeaBuwdrnAEWnKhVxxKt57H0InxO8COM5nlUxLz3L/ | + | 24VR+l9UfBmTm1F+HGn7RUqQDutCxEvRLqxf1fcSr5HKK9Cs50jWJ+whjlcdEV40 |
| - | c/dz7CYErRmHbyRmFeO1L/s/QMDIiUmZgKtFABEBAAEAB/4wVYFaowVmC97ccOCO | + | BzWe/0Kjz90SR8Un9RQS2iTzFx99GurmYcG7ABEBAAEAB/wI+btQ6i5lF0lXSxPj |
| - | 6Iw74KJTcRYS5H1/JF1qVbMiU3PHrRkSmIXMuqilOBBtbZ59+CCdoMC/K7HMaA8W | + | aJrIW7G/O1Vnl2/rGh/PXtDMNcxW3VyncjsBKe2mYf8w9UYLNvdJuokJ+n/HAW5o |
| - | KiCGPB/H0aa4nouXNz6VUHr2pbCbwsyEWKyc3lCDod5naqY8SZSLLUuXQctGss3b | + | Wjv9JlHl4hYgW9Qhrl6BjUhrbwy4+r+isp93aAAQGdlPm3l9myAv/nEFbcIZPk1f |
| - | Keob/ytSvF+284dCwN7+Ip8ij3nI94TB1WxIBWj7OYp0d0O+AgCNUrYAdFriPEZ2 | + | tCllbYV67pCH6G2FnMj5nazVmG6mPDEsE5duEJ8Zx6L8Y4ETPqCnhil8+X9cgL4B |
| - | NcB050AnFCl6dRXfKmIQakvRKM7uxPF09gGomhIENcVSsYChvgmlqfkSxT67CpT+ | + | bSODCK2jbjoXIzKWXtU0EeHJB6Nv0TTd/zbie9XfU65qGOrvSVlZgvTYem8q9OoL |
| - | 3aK/60aJZYqjOD8jyOB1DqaT9tUWanAZK29KA8IZkJPNp3A0Hbta2BQ4GenZW+od | + | +VCqZghTa6O/jzZWNvKyuFqrx2J8TIaNAhZuHx9gJ/ |
| - | IBZhBADmgNYnLLRr1qa1wjm/2Mn/Ibrep7q5tpb7bKyxLVGcJE3tQ0nlilOuRnq4 | + | 7glBBADwMtPac43LvOo44KvJzuuFBaY940LIWP38cZEZtXs4yaeVQ2A5KiYTuHVz |
| - | hph+6mOFZUzxNgdUguikBapUJtiigs/Cso0ZhBwKh3P++fwEgVtqM7nf5ci07pDD | + | 0kCfFZ6roZ/jARKyVNikyqL2hTMYiCjUY4V4b8fKLjcTYhazz+kpANJ0DX+MgDqx |
| - | Onewda6Av61a6ynVNGs1eLeNgOdanFaaaqiD0q6xsWysedCAcQQA9hPsv4L7c9D6 | + | zuWXzHFVT1/ |
| - | a7GKWVGpVPyrVYxrQ0PVSxT59kHQQeb8ngV5J9ST7a5+83AzXJ3vkXUYMqV2zGcv | + | mQAR5PGYxK+hDRyMKAAqCoDY/ |
| - | 42p7D0pIMOIACQnBBiGgWlIpwY+ubCAF9HvzlfgRSrooMjpRboyEQ4Z7tPAnWeb9 | + | p/7+nIodOPDFjWI4dEM45eVit/MepPl3PBfPuY5pGzc/H/ |
| - | uAl6/QnCGm3OuyzL8JN850Cfi+NZQhUD/ | + | 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 |
| - | 3RnfxXmgWn0d9+GKizm2BzrLxTGUKxoQ4Sho/ | + | n4E3Ok1aikTzo4THSJrOxCjRHLq/ |
| - | Z++xZdwko9zpSQlMltGyXpJjYq1a1Avz8sujwyOEZjLA5gGP8Znr9Y0D6VudHEhv | + | fXrVPmKcV34qgcK6MeId0/7MwQ/tl3Eel87uLEJEAfXkvVp+p6j5NTkVenFHFPEV |
| - | 1sXZrHS7zPkuKnEg9j47mS4pMymp0QQA51QuoqU1ESP7PqYtbdCYNNnWRx4BaRqD | + | +0Tudm/py5SBkIWsNojoF/ |
| - | EkfUKZRu+MgADfMFsnfX/O0WJWe6DFIVdiEFq/n5aQnEb2gkr9bCugTfAomKNr1e | + | GLogSujl7/uNGUOx42jFs/ |
| - | +60hhFOmBlhymx56HhNtbBGEOlNs8fVPez0Oqh0iYqHOAFXJ1/QO11x+nCp+u2Ci | + | T7zCmywJD6RNsOvbz8XluqWe5eTjXS1c0YCmdR4YwduuZpgT7T1yCNrX/JQLjVl0 |
| - | NQy9afFFDbUEAPzq/eQaih3HaUJKxlqjodkSdwo7DqSKTT1Cc9xSvjmU+QHHq5+d | + | EL5XDfS44VsEAPxLyD6UG7qnLbpQ1c2kzjs3EUqPe7p7/ |
| - | DHk7ULkbbQQXvSk01iORdvKqC/t2NEfqpV7iG6JbAF60+iSwX1oRKpRJPNy6rBn7 | + | 6Ek+vxYk4XQOCQ1M5lsqq7fS694e1Wa8bW5wW4BpIdTFPulsdE4McAqH7xeGifig |
| - | ItF1u+XwpgrFFBMqjTb9msdYy2ThzXffUl3GGjJPb5eDtqTD2lu0BTrRA/40lTUS | + | 2obAt+tMPnLn3/tj3RG1JPSIf0w8w86WjqneZ8YYXzcRKDK40Cx+VFfRBACYkvtv |
| - | 9vkzVnyhXzBDlONHopt0I3EgmqwF6DTHiIAncBDWuXqt8DVjFTyCEdVAyGRPsRyM | + | AAXNUlhTxGiS7xQkNy+EARbN37/J0HmqJ1VpfWRCGRzjx6pasfhQgNPhxDvPvQza |
| - | IWVa1zyYKfM7142Jedxk1JGyNFE+C4PcTbDSjO1SRoGS1421fzvpxJKaYpE6g/uQ | + | 5zAm4nOt9LOim6igKN+aSIk99KdtRYKxPR1h/ |
| - | ZtqIx3d9C+idn9Kwhm1jh5oR19nQqSLYe6n6TT7BiQEfBBgBAgAJBQJbE8OgAhsM | + | O4yVUFCLQHXRI8iQhM6cdn8RlIaZ2AWoPUwjnUYiiQEfBBgBAgAJBQJeQ7zhAhsM |
| - | AAoJEBKA0aIFIFr0JwQH/2QYUqpGUSaTP1l+iCoi8mtansAXirB+xqVywAfywHzS | + | AAoJEJZGipjTJ2YbvVIH/Rea3HIQJN09gDtqiYJTZYM9KTVQlqyG0frTBqVHMEXD |
| - | 1a8R5q7pbG3aTzh578ptpRCFF9UgBvOgaUXe5eE+prmS2xeQO8Cevk+7aBe/xm+D | + | 1U07bt4j6oaML9fkywJbNJu16z4Tj5RST+w0k7qCwUqgsAdpwUK/a+oWFxVmDbin |
| - | dfRP51JcKvHYWtZMgoHRK2yTqYkmVuajXIMA11LU9qsOh91HSSEeEX+X2XTHC9gS | + | Lk/TRM/XytvpSJ1FgeMdF6n8ivP+W9yh2UFsxR68ZezryOAl9tz4k33E1e/ |
| - | D9OM06Nbs/bgUPZnX0ExKSUvenNhNo0FI3hMnqNx8xdg64X/6rxiDootzTfgc+1H | + | TlKtl9HAAPWMyNznCwA4yZ/c+NxuwXFp+/ |
| - | pXiofzczqDErBmcMst0b0JAadq+BdPoOJ0T/oOnfyjVx1uBokkMUn8uJtsKQWzl+ | + | PR2k5sYm7AV88AuUzIf2vxVuNbmMHKJT1qQJt4p4TdPeCtofhI4r1/GTTi4xyPpg |
| - | rbiN19KARb6O/utd1lrR0dhAuFCXlyryjm94HHVRGy0= | + | jnxZNEX8j4nW37ulyW6sHElUZFdhPDMdb8vZIyy3JYI= |
| - | =QW+0 | + | =UwyQ |
| -----END PGP PRIVATE KEY BLOCK----- | -----END PGP PRIVATE KEY BLOCK----- | ||
| </ | </ | ||
| - | Sur les autres | + | Sur les autres |
| < | < | ||
| - | # sudo gpgp --import key.txt | + | # sudo gpg --import key.txt |
| </ | </ | ||
| Ligne 1085: | Ligne 1134: | ||
| Les modules sont regroupés en deux groupes : | Les modules sont regroupés en deux groupes : | ||
| - | * **Supported** - les modules | + | * **Supported** - les modules |
| * URL - **[[https:// | * URL - **[[https:// | ||
| - | * **Approved** - les modules ne beneficient | + | * **Approved** - les modules ne bénéficient |
| * URL - **[[https:// | * URL - **[[https:// | ||
| - | ====LAB #25 - Installer des Modules==== | + | ====LAB #6 - Installer des Modules==== |
| Le gestionnaire de modules de Puppet s' | Le gestionnaire de modules de Puppet s' | ||
| Ligne 1098: | Ligne 1147: | ||
| vagrant@ubuntu-xenial:/ | vagrant@ubuntu-xenial:/ | ||
| data hiera.yaml | data hiera.yaml | ||
| - | vagrant@ubuntu-xenial:/ | + | vagrant@ubuntu-xenial:/ |
| forge ' | forge ' | ||
| Ligne 1121: | Ligne 1170: | ||
| * la variable **forge** spécifie le repository à utiliser, | * la variable **forge** spécifie le repository à utiliser, | ||
| - | * la variable **mod** | + | * la variable **mod** |
| + | |||
| + | Supprimez les trois dernières lignes du fichier **Puppetfile** : | ||
| + | |||
| + | < | ||
| + | vagrant@ubuntu-xenial:/ | ||
| + | vagrant@ubuntu-xenial:/ | ||
| + | forge ' | ||
| + | |||
| + | mod ' | ||
| + | mod ' | ||
| + | mod ' | ||
| + | mod ' | ||
| + | mod ' | ||
| + | mod ' | ||
| + | mod ' | ||
| + | mod ' | ||
| + | mod ' | ||
| + | mod ' | ||
| + | mod ' | ||
| + | </ | ||
| Exécutez la commande suivante pour que le gestionnaire traite ce fichier : | Exécutez la commande suivante pour que le gestionnaire traite ce fichier : | ||
| Ligne 1127: | Ligne 1196: | ||
| < | < | ||
| vagrant@ubuntu-xenial:/ | vagrant@ubuntu-xenial:/ | ||
| + | INFO -> Using Puppetfile '/ | ||
| INFO -> Updating module / | INFO -> Updating module / | ||
| + | WARN -> Puppet Forge module ' | ||
| INFO -> Updating module / | INFO -> Updating module / | ||
| INFO -> Updating module / | INFO -> Updating module / | ||
| + | WARN -> Puppet Forge module ' | ||
| INFO -> Updating module / | INFO -> Updating module / | ||
| INFO -> Updating module / | INFO -> Updating module / | ||
| Ligne 1139: | Ligne 1211: | ||
| INFO -> Updating module / | INFO -> Updating module / | ||
| INFO -> Updating module / | INFO -> Updating module / | ||
| - | INFO -> Updating module / | ||
| </ | </ | ||
| - | Pour tester si le module **stdlib** | + | Pour tester si le module **stdlib** |
| < | < | ||
| vagrant@ubuntu-xenial:/ | vagrant@ubuntu-xenial:/ | ||
| Notice: Scope(Class[main]): | Notice: Scope(Class[main]): | ||
| - | Notice: Compiled catalog for ubuntu-xenial in environment pbg in 0.14 seconds | + | Notice: Compiled catalog for ubuntu-xenial in environment pbg in 0.01 seconds |
| - | Notice: Applied catalog in 0.04 seconds | + | Notice: Applied catalog in 0.01 seconds |
| </ | </ | ||
| - | <WRAP center round important | + | <WRAP center round important> |
| **Important** - La fonction **upcase** fait partie du module **stdlib**. | **Important** - La fonction **upcase** fait partie du module **stdlib**. | ||
| </ | </ | ||
| Ligne 1161: | Ligne 1232: | ||
| Fetching: colorize-0.8.1.gem (100%) | Fetching: colorize-0.8.1.gem (100%) | ||
| Successfully installed colorize-0.8.1 | Successfully installed colorize-0.8.1 | ||
| - | Fetching: generate-puppetfile-1.0.0.gem (100%) | + | Fetching: generate-puppetfile-1.1.0.gem (100%) |
| - | Successfully installed generate-puppetfile-1.0.0 | + | Successfully installed generate-puppetfile-1.1.0 |
| Parsing documentation for colorize-0.8.1 | Parsing documentation for colorize-0.8.1 | ||
| Installing ri documentation for colorize-0.8.1 | Installing ri documentation for colorize-0.8.1 | ||
| - | Parsing documentation for generate-puppetfile-1.0.0 | + | Parsing documentation for generate-puppetfile-1.1.0 |
| - | Installing ri documentation for generate-puppetfile-1.0.0 | + | Installing ri documentation for generate-puppetfile-1.1.0 |
| - | Done installing documentation for colorize, generate-puppetfile after 1 seconds | + | Done installing documentation for colorize, generate-puppetfile after 0 seconds |
| 2 gems installed | 2 gems installed | ||
| </ | </ | ||
| - | Utilisez maintenant | + | Installez le paquet **ruby-dev** : |
| + | |||
| + | < | ||
| + | vagrant@ubuntu-xenial:/ | ||
| + | </ | ||
| + | |||
| + | Utilisez maintenant | ||
| < | < | ||
| - | vagrant@ubuntu-xenial:/ | + | vagrant@ubuntu-xenial:/ |
| Installing modules. This may take a few minutes. | Installing modules. This may take a few minutes. | ||
| Ligne 1189: | Ligne 1266: | ||
| mod ' | mod ' | ||
| mod ' | mod ' | ||
| - | mod ' | + | mod ' |
| ======================================================================= | ======================================================================= | ||
| </ | </ | ||
| Ligne 1196: | Ligne 1273: | ||
| < | < | ||
| - | vagrant@ubuntu-xenial:/ | + | vagrant@ubuntu-xenial:/ |
| Installing modules. This may take a few minutes. | Installing modules. This may take a few minutes. | ||
| Ligne 1208: | Ligne 1285: | ||
| # Modules discovered by generate-puppetfile | # Modules discovered by generate-puppetfile | ||
| mod ' | mod ' | ||
| - | mod ' | + | mod ' |
| mod ' | mod ' | ||
| - | mod ' | + | mod ' |
| mod ' | mod ' | ||
| mod ' | mod ' | ||
| - | mod ' | + | mod ' |
| mod ' | mod ' | ||
| - | mod ' | + | mod ' |
| mod ' | mod ' | ||
| - | mod ' | + | mod ' |
| - | mod ' | + | mod ' |
| - | # Discovered elements from existing Puppetfile | + | |
| - | mod ' | + | |
| - | :git => ' | + | |
| - | :tag => '0.1.4' | + | |
| ======================================================================= | ======================================================================= | ||
| </ | </ | ||
| Ligne 1229: | Ligne 1302: | ||
| < | < | ||
| - | vagrant@ubuntu-xenial:/ | + | vagrant@ubuntu-xenial:/ |
| forge ' | forge ' | ||
| Ligne 1243: | Ligne 1316: | ||
| mod ' | mod ' | ||
| mod ' | mod ' | ||
| - | |||
| - | mod ' | ||
| - | :git => ' | ||
| - | :tag => ' | ||
| </ | </ | ||
| Ligne 1252: | Ligne 1321: | ||
| < | < | ||
| - | vagrant@ubuntu-xenial:/ | + | vagrant@ubuntu-xenial:/ |
| - | vagrant@ubuntu-xenial:/ | + | vagrant@ubuntu-xenial:/ |
| forge ' | forge ' | ||
| # Modules discovered by generate-puppetfile | # Modules discovered by generate-puppetfile | ||
| mod ' | mod ' | ||
| - | mod ' | + | mod ' |
| mod ' | mod ' | ||
| - | mod ' | + | mod ' |
| mod ' | mod ' | ||
| mod ' | mod ' | ||
| - | mod ' | + | mod ' |
| mod ' | mod ' | ||
| - | mod ' | + | mod ' |
| mod ' | mod ' | ||
| - | mod ' | + | mod ' |
| - | mod ' | + | mod ' |
| - | # Discovered elements from existing Puppetfile | + | |
| - | mod ' | + | |
| - | :git => ' | + | |
| - | :tag => '0.1.4' | + | |
| </ | </ | ||
| Ligne 1279: | Ligne 1344: | ||
| < | < | ||
| vagrant@ubuntu-xenial:/ | vagrant@ubuntu-xenial:/ | ||
| + | INFO -> Using Puppetfile '/ | ||
| INFO -> Updating module / | INFO -> Updating module / | ||
| INFO -> Updating module / | INFO -> Updating module / | ||
| INFO -> Updating module / | INFO -> Updating module / | ||
| + | WARN -> Puppet Forge module ' | ||
| INFO -> Updating module / | INFO -> Updating module / | ||
| INFO -> Updating module / | INFO -> Updating module / | ||
| Ligne 1291: | Ligne 1358: | ||
| INFO -> Updating module / | INFO -> Updating module / | ||
| INFO -> Updating module / | INFO -> Updating module / | ||
| - | INFO -> Updating module / | ||
| </ | </ | ||
| - | ====LAB #26 - Utilisation des Modules==== | + | ====LAB #7 - Utilisation des Modules==== |
| ===puppetlabs/ | ===puppetlabs/ | ||
| Ligne 1337: | Ligne 1403: | ||
| </ | </ | ||
| - | <WRAP center round important | + | <WRAP center round important> |
| **Important** - Le mot de passe de root pour MySQL **hairline-quotient-inside-tableful** est ici en clair. En production, ce mot de passe serait crypté comme nous avons déjà vu. | **Important** - Le mot de passe de root pour MySQL **hairline-quotient-inside-tableful** est ici en clair. En production, ce mot de passe serait crypté comme nous avons déjà vu. | ||
| </ | </ | ||
| Ligne 1352: | Ligne 1418: | ||
| </ | </ | ||
| - | <WRAP center round important | + | <WRAP center round important> |
| **Important** - Le nom de la ressource **cat_pictures** est le nom de la base de données. Les attributs **user**, **password**, | **Important** - Le nom de la ressource **cat_pictures** est le nom de la base de données. Les attributs **user**, **password**, | ||
| </ | </ | ||
| Ligne 1359: | Ligne 1425: | ||
| < | < | ||
| - | vagrant@ubuntu-xenial: | + | vagrant@ubuntu-xenial: |
| - | Notice: Compiled catalog for ubuntu-xenial.ief2i.fr | + | Notice: Compiled catalog for ubuntu-xenial in environment pbg in 0.38 seconds |
| + | Notice: / | ||
| + | Notice: / | ||
| + | Notice: / | ||
| Notice: / | Notice: / | ||
| - | Notice: / | ||
| Notice: / | Notice: / | ||
| Notice: / | Notice: / | ||
| Ligne 1369: | Ligne 1437: | ||
| Notice: / | Notice: / | ||
| Notice: / | Notice: / | ||
| - | Notice: Applied catalog in 270.54 seconds | + | Notice: Applied catalog in 32.59 seconds |
| </ | </ | ||
| Ligne 1379: | Ligne 1447: | ||
| Welcome to the MySQL monitor. | Welcome to the MySQL monitor. | ||
| Your MySQL connection id is 26 | Your MySQL connection id is 26 | ||
| - | Server version: 5.7.22-0ubuntu0.16.04.1 (Ubuntu) | + | Server version: 5.7.29-0ubuntu0.16.04.1 (Ubuntu) |
| - | Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved. | + | Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved. |
| Oracle is a registered trademark of Oracle Corporation and/or its | Oracle is a registered trademark of Oracle Corporation and/or its | ||
| Ligne 1396: | Ligne 1464: | ||
| | cat_pictures | | cat_pictures | ||
| +--------------------+ | +--------------------+ | ||
| - | 2 rows in set (0.01 sec) | + | 2 rows in set (0.00 sec) |
| mysql> USE cat_pictures; | mysql> USE cat_pictures; | ||
| Ligne 1402: | Ligne 1470: | ||
| mysql> exit | mysql> exit | ||
| Bye | Bye | ||
| - | vagrant@ubuntu-xenial: | ||
| </ | </ | ||
| Ligne 1422: | Ligne 1489: | ||
| file { '/ | file { '/ | ||
| - | content => "< | + | content => "< |
| owner => ' | owner => ' | ||
| group => ' | group => ' | ||
| Ligne 1450: | Ligne 1517: | ||
| </ | </ | ||
| - | <WRAP center round important | + | <WRAP center round important> |
| **Important** - **apache:: | **Important** - **apache:: | ||
| </ | </ | ||
| Ligne 1465: | Ligne 1532: | ||
| </ | </ | ||
| - | <WRAP center round important | + | <WRAP center round important> |
| **Important** - Le nom de la ressource **cat-pictures.com** est le nom de domaine de l' | **Important** - Le nom de la ressource **cat-pictures.com** est le nom de domaine de l' | ||
| </ | </ | ||
| Ligne 1473: | Ligne 1540: | ||
| < | < | ||
| file { '/ | file { '/ | ||
| - | content => "< | + | content => "< |
| owner => ' | owner => ' | ||
| group => ' | group => ' | ||
| Ligne 1479: | Ligne 1546: | ||
| </ | </ | ||
| - | <WRAP center round important | + | <WRAP center round important> |
| - | **Important** - Cette ressource crée le fichier **/ | + | **Important** - Cette ressource crée le fichier **/ |
| </ | </ | ||
| Ligne 1487: | Ligne 1554: | ||
| < | < | ||
| vagrant@ubuntu-xenial: | vagrant@ubuntu-xenial: | ||
| - | Notice: Compiled catalog for ubuntu-xenial.ief2i.fr | + | Notice: Compiled catalog for ubuntu-xenial in environment pbg in 0.98 seconds |
| Notice: / | Notice: / | ||
| Notice: / | Notice: / | ||
| - | Notice: / | + | ... |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| - | Notice: / | + | |
| Notice: / | Notice: / | ||
| - | Notice: Applied catalog in 66.04 seconds | + | Notice: Applied catalog in 8.94 seconds |
| </ | </ | ||
| Ligne 1586: | Ligne 1589: | ||
| </ | </ | ||
| - | <WRAP center round important | + | <WRAP center round important> |
| - | **Important** - La première ressource est de type **file**. Cette ressource crée si necéssaire | + | **Important** - La première ressource est de type **file**. Cette ressource crée si nécessaire |
| </ | </ | ||
| Ligne 1603: | Ligne 1606: | ||
| </ | </ | ||
| - | <WRAP center round important | + | <WRAP center round important> |
| **Important** - Le nom de la ressource **/ | **Important** - Le nom de la ressource **/ | ||
| </ | </ | ||
| Ligne 1611: | Ligne 1614: | ||
| < | < | ||
| vagrant@ubuntu-xenial: | vagrant@ubuntu-xenial: | ||
| - | Notice: Compiled catalog for ubuntu-xenial.ief2i.fr | + | Notice: Compiled catalog for ubuntu-xenial in environment pbg in 0.07 seconds |
| Notice: / | Notice: / | ||
| - | Notice: Applied catalog in 99.85 seconds | + | Notice: Applied catalog in 4.44 seconds |
| </ | </ | ||
| Ligne 1624: | Ligne 1627: | ||
| ---- | ---- | ||
| - | < | + | |
| - | <DIV ALIGN=" | + | Copyright © 2022 Hugh Norris. |
| - | Copyright © 2019 Hugh Norris.< | + | |
| - | </ | + | |
| - | </ | + | |