Différences

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

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
elearning:workbooks:centos:8:lcf1000:l1003 [2023/11/08 08:48] adminelearning:workbooks:centos:8:lcf1000:l1003 [2023/11/12 11:47] (Version actuelle) admin
Ligne 30: Ligne 30:
 =====Infrastructure===== =====Infrastructure=====
  
-L'infrastructure utilisée dans ce module est la suivante+L'infrastructure utilisée dans ce module est la suivante :
- +
-Stagiaires **11**, **12**, **14**, **15**, **16** et **17** :+
  
 ^ Type Machine ^ FQDN ^ IP ^  OS  ^  Version  ^  CPUs  ^  RAM (Mo)  ^  HDD (Go)  ^  User  ^  MdP  ^  MdP root  ^ ^ Type Machine ^ FQDN ^ IP ^  OS  ^  Version  ^  CPUs  ^  RAM (Mo)  ^  HDD (Go)  ^  User  ^  MdP  ^  MdP root  ^
Ligne 39: Ligne 37:
 | VM | client.ittraining.loc | 10.0.2.112 |  Ubuntu  |  18.04.6 LTS  |  4  |  4096  |  50  |  trainee  |  trainee  |  S/O  | | VM | client.ittraining.loc | 10.0.2.112 |  Ubuntu  |  18.04.6 LTS  |  4  |  4096  |  50  |  trainee  |  trainee  |  S/O  |
 | VM | docker.ittraining.loc | 10.0.2.114 |  Ubuntu  |  18.04.6 LTS  |  4  |  4096  |  50  |  trainee  |  trainee  |  S/O  | | VM | docker.ittraining.loc | 10.0.2.114 |  Ubuntu  |  18.04.6 LTS  |  4  |  4096  |  50  |  trainee  |  trainee  |  S/O  |
- 
-Stagiaires **18**, **19**, **20**, **21**, **22** et **23** : 
- 
-^ Type Machine ^ FQDN ^ IP ^  OS  ^  Version  ^  CPUs  ^  RAM (Mo)  ^  HDD (Go)  ^  User  ^  MdP  ^  MdP root  ^ 
-| VM | chefserver.ittraining.loc | 10.0.3.110 |  Ubuntu  |  18.04.6 LTS  |  8  |  8192  |  50  |  trainee  |  trainee  |  S/O  | 
-| VM | workstation.ittraining.loc | 10.0.3.111 |  Ubuntu  |  18.04.6 LTS  |  8  |  8192  |  50  |  trainee  |  trainee  |  S/O  | 
-| VM | client.ittraining.loc | 10.0.3.112 |  Ubuntu  |  18.04.6 LTS  |  4  |  4096  |  50  |  trainee  |  trainee  |  S/O  | 
-| VM | docker.ittraining.loc | 10.0.3.114 |  Ubuntu  |  18.04.6 LTS  |  4  |  4096  |  50  |  trainee  |  trainee  |  S/O  | 
  
 =====Présentation===== =====Présentation=====
Ligne 304: Ligne 294:
 </WRAP> </WRAP>
  
-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 |}}
Ligne 332: Ligne 322:
 ====1.3 - Configurer un Client==== ====1.3 - Configurer un Client====
  
-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**.
  
-Éditez le fichier **/etc/hosts** dans votre VM **workstation.ittraining.loc**, selon votre numéro de stagiaire, pour référencer les VMs **client.ittraining.loc** et **docker.ittraining.loc**. +Éditez le fichier **/etc/hosts** dans votre VM **workstation.ittraining.loc**, selon votre numéro de stagiaire, pour référencer les VMs **client.ittraining.loc** et **docker.ittraining.loc** :
- +
-Stagiaires **11**, **12**, **14**, **15**, **16** et **17** :+
  
 <code> <code>
Ligne 356: Ligne 344:
 </code> </code>
  
