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
Prochaine révision
Révision précédente
elearning:workbooks:debian:11:ldf800:l801 [2023/09/13 11:57] adminelearning:workbooks:debian:11:ldf800:l801 [2023/09/13 14:09] (Version actuelle) admin
Ligne 102: Ligne 102:
 ===LAB #1 - Gestion des Fichiers=== ===LAB #1 - Gestion des Fichiers===
  
-Connectez-vous à votre machine virtuelledémarrez la VM Puppet et créez le fichier **file_hello.pp** :+Connectez-vous à votre machine virtuelle et démarrez la VM Puppet :
  
 <code> <code>
Ligne 130: Ligne 130:
  
 Last login: Tue Apr 27 17:02:35 2021 from 10.0.2.2 Last login: Tue Apr 27 17:02:35 2021 from 10.0.2.2
 +</code>
  
 +Mettez à jour les dépôts de paquets :
 +
 +<code>
 +vagrant@ubuntu-xenial:~$ sudo dpkg --configure -a
 +
 +vagrant@ubuntu-xenial:~$ sudo apt update
 +Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease
 +Hit:2 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
 +Hit:3 http://archive.ubuntu.com/ubuntu xenial-backports InRelease
 +Hit:4 http://apt.puppetlabs.com xenial InRelease                        
 +Hit:5 http://security.ubuntu.com/ubuntu xenial-security InRelease       
 +Reading package lists... Done                      
 +Building dependency tree       
 +Reading state information... Done
 +37 packages can be upgraded. Run 'apt list --upgradable' to see them.
 +</code>
 +
 +Créez ensuite le fichier **file_hello.pp** 
 +
 +<code>
 vagrant@ubuntu-xenial:~$ vi file_hello.pp vagrant@ubuntu-xenial:~$ vi file_hello.pp
  
Ligne 667: Ligne 688:
 <WRAP center round important 50%> <WRAP center round important 50%>
 **Important** - Pour apprendre comment écrire un message de commit Git, consultez ce lien : **[[https://chris.beams.io/posts/git-commit]]** (en anglais). **Important** - Pour apprendre comment écrire un message de commit Git, consultez ce lien : **[[https://chris.beams.io/posts/git-commit]]** (en anglais).
 +</WRAP>
 +
 +<WRAP center round important 50%>
 +**Important** - Avant de poursuivre, créez-vous un compte sur le site [[https://github.com]] ainsi qu'un **Personal Access Token**. Pour savoir comment créer votre Personal Access Token, consultez ce lien : **[[https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-personal-access-token-classic]]** (en anglais).
 </WRAP> </WRAP>
  
Ligne 767: Ligne 792:
 vagrant@ubuntu-xenial:~/puppet$ sudo git push -u origin master vagrant@ubuntu-xenial:~/puppet$ sudo git push -u origin master
 Username for 'https://github.com': ittrainingdev Username for 'https://github.com': ittrainingdev
-Password for 'https://ittrainingdev@github.com': +Password for 'https://ittrainingdev@github.com': collez votre personal-access-token-classic ici
 Counting objects: 3, done. Counting objects: 3, done.
 Writing objects: 100% (3/3), 232 bytes | 0 bytes/s, done. Writing objects: 100% (3/3), 232 bytes | 0 bytes/s, done.
Menu