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/04 15:01] – 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 21: | Ligne 21: | ||
* 2.2 - Installation | * 2.2 - Installation | ||
* 2.3 - Configuration | * 2.3 - Configuration | ||
- | |||
- | =====Infrastructure===== | ||
=====Infrastructure===== | =====Infrastructure===== | ||
L' | L' | ||
- | |||
- | Stagiaires **11**, **12**, **14**, **15**, **16** et **17** : | ||
^ Type Machine ^ FQDN ^ IP ^ OS ^ Version | ^ Type Machine ^ FQDN ^ IP ^ OS ^ Version | ||
Ligne 34: | Ligne 30: | ||
| VM | workstation.ittraining.loc | 10.0.2.111 | Ubuntu | | VM | workstation.ittraining.loc | 10.0.2.111 | Ubuntu | ||
- | Stagiaires **18**, **19**, **20**, **21**, **22** | + | =====LAB #1 - Installer |
- | ^ Type Machine ^ FQDN ^ IP ^ OS ^ Version | + | ====1.1 - Présentation==== |
- | | VM | chefserver.ittraining.loc | 10.0.3.110 | Ubuntu | + | |
- | | VM | workstation.ittraining.loc | 10.0.3.111 | Ubuntu | + | |
- | =====LAB #1 - Installer et Configurer | + | Rappelez-vous que Chef supporte de multiples OS en tant que clients : |
- | ====1.1 - Présentation==== | + | * 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 56: | 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 224: | 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 251: | 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 270: | 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 382: | 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 398: | 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 411: | 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 478: | Ligne 440: | ||
</ | </ | ||
- | Éditez donc le fichier **/ | + | Éditez donc le fichier **/ |
- | + | ||
- | Stagiaires **11**, **12**, **14**, **15**, **16** et **17** : | + | |
< | < | ||
Ligne 489: | 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 |