-Stagiaires **18**, **19**, **20**, **21**, **22** et **23** :  +Connectez-vous à votre VM **client.ittraining.loc** :
- +
-<code> +
-root@workstation:~/chef-repo/cookbooks# vi /etc/hosts +
-root@workstation:~/chef-repo/cookbooks# cat /etc/hosts +
-127.0.0.1       localhost +
-127.0.1.1       workstation +
-10.0.3.110      chefserver.ittraining.loc   chefserver +
-10.0.3.111      workstation.ittraining.loc  workstation +
-10.0.3.112      client.ittraining.loc       client +
-10.0.3.114      docker.ittraining.loc       docker +
- +
-# 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> +
- +
-Connectez-vous à votre VM **client.ittraining.loc**. +
- +
-Stagiaires **11**, **12**, **14**, **15**, **16** et **17** :+
  
 <code> <code>
Ligne 406: Ligne 372:
 Your Hardware Enablement Stack (HWE) is supported until April 2023. Your Hardware Enablement Stack (HWE) is supported until April 2023.
 Last login: Mon Oct 30 13:11:30 2023 from 10.0.2.1 Last login: Mon Oct 30 13:11:30 2023 from 10.0.2.1
- 
-trainee@client:~$ 
-</code> 
- 
-Stagiaires **18**, **19**, **20**, **21**, **22** et **23** :  
- 
-<code> 
-root@workstation:~/chef-repo/cookbooks# ssh -l trainee client 
-The authenticity of host 'client (10.0.3.112)' can't be established. 
-ECDSA key fingerprint is SHA256:RRU4Tim5H5klLxXUa8hyodLq5DSGrKuZ07jziXLVmFw. 
-Are you sure you want to continue connecting (yes/no)? yes 
-Warning: Permanently added 'client,10.0.3.112' (ECDSA) to the list of known hosts. 
-trainee@client's password: trainee 
-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. 
- 
-122 additional security updates can be applied with ESM Infra. 
-Learn more about enabling ESM Infra service for Ubuntu 18.04 at 
-https://ubuntu.com/18-04 
- 
-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 13:11:30 2023 from 10.0.3.1 
  
 trainee@client:~$ trainee@client:~$
Ligne 494: Ligne 428:
 </code> </code>
  
-Éditez le fichier **/etc/hosts** dans votre VM **chefserver.ittraining.loc**, selon votre numéro de stagiaire, pour référencer les VMs **chefserver.ittraining.loc**, **workstation.ittraining.loc**, **client.ittraining.loc** et **docker.ittraining.loc**. +Éditez le fichier **/etc/hosts** dans votre VM **chefserver.ittraining.loc** pour référencer les VMs **chefserver.ittraining.loc**, **workstation.ittraining.loc**, **client.ittraining.loc** et **docker.ittraining.loc** :
- +
-Stagiaires **11**, **12**, **14**, **15**, **16** et **17** :+
  
 <code> <code>
Ligne 527: Ligne 459:
 </code> </code>
  
-Stagiaires **18**, **19**, **20**, **21**, **22** et **23** :  +Retournez ensuite dans votre VM **workstation.ittraining.loc** :
- +
-<code> +
-root@workstation:~/chef-repo/cookbooks# exit +
-logout +
- +
-trainee@workstation:~$ exit +
-logout +
-Connection to 10.0.3.111 closed. +
- +
-trainee@chefserver:~$ sudo su - +
-[sudo] password for trainee: trainee +
- +
-root@chefserver:~# vi /etc/hosts +
- +
-root@chefserver:~# cat /etc/hosts +
-127.0.0.1       localhost +
-127.0.1.1       chefserver +
-10.0.3.110      chefserver.ittraining.loc   chefserver +
-10.0.3.111      workstation.ittraining.loc  workstation +
-10.0.3.112      client.ittraining.loc       client +
-10.0.3.114      docker.ittraining.loc       docker +
- +
-# 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> +
- +
-Retournez ensuite dans votre VM **workstation.ittraining.loc**. +
- +
-Stagiaires **11**, **12**, **14**, **15**, **16** et **17** :+
  
 <code> <code>
 root@chefserver:~# ssh -l trainee workstation root@chefserver:~# ssh -l trainee workstation
 The authenticity of host 'workstation (10.0.2.111)' can't be established. The authenticity of host 'workstation (10.0.2.111)' can't be established.
