Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédente | |||
elearning:workbooks:centos:8:lcf1000:l1003 [2023/11/08 08:48] – admin | elearning:workbooks:centos:8:lcf1000:l1003 [2023/11/12 11:47] (Version actuelle) – admin | ||
---|---|---|---|
Ligne 30: | Ligne 30: | ||
=====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 39: | Ligne 37: | ||
| VM | client.ittraining.loc | 10.0.2.112 | Ubuntu | | VM | client.ittraining.loc | 10.0.2.112 | Ubuntu | ||
| VM | docker.ittraining.loc | 10.0.2.114 | Ubuntu | | VM | docker.ittraining.loc | 10.0.2.114 | Ubuntu | ||
- | |||
- | Stagiaires **18**, **19**, **20**, **21**, **22** et **23** : | ||
- | |||
- | ^ Type Machine ^ FQDN ^ IP ^ OS ^ Version | ||
- | | VM | chefserver.ittraining.loc | 10.0.3.110 | Ubuntu | ||
- | | VM | workstation.ittraining.loc | 10.0.3.111 | Ubuntu | ||
- | | VM | client.ittraining.loc | 10.0.3.112 | Ubuntu | ||
- | | VM | docker.ittraining.loc | 10.0.3.114 | Ubuntu | ||
=====Présentation===== | =====Présentation===== | ||
Ligne 304: | Ligne 294: | ||
</ | </ | ||
- | 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 332: | Ligne 322: | ||
====1.3 - Configurer un Client==== | ====1.3 - Configurer un Client==== | ||
- | Connectez-vous ensuite à votre VM **ChefServer_10.0.2.110_SSH** | + | Connectez-vous ensuite à votre VM **ChefServer_10.0.2.110_SSH**. |
- | Éditez le fichier **/ | + | Éditez le fichier **/ |
- | + | ||
- | Stagiaires **11**, **12**, **14**, **15**, **16** et **17** : | + | |
< | < | ||
Ligne 356: | Ligne 344: | ||
</ | </ | ||
- | Stagiaires **18**, **19**, **20**, **21**, **22** et **23** : | + | Connectez-vous à votre VM **client.ittraining.loc** : |
- | + | ||
- | < | + | |
- | root@workstation: | + | |
- | root@workstation: | + | |
- | 127.0.0.1 | + | |
- | 127.0.1.1 | + | |
- | 10.0.3.110 | + | |
- | 10.0.3.111 | + | |
- | 10.0.3.112 | + | |
- | 10.0.3.114 | + | |
- | + | ||
- | # 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 | + | |
- | </ | + | |
- | + | ||
- | Connectez-vous à votre VM **client.ittraining.loc**. | + | |
- | + | ||
- | Stagiaires **11**, **12**, **14**, **15**, **16** et **17** : | + | |
< | < | ||
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: | ||
- | </ | ||
- | |||
- | 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@client' | ||
- | 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. | ||
- | |||
- | 122 additional security updates can be applied with ESM Infra. | ||
- | Learn more about enabling ESM Infra service for Ubuntu 18.04 at | ||
- | https:// | ||
- | |||
- | New release ' | ||
- | Run ' | ||
- | |||
- | 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: | ||
</ | </ | ||
- | Éditez le fichier **/ | + | Éditez le fichier **/ |
- | + | ||
- | Stagiaires **11**, **12**, **14**, **15**, **16** et **17** : | + | |
< | < | ||
Ligne 527: | Ligne 459: | ||
</ | </ | ||
- | Stagiaires **18**, **19**, **20**, **21**, **22** et **23** : | + | Retournez ensuite dans votre VM **workstation.ittraining.loc** : |
- | + | ||
- | < | + | |
- | root@workstation: | + | |
- | logout | + | |
- | + | ||
- | trainee@workstation: | + | |
- | logout | + | |
- | Connection to 10.0.3.111 closed. | + | |
- | + | ||
- | trainee@chefserver: | + | |
- | [sudo] password for trainee: trainee | + | |
- | + | ||
- | root@chefserver: | + | |
- | + | ||
- | root@chefserver: | + | |
- | 127.0.0.1 | + | |
- | 127.0.1.1 | + | |
- | 10.0.3.110 | + | |
- | 10.0.3.111 | + | |
- | 10.0.3.112 | + | |
- | 10.0.3.114 | + | |
- | + | ||
- | # 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 | + | |
- | </ | + | |
- | + | ||
- | Retournez ensuite dans votre VM **workstation.ittraining.loc**. | + | |
- | + | ||
- | Stagiaires **11**, **12**, **14**, **15**, **16** et **17** : | + | |
< | < | ||
root@chefserver: | root@chefserver: | ||
The authenticity of host ' | The authenticity of host ' | ||
- | ECDSA key fingerprint is SHA256: | ||
- | Are you sure you want to continue connecting (yes/no)? yes | ||
- | Warning: Permanently added ' | ||
- | trainee@workstation' | ||
- | 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. | ||
- | |||
- | 122 additional security updates can be applied with ESM Infra. | ||
- | Learn more about enabling ESM Infra service for Ubuntu 18.04 at | ||
- | https:// | ||
- | |||
- | New release ' | ||
- | Run ' | ||
- | |||
- | Your Hardware Enablement Stack (HWE) is supported until April 2023. | ||
- | Last login: Tue Oct 31 09:55:34 2023 from 10.0.2.110 | ||
- | </ | ||
- | |||
- | Stagiaires **18**, **19**, **20**, **21**, **22** et **23** : | ||
- | |||
- | < | ||
- | root@chefserver: | ||
- | The authenticity of host ' | ||
ECDSA key fingerprint is SHA256: | ECDSA key fingerprint is SHA256: | ||
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: | ||
</ | </ | ||
- | 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** | + | |
< | < | ||
Ligne 646: | Ligne 513: | ||
</ | </ | ||
- | Stagiaires **18**, **19**, **20**, **21**, **22** et **23** : | + | A l'issu de l' |
- | + | ||
- | < | + | |
- | root@workstation: | + | |
- | --ssh-user: This flag is deprecated. Use -U/ | + | |
- | --ssh-password: | + | |
- | Connecting to 10.0.3.112 | + | |
- | The authenticity of host ' | + | |
- | fingerprint is SHA256: | + | |
- | + | ||
- | Are you sure you want to continue connecting | + | |
- | ? (Y/N) Y | + | |
- | </ | + | |
- | + | ||
- | A l'issu de l' | + | |
- | + | ||
- | Stagiaires **11**, **12**, **14**, **15**, **16** et **17** | + | |
< | < | ||
Ligne 671: | Ligne 522: | ||
| | ||
| | ||
- | </ | ||
- | |||
- | Stagiaires **18**, **19**, **20**, **21**, **22** et **23** : | ||
- | |||
- | < | ||
- | ... | ||
- | | ||
- | | ||
</ | </ | ||
Ligne 695: | Ligne 538: | ||
====1.4 - Vérifier l' | ====1.4 - Vérifier l' | ||
- | Connectez-vous ensuite à votre VM **ChefServer_10.0.2.110_VNC** | + | Connectez-vous ensuite à votre VM **ChefServer_10.0.2.110_VNC**. |
- | Ouvrez un autre onglet dans le navigateur et naviguez à l' | + | Ouvrez un autre onglet dans le navigateur et naviguez à l' |
{{ : | {{ : | ||
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** | + | 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 767: | Ligne 610: | ||
</ | </ | ||
- | 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 **.pem** vers le répertoire **/ | + | Copiez le fichier **.pem** vers le répertoire **/ |
- | + | ||
- | Stagiaires **11**, **12**, **14**, **15**, **16** et **17** : | + | |
< | < | ||
Ligne 778: | Ligne 619: | ||
root@workstation: | root@workstation: | ||
trainee@10.0.2.110' | trainee@10.0.2.110' | ||
- | teamittraining.pem | ||
- | </ | ||
- | |||
- | Stagiaires **18**, **19**, **20**, **21**, **22** et **23** : | ||
- | |||
- | < | ||
- | root@workstation: | ||
- | |||
- | root@workstation: | ||
- | trainee@10.0.3.110' | ||
teamittraining.pem | teamittraining.pem | ||
</ | </ | ||
Ligne 885: | Ligne 716: | ||
</ | </ | ||
- | Connectez-vous ensuite à votre VM **ChefServer_10.0.2.110_VNC** | + | Connectez-vous ensuite à votre VM **ChefServer_10.0.2.110_VNC**. |
Cliquez sur l' | Cliquez sur l' | ||
Ligne 895: | Ligne 726: | ||
</ | </ | ||
- | Connectez-vous ensuite à votre VM **ChefServer_10.0.2.110_SSH** | + | 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: | ||
</ | </ | ||
- | 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** | + | |
< | < | ||
Ligne 1024: | Ligne 853: | ||
</ | </ | ||
- | Stagiaires **18**, **19**, **20**, **21**, **22** et **23** : | + | Connectez-vous à votre VM **client.ittraining.loc** à partir de votre VM **workstation.ittraining.loc** : |
- | + | ||
- | < | + | |
- | root@workstation: | + | |
- | --ssh-user: This flag is deprecated. Use -U/ | + | |
- | --ssh-password: | + | |
- | Connecting to 10.0.3.114 | + | |
- | The authenticity of host ' | + | |
- | fingerprint is SHA256: | + | |
- | + | ||
- | Are you sure you want to continue connecting | + | |
- | ? (Y/N) | + | |
- | ... | + | |
- | | + | |
- | | + | |
- | </ | + | |
- | + | ||
- | Connectez-vous à votre VM **client.ittraining.loc** à partir de votre VM **workstation.ittraining.loc**. | + | |
- | + | ||
- | Stagiaires **11**, **12**, **14**, **15**, **16** et **17** : | + | |
< | < | ||
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: | ||
- | </ | ||
- | |||
- | 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.114' | ||
- | 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. | ||
- | |||
- | 123 additional security updates can be applied with ESM Infra. | ||
- | Learn more about enabling ESM Infra service for Ubuntu 18.04 at | ||
- | https:// | ||
- | |||
- | New release ' | ||
- | Run ' | ||
- | |||
- | 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: | ||
</ | </ | ||
Ligne 1115: | Ligne 894: | ||
</ | </ | ||
- | Quittez ensuite la VM **client.ittraining.loc**. | + | Quittez ensuite la VM **client.ittraining.loc** : |
- | + | ||
- | Stagiaires **11**, **12**, **14**, **15**, **16** et **17** : | + | |
< | < | ||
Ligne 1125: | Ligne 902: | ||
</ | </ | ||
- | Stagiaires **18**, **19**, **20**, **21**, **22** et **23** : | + | Connectez-vous ensuite à votre VM **ChefServer_10.0.2.110_VNC**. |
- | + | ||
- | < | + | |
- | trainee@docker: | + | |
- | logout | + | |
- | Connection to 10.0.3.114 closed. | + | |
- | </ | + | |
- | + | ||
- | Connectez-vous ensuite à votre VM **ChefServer_10.0.2.110_VNC** | + | |
- | Ouvrez un autre onglet dans le navigateur et naviguez à l' | + | Ouvrez un autre onglet dans le navigateur et naviguez à l' |
{{ : | {{ : |