Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
elearning:workbooks:centos:8:lcf1000:l1002 [2023/10/30 15:42] – created adminelearning: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'Interface Web       * 1.4 - Installation et Configuration de l'Interface Web
     * 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'infrastructure utilisée dans ce module est la suivante.
 +
 +^ Type Machine ^ FQDN ^ IP ^  OS  ^  Version  ^  CPUs  ^  RAM (Mo)  ^  HDD (Go)  ^  User  ^  MdP  ^  MdP root  ^
 +| VM | chefserver.ittraining.loc | 10.0.2.110 |  Ubuntu  |  18.04.6 LTS  |  8  |  8192  |  50  |  trainee  |  trainee  |  S/O  |
 +| VM | workstation.ittraining.loc | 10.0.2.111 |  Ubuntu  |  18.04.6 LTS  |  8  |  8192  |  50  |  trainee  |  trainee  |  S/O  |
  
 =====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 64 bits,+  * architecture 64 bits
 +  * 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'espace disque dans /var,   * 5 Go d'espace disque dans /var,
-  * 5 Go d'espace disque dans /var.+  * 5 Go d'espace disque dans /opt.
  
 ====1.2 - Installation==== ====1.2 - Installation====
  
-Connectez-vous ensuite à votre VM **ChefServer_10.0.2.110_SSH** ou **ChefServer_10.0.3.110_SSH** selon votre numéro de stagiaire.+Connectez-vous ensuite à votre VM **ChefServer_10.0.2.110_SSH** :
  
 Devenez l'utilisateur **root** : Devenez l'utilisateur **root** :
Ligne 205: Ligne 227:
 </code> </code>
  
-Connectez-vous ensuite à votre VM **ChefServer_10.0.2.110_VNC** ou **ChefServer_10.0.3.110_VNC** selon votre numéro de stagiaire.+Connectez-vous ensuite à votre VM **ChefServer_10.0.2.110_VNC**.
  
-Ouvrez le navigateur Web et naviguez à l'adresse **10.0.2.110** ou **10.0.3.110** selon le cas. Acceptez ensuite le certificat :+Ouvrez le navigateur Web et naviguez à l'adresse **10.0.2.110**. Acceptez ensuite le certificat :
  
 {{ :elearning:workbooks:centos:8:lcf1000:capture_d_ecran_du_2023-10-30_13-45-07.png?direct&600 |}} {{ :elearning:workbooks:centos:8:lcf1000:capture_d_ecran_du_2023-10-30_13-45-07.png?direct&600 |}}
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:
 <code> <code>
 root@chefserver:/key# ssh -l trainee 10.0.2.111 root@chefserver:/key# ssh -l trainee 10.0.2.111
-trainee@10.0.2.111's password:  
-Welcome to Ubuntu 18.04.6 LTS (GNU/Linux 5.4.0-150-generic x86_64) 
- 
- * Documentation:  https://help.ubuntu.com 
- * Management:     https://landscape.canonical.com 
- * Support:        https://ubuntu.com/advantage 
- 
-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://ubuntu.com/esm or run: sudo pro status 
- 
-New release '20.04.6 LTS' available. 
-Run 'do-release-upgrade' to upgrade to it. 
- 
-Your Hardware Enablement Stack (HWE) is supported until April 2023. 
-Last login: Mon Oct 30 14:39:59 2023 from 10.0.2.110 
-</code> 
- 
-ou  
- 
-<code> 
-root@chefserver:/key# ssh -l trainee 10.0.3.111 
 trainee@10.0.2.111's password:  trainee@10.0.2.111's password: 
 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:
 </code> </code>
  
-Connectez-vous ensuite à votre VM **ChefServer_10.0.2.110_VNC** ou **ChefServer_10.0.3.110_VNC** selon votre numéro de stagiaire.+Connectez-vous ensuite à votre VM **ChefServer_10.0.2.110_VNC**.
  
-Ouvrez le navigateur Web et naviguez à l'adresse **10.0.2.110** ou **10.0.3.110** selon le cas :+Ouvrez le navigateur Web et naviguez à l'adresse **10.0.2.110** :
  
 {{ :elearning:workbooks:centos:8:lcf1000:capture_d_ecran_du_2023-10-30_15-06-21.png?direct&600 |}} {{ :elearning:workbooks:centos:8:lcf1000:capture_d_ecran_du_2023-10-30_15-06-21.png?direct&600 |}}
  
-Cliquez sur l'organisation **chefacademy** :+Cliquez sur l'organisation **chefacademy** puis sur l'icône de la roue dentée à droite :
  
 {{ :elearning:workbooks:centos:8:lcf1000:capture_d_ecran_du_2023-10-30_15-06-53.png?direct&600 |}} {{ :elearning:workbooks:centos:8:lcf1000:capture_d_ecran_du_2023-10-30_15-06-53.png?direct&600 |}}
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 '10.0.2.110' (ECDSA) to the list of known hosts. Warning: Permanently added '10.0.2.110' (ECDSA) to the list of known hosts.
 trainee@10.0.2.110's password:  trainee@10.0.2.110's password: 
-chef-starter.zip                                    100% 7767    10.8MB/  00:00  
-</code> 
- 
-ou 
- 
-<code> 
-root@workstation:~# scp trainee@10.0.3.110:/home/trainee/Downloads/chef-starter.zip . 
-The authenticity of host '10.0.3.110 (10.0.3.110)' can't be established. 
-ECDSA key fingerprint is SHA256:RRU4Tim5H5klLxXUa8hyodLq5DSGrKuZ07jziXLVmFw. 
-Are you sure you want to continue connecting (yes/no)? yes 
-Warning: Permanently added '10.0.3.110' (ECDSA) to the list of known hosts. 
-trainee@10.0.3.110's password:  
 chef-starter.zip                                    100% 7767    10.8MB/  00:00  chef-starter.zip                                    100% 7767    10.8MB/  00:00 
 </code> </code>
Ligne 451: Ligne 440:
 </code> </code>
  
-Éditez donc le fichier **/etc/hosts** pour pointer l'adresse **10.0.2.110** ou **10.0.3.110** vers **chefserver** selon votre numéro de stagiaire : +Éditez donc le fichier **/etc/hosts** pour pointer l'adresse **10.0.2.110** vers **chefserver.ittraining.loc** :
- +
-<code> +
-root@workstation:~# vi /etc/hosts +
-root@workstation:~# cat /etc/hosts +
-127.0.0.1       localhost +
-127.0.1.1       workstation +
-10.0.2.110      chefserver +
-10.0.2.111      workstation +
- +
-# The following lines are desirable for IPv6 capable hosts +
-::1     ip6-localhost ip6-loopback +
-fe00::0 ip6-localnet +
-ff00::0 ip6-mcastprefix +
-ff02::1 ip6-allnodes +
-ff02::2 ip6-allrouters +
-</code> +
- +
-ou+
  
 <code> <code>
Ligne 476: Ligne 447:
 127.0.0.1       localhost 127.0.0.1       localhost
 127.0.1.1       workstation 127.0.1.1       workstation
-10.0.3.110      chefserver +10.0.2.110      chefserver.ittraining.loc   chefserver 
-10.0.3.111      workstation+10.0.2.111      workstation.ittraining.loc  workstation
  
 # The following lines are desirable for IPv6 capable hosts # The following lines are desirable for IPv6 capable hosts
Menu