-ECDSA key fingerprint is SHA256:RRU4Tim5H5klLxXUa8hyodLq5DSGrKuZ07jziXLVmFw. 
-Are you sure you want to continue connecting (yes/no)? yes 
-Warning: Permanently added 'workstation' (ECDSA) to the list of known hosts. 
-trainee@workstation's password: trainee 
-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. 
- 
-122 additional security updates can be applied with ESM Infra. 
-Learn more about enabling ESM Infra service for Ubuntu 18.04 at 
-https://ubuntu.com/18-04 
- 
-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: Tue Oct 31 09:55:34 2023 from 10.0.2.110 
-</code> 
- 
-Stagiaires **18**, **19**, **20**, **21**, **22** et **23** :  
- 
-<code> 
-root@chefserver:~# ssh -l trainee workstation 
-The authenticity of host 'workstation (10.0.3.111)' can't be established. 
 ECDSA key fingerprint is SHA256:RRU4Tim5H5klLxXUa8hyodLq5DSGrKuZ07jziXLVmFw. ECDSA key fingerprint is SHA256:RRU4Tim5H5klLxXUa8hyodLq5DSGrKuZ07jziXLVmFw.
 Are you sure you want to continue connecting (yes/no)? yes Are you sure you want to continue connecting (yes/no)? yes
Ligne 630: Ligne 499:
 </code> </code>
  
-Utilisez la commande **knife bootstrap** pour inscrie le client après du Chef Infra Server et exécuter la recette+Utilisez la commande **knife bootstrap** pour inscrie le client après du Chef Infra Server et exécuter la recette :
- +
-Stagiaires **11**, **12**, **14**, **15**, **16** et **17** :+
  
 <code> <code>
Ligne 646: Ligne 513:
 </code> </code>
  
-Stagiaires **18**, **19**, **20**, **21**, **22** et **23** :  +A l'issu de l'installation vous obtiendrez la sortie suivante :
- +
-<code> +
-root@workstation:~/chef-repo/cookbooks# knife bootstrap 10.0.3.112 --ssh-user root --ssh-password fenestros --node-name client --run-list 'recipe[apache2]' +
---ssh-user: This flag is deprecated. Use -U/--connection-user instead. +
---ssh-password: This flag is deprecated. Use -P/--connection-password instead. +
-Connecting to 10.0.3.112 +
-The authenticity of host '10.0.3.112 ()' can't be established. +
-fingerprint is SHA256:s6fmqsOVfoId4uzkHMfeFs67Qkr9GDvO/iom+YUwI3k. +
- +
-Are you sure you want to continue connecting +
-? (Y/N) Y +
-</code> +
- +
-A l'issu de l'installation vous obtiendrez la sortie suivante+
- +
-Stagiaires **11**, **12**, **14**, **15**, **16** et **17** :+
  
 <code> <code>
Ligne 671: Ligne 522:
  [10.0.2.112] Chef Infra Client finished, 2/4 resources updated in 22 seconds  [10.0.2.112] Chef Infra Client finished, 2/4 resources updated in 22 seconds
  [10.0.2.112] [2023-10-31T12:32:50+01:00] WARN: This release of Chef Infra Client became end of life (EOL) on May 1st 2021. Please update to a supported release to receive new features, bug fixes, and security updates.  [10.0.2.112] [2023-10-31T12:32:50+01:00] WARN: This release of Chef Infra Client became end of life (EOL) on May 1st 2021. Please update to a supported release to receive new features, bug fixes, and security updates.
-</code> 
- 
-Stagiaires **18**, **19**, **20**, **21**, **22** et **23** :  
- 
-<code> 
-... 
- [10.0.3.112] Chef Infra Client finished, 2/4 resources updated in 22 seconds 
- [10.0.3.112] [2023-10-31T12:32:50+01:00] WARN: This release of Chef Infra Client became end of life (EOL) on May 1st 2021. Please update to a supported release to receive new features, bug fixes, and security updates. 
 </code> </code>
  
Ligne 695: Ligne 538:
 ====1.4 - Vérifier l'Installation et la Configuration du Client==== ====1.4 - Vérifier l'Installation et la Configuration du Client====
  
-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 un autre onglet dans le navigateur et naviguez à l'adresse **10.0.2.112** ou **10.0.3.112** :+Ouvrez un autre onglet dans le navigateur et naviguez à l'adresse **10.0.2.112** :
  
 {{ :elearning:workbooks:centos:8:lcf1000:capture_d_ecran_du_2023-10-31_12-42-31.png?direct&600 |}} {{ :elearning:workbooks:centos:8:lcf1000:capture_d_ecran_du_2023-10-31_12-42-31.png?direct&600 |}}
Ligne 717: Ligne 560:
 ====2.2 - Se Connecter et Configurer==== ====2.2 - Se Connecter et Configurer====
  
-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 **[[https://supermarket.chef.io]]** : Ouvrez le navigateur Web et naviguez à l'adresse **[[https://supermarket.chef.io]]** :
Ligne 767: Ligne 610:
 </WRAP> </WRAP>
  
-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**.
  
-Copiez le fichier **.pem** vers le répertoire **/root/chef-repo/.chef** dans la VM **workstation.ittraining.loc**. +Copiez le fichier **.pem** vers le répertoire **/root/chef-repo/.chef** dans la VM **workstation.ittraining.loc** :
- +
-Stagiaires **11**, **12**, **14**, **15**, **16** et **17** :+
  
 <code> <code>
Ligne 778: Ligne 619:
 root@workstation:~/chef-repo/.chef# scp trainee@10.0.2.110:/home/trainee/Downloads/teamittraining.pem . root@workstation:~/chef-repo/.chef# scp trainee@10.0.2.110:/home/trainee/Downloads/teamittraining.pem .
 trainee@10.0.2.110's password:  trainee@10.0.2.110's password: 
-teamittraining.pem                                  100% 1674     3.1MB/  00:00  
-</code> 
- 
-Stagiaires **18**, **19**, **20**, **21**, **22** et **23** :  
- 
-<code> 
-root@workstation:~/chef-repo/cookbooks# cd ../.chef 
- 
-root@workstation:~/chef-repo/.chef# scp trainee@10.0.3.110:/home/trainee/Downloads/teamittraining.pem . 
-trainee@10.0.3.110's password:  
 teamittraining.pem                                  100% 1674     3.1MB/  00:00  teamittraining.pem                                  100% 1674     3.1MB/  00:00 
 </code> </code>
Ligne 885: Ligne 716:
 </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**.
  
 Cliquez sur l'onglet **Dashboard** de **[[https://supermarket.chef.io]]** et rafraîchissez la page de votre navigateur : Cliquez sur l'onglet **Dashboard** de **[[https://supermarket.chef.io]]** et rafraîchissez la page de votre navigateur :
Ligne 895: Ligne 726:
 </WRAP> </WRAP>
  
-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**.
  
 Affichez les informations concernant le Cookbook publié : Affichez les informations concernant le Cookbook publié :
Ligne 1003: Ligne 834:
 </code> </code>
  
-Utilisez la commande **knife bootstrap** pour inscrire le client **docker.ittraining.loc** auprès du Chef Infra Server et exécuter la recette+Utilisez la commande **knife bootstrap** pour inscrire le client **docker.ittraining.loc** auprès du Chef Infra Server et exécuter la recette :
- +
-Stagiaires **11**, **12**, **14**, **15**, **16** et **17** :+
  
 <code> <code>
Ligne 1024: Ligne 853:
 </code> </code>
  
-Stagiaires **18**, **19**, **20**, **21**, **22** et **23** :  +Connectez-vous à votre VM **client.ittraining.loc** à partir de votre VM **workstation.ittraining.loc** :
- +
-<code> +
-root@workstation:~/chef-repo/cookbooks# knife bootstrap 10.0.3.114 --ssh-user root --ssh-password 'fenestros' --node-name docker --run-list 'recipe[docker]' +
---ssh-user: This flag is deprecated. Use -U/--connection-user instead. +
---ssh-password: This flag is deprecated. Use -P/--connection-password instead. +
-Connecting to 10.0.3.114 +
-The authenticity of host '10.0.3.114 ()' can't be established. +
-fingerprint is SHA256:s6fmqsOVfoId4uzkHMfeFs67Qkr9GDvO/iom+YUwI3k. +
- +
-Are you sure you want to continue connecting +
-? (Y/N) +
-... +
- [10.0.3.114] Chef Infra Client finished, 28/53 resources updated in 01 minutes 16 seconds +
- [10.0.3.114] [2023-11-01T15:31:08+01:00] WARN: This release of Chef Infra Client became end of life (EOL) on May 1st 2021. Please update to a supported release to receive new features, bug fixes, and security updates. +
-</code> +
- +
-Connectez-vous à votre VM **client.ittraining.loc** à partir de votre VM **workstation.ittraining.loc**. +
- +
-Stagiaires **11**, **12**, **14**, **15**, **16** et **17** :+
  
 <code> <code>
Ligne 1071: Ligne 881:
 Your Hardware Enablement Stack (HWE) is supported until April 2023. Your Hardware Enablement Stack (HWE) is supported until April 2023.
 Last login: Wed Nov  1 14:25:39 2023 from 10.0.2.1 Last login: Wed Nov  1 14:25:39 2023 from 10.0.2.1
-trainee@docker:~$ 
-</code> 
- 
-Stagiaires **18**, **19**, **20**, **21**, **22** et **23** :  
- 
-<code> 
-root@workstation:~/chef-repo/cookbooks/docker# ssh -l trainee 10.0.3.114 
-The authenticity of host '10.0.3.114 (10.0.3.114)' 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.114' (ECDSA) to the list of known hosts. 
-trainee@10.0.3.114's password: trainee 
-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. 
- 
-123 additional security updates can be applied with ESM Infra. 
-Learn more about enabling ESM Infra service for Ubuntu 18.04 at 
-https://ubuntu.com/18-04 
- 
-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: Wed Nov  1 14:25:39 2023 from 10.0.3.1 
 trainee@docker:~$ trainee@docker:~$
 </code> </code>
Ligne 1115: Ligne 894:
 </code> </code>
  
-Quittez ensuite la VM **client.ittraining.loc**. +Quittez ensuite la VM **client.ittraining.loc** :
- +
-Stagiaires **11**, **12**, **14**, **15**, **16** et **17** :+
  
 <code> <code>
Ligne 1125: Ligne 902:
 </code> </code>
  
-Stagiaires **18**, **19**, **20**, **21**, **22** et **23** :  +Connectez-vous ensuite à votre VM **ChefServer_10.0.2.110_VNC**.
- +
-<code> +
-trainee@docker:~$ exit +
-logout +
-Connection to 10.0.3.114 closed. +
-</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.+
  
-Ouvrez un autre onglet dans le navigateur et naviguez à l'adresse **10.0.2.114** ou **10.0.3.114** selon le cas :+Ouvrez un autre onglet dans le navigateur et naviguez à l'adresse **10.0.2.114** :
  
 {{ :elearning:workbooks:centos:8:lcf1000:capture_d_ecran_du_2023-11-01_15-32-53.png?direct&600 |}} {{ :elearning:workbooks:centos:8:lcf1000:capture_d_ecran_du_2023-11-01_15-32-53.png?direct&600 |}}
Menu