Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
elearning:workbooks:centos:8:lcf1000:l1002 [2023/10/30 15:42] – created 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 - Préparation | + | * 1.1 - Presentation |
* 1.2 - Installation | * 1.2 - Installation | ||
* 1.3 - Configuration | * 1.3 - Configuration | ||
* 1.4 - Installation et Configuration de l' | * 1.4 - Installation et Configuration de l' | ||
* LAB #2 - Installer et Configurer Chef Workstation | * LAB #2 - Installer et Configurer Chef Workstation | ||
- | * 2.1 - Préparation | + | * 2.1 - Présentation |
* 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 250: | Ligne 272: | ||
====2.2 - Installation et Configuration==== | ====2.2 - Installation et Configuration==== | ||
+ | |||
+ | 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 : | ||
Ligne 255: | Ligne 279: | ||
< | < | ||
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 | ||
- | </ | ||
- | |||
- | ou | ||
- | |||
- | < | ||
- | 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 359: | 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 374: | Ligne 373: | ||
====2.3 - Configuration==== | ====2.3 - Configuration==== | ||
+ | |||
+ | 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 : | ||
Ligne 384: | Ligne 385: | ||
Warning: Permanently added ' | Warning: Permanently added ' | ||
trainee@10.0.2.110' | trainee@10.0.2.110' | ||
- | chef-starter.zip | ||
- | </ | ||
- | |||
- | ou | ||
- | |||
- | < | ||
- | 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 451: | Ligne 440: | ||
</ | </ | ||
- | Éditez donc le fichier **/ | + | Éditez donc le fichier **/ |
- | + | ||
- | < | + | |
- | root@workstation: | + | |
- | root@workstation: | + | |
- | 127.0.0.1 | + | |
- | 127.0.1.1 | + | |
- | 10.0.2.110 | + | |
- | 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 | + | |
- | </ | + | |
- | + | ||
- | ou | + | |
< | < | ||
Ligne 476: | Ligne 447: | ||
127.0.0.1 | 127.0.0.1 | ||
127.0.1.1 | 127.0.1.1 | ||
- | 10.0.3.110 chefserver | + | 10.0.2.110 |
- | 10.0.3.111 workstation | + | 10.0.2.111 |
# The following lines are desirable for IPv6 capable hosts | # The following lines are desirable for IPv6 capable hosts |