Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| elearning:workbooks:centos:8:lcf1000:l1002 [2023/11/01 15:11] – admin | elearning:workbooks:centos:8:lcf1000:l1002 [2023/11/12 11:41] (Version actuelle) – admin | ||
|---|---|---|---|
| Ligne 5: | Ligne 5: | ||
| Dernière mise-à-jour : ~~LASTMOD~~ | Dernière mise-à-jour : ~~LASTMOD~~ | ||
| - | ======LDF702 - Chef Infra Server et Chef Workstation====== | + | ======LDF702 - Installation du Chef Infra Server et du Chef Workstation====== |
| =====Contenu du Module===== | =====Contenu du Module===== | ||
| Ligne 11: | Ligne 11: | ||
| * **LDF702 - Chef Infra Server et Chef Workstation** | * **LDF702 - Chef Infra Server et Chef Workstation** | ||
| * Contenu du Module | * Contenu du Module | ||
| + | * Infrastructure | ||
| * LAB #1 - Installer et Configurer Chef Infra Server | * LAB #1 - Installer et Configurer Chef Infra Server | ||
| * 1.1 - Presentation | * 1.1 - Presentation | ||
| Ligne 20: | Ligne 21: | ||
| * 2.2 - Installation | * 2.2 - Installation | ||
| * 2.3 - Configuration | * 2.3 - Configuration | ||
| + | |||
| + | =====Infrastructure===== | ||
| + | |||
| + | L' | ||
| + | |||
| + | ^ Type Machine ^ FQDN ^ IP ^ OS ^ Version | ||
| + | | VM | chefserver.ittraining.loc | 10.0.2.110 | Ubuntu | ||
| + | | VM | workstation.ittraining.loc | 10.0.2.111 | Ubuntu | ||
| =====LAB #1 - Installer et Configurer Chef Infra Server===== | =====LAB #1 - Installer et Configurer Chef Infra Server===== | ||
| ====1.1 - Présentation==== | ====1.1 - Présentation==== | ||
| + | |||
| + | Rappelez-vous que Chef supporte de multiples OS en tant que clients : | ||
| + | |||
| + | * Red Hat, | ||
| + | * CentOS, | ||
| + | * Ubuntu, | ||
| + | * Oracle Linux, | ||
| + | * MacOS(tm), | ||
| + | * AIX(tm), | ||
| + | * Solaris(tm), | ||
| + | * Windows(tm). | ||
| Le **Chef Infra Server** nécessite une des distributions Linux suivantes : | Le **Chef Infra Server** nécessite une des distributions Linux suivantes : | ||
| Ligne 37: | Ligne 57: | ||
| La configuation minimale de Chef Infra Server est : | La configuation minimale de Chef Infra Server est : | ||
| - | * Architecture | + | * architecture |
| + | * les ports 80 et 443 doivent être ouverts, | ||
| + | * serveur NTP installé, | ||
| * 4 coeurs physiques ou virtuels, | * 4 coeurs physiques ou virtuels, | ||
| - | * 8 Go de RAM, | + | * 4 - 8 Go de RAM, |
| * 5 Go d' | * 5 Go d' | ||
| - | * 5 Go d' | + | * 5 Go d' |
| ====1.2 - Installation==== | ====1.2 - Installation==== | ||
| - | Connectez-vous ensuite à votre VM **ChefServer_10.0.2.110_SSH** | + | Connectez-vous ensuite à votre VM **ChefServer_10.0.2.110_SSH** |
| Devenez l' | Devenez l' | ||
| Ligne 205: | Ligne 227: | ||
| </ | </ | ||
| - | Connectez-vous ensuite à votre VM **ChefServer_10.0.2.110_VNC** | + | Connectez-vous ensuite à votre VM **ChefServer_10.0.2.110_VNC**. |
| - | Ouvrez le navigateur Web et naviguez à l' | + | Ouvrez le navigateur Web et naviguez à l' |
| {{ : | {{ : | ||
| Ligne 232: | Ligne 254: | ||
| ====2.1 - Présentation==== | ====2.1 - Présentation==== | ||
| - | **Chef Workstation** contient les exécutables suivantes : | + | Rappelez-vous que **Chef Workstation** contient les exécutables suivantes : |
| * ChefDK | * ChefDK | ||
| Ligne 251: | Ligne 273: | ||
| ====2.2 - Installation et Configuration==== | ====2.2 - Installation et Configuration==== | ||
| - | Connectez-vous ensuite à votre VM **ChefServer_10.0.2.110_SSH** | + | Connectez-vous ensuite à votre VM **ChefServer_10.0.2.110_SSH**. |
| - | Connectez-vous à votre Chef Workstation **à partir de votre Chef Infra Server** en utilisant l'IP associée à votre numéro de stagiaire. | + | Connectez-vous à votre Chef Workstation **à partir de votre Chef Infra Server** en utilisant l'IP associée à votre numéro de stagiaire : |
| - | + | ||
| - | Stagiaires **11**, **12**, **14**, **15**, **16** et **17** | + | |
| < | < | ||
| root@chefserver:/ | root@chefserver:/ | ||
| - | trainee@10.0.2.111' | ||
| - | Welcome to Ubuntu 18.04.6 LTS (GNU/Linux 5.4.0-150-generic x86_64) | ||
| - | |||
| - | * Documentation: | ||
| - | * Management: | ||
| - | * Support: | ||
| - | |||
| - | Expanded Security Maintenance for Infrastructure is not enabled. | ||
| - | |||
| - | 0 updates can be applied immediately. | ||
| - | |||
| - | Enable ESM Infra to receive additional future security updates. | ||
| - | See https:// | ||
| - | |||
| - | New release ' | ||
| - | Run ' | ||
| - | |||
| - | Your Hardware Enablement Stack (HWE) is supported until April 2023. | ||
| - | Last login: Mon Oct 30 14:39:59 2023 from 10.0.2.110 | ||
| - | </ | ||
| - | |||
| - | Stagiaires **18**, **19**, **20**, **21**, **22** et **23** : | ||
| - | |||
| - | < | ||
| - | root@chefserver:/ | ||
| trainee@10.0.2.111' | trainee@10.0.2.111' | ||
| Welcome to Ubuntu 18.04.6 LTS (GNU/Linux 5.4.0-150-generic x86_64) | Welcome to Ubuntu 18.04.6 LTS (GNU/Linux 5.4.0-150-generic x86_64) | ||
| Ligne 363: | Ligne 358: | ||
| </ | </ | ||
| - | Connectez-vous ensuite à votre VM **ChefServer_10.0.2.110_VNC** | + | Connectez-vous ensuite à votre VM **ChefServer_10.0.2.110_VNC**. |
| - | Ouvrez le navigateur Web et naviguez à l' | + | Ouvrez le navigateur Web et naviguez à l' |
| {{ : | {{ : | ||
| - | Cliquez sur l' | + | Cliquez sur l' |
| {{ : | {{ : | ||
| Ligne 379: | Ligne 374: | ||
| ====2.3 - Configuration==== | ====2.3 - Configuration==== | ||
| - | Connectez-vous ensuite à votre VM **ChefServer_10.0.2.110_SSH** | + | Connectez-vous ensuite à votre VM **ChefServer_10.0.2.110_SSH**. |
| - | Copiez le fichier **chef-starter.zip** à partir de Chef Infra Server vers le répertoire courant de votre Chef Workstation. | + | Copiez le fichier **chef-starter.zip** à partir de Chef Infra Server vers le répertoire courant de votre Chef Workstation : |
| - | + | ||
| - | Stagiaires **11**, **12**, **14**, **15**, **16** et **17** | + | |
| < | < | ||
| Ligne 392: | Ligne 385: | ||
| Warning: Permanently added ' | Warning: Permanently added ' | ||
| trainee@10.0.2.110' | trainee@10.0.2.110' | ||
| - | chef-starter.zip | ||
| - | </ | ||
| - | |||
| - | Stagiaires **18**, **19**, **20**, **21**, **22** et **23** : | ||
| - | |||
| - | < | ||
| - | root@workstation: | ||
| - | The authenticity of host ' | ||
| - | ECDSA key fingerprint is SHA256: | ||
| - | Are you sure you want to continue connecting (yes/no)? yes | ||
| - | Warning: Permanently added ' | ||
| - | trainee@10.0.3.110' | ||
| chef-starter.zip | chef-starter.zip | ||
| </ | </ | ||
| Ligne 459: | Ligne 440: | ||
| </ | </ | ||
| - | Éditez donc le fichier **/ | + | Éditez donc le fichier **/ |
| - | + | ||
| - | Stagiaires **11**, **12**, **14**, **15**, **16** et **17** : | + | |
| < | < | ||
| Ligne 470: | Ligne 449: | ||
| 10.0.2.110 | 10.0.2.110 | ||
| 10.0.2.111 | 10.0.2.111 | ||
| - | |||
| - | # The following lines are desirable for IPv6 capable hosts | ||
| - | ::1 | ||
| - | fe00::0 ip6-localnet | ||
| - | ff00::0 ip6-mcastprefix | ||
| - | ff02::1 ip6-allnodes | ||
| - | ff02::2 ip6-allrouters | ||
| - | </ | ||
| - | |||
| - | Stagiaires **18**, **19**, **20**, **21**, **22** et **23** : | ||
| - | |||
| - | < | ||
| - | root@workstation: | ||
| - | root@workstation: | ||
| - | 127.0.0.1 | ||
| - | 127.0.1.1 | ||
| - | 10.0.3.110 | ||
| - | 10.0.3.111 | ||
| # The following lines are desirable for IPv6 capable hosts | # The following lines are desirable for IPv6 capable hosts | ||