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:debian:11:ldf800:l801 [2022/05/26 15:12] – created 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===
  
-Re-connectez-vous à votre machine virtuelle et créez le fichier **file_hello.pp** :+Connectez-vous à votre machine virtuelle et démarrez la VM Puppet :
  
 <code> <code>
-hnorris@Laptop:~/puppet-beginners-guide-3$ vagrant ssh +trainee@debian10:~$ cd puppet-beginners-guide-3/ 
-Welcome to Ubuntu 16.04.7 LTS (GNU/Linux 4.4.0-187-generic x86_64)+ 
 +trainee@debian10:~/puppet-beginners-guide-3$ vagrant up 
 +Bringing machine 'default' up with 'virtualbox' provider... 
 +==> default: Checking if box 'ubuntu/xenial64' version '20210422.0.0' is up to date... 
 +==> default: A newer version of the box 'ubuntu/xenial64' for provider 'virtualbox' is 
 +==> default: available! You currently have version '20210422.0.0'. The latest is version 
 +==> default: '20211001.0.0'. Run `vagrant box update` to update. 
 +... 
 +trainee@debian10:~/puppet-beginners-guide-3$ vagrant ssh 
 +Welcome to Ubuntu 16.04.7 LTS (GNU/Linux 4.4.0-210-generic x86_64)
  
  * Documentation:  https://help.ubuntu.com  * Documentation:  https://help.ubuntu.com
Ligne 112: Ligne 121:
  * Support:        https://ubuntu.com/advantage  * Support:        https://ubuntu.com/advantage
  
 +1 package can be updated.
 +0 of these updates are security updates.
 +To see these additional updates run: apt list --upgradable
  
-7 packages can be updated. +New release '18.04.LTS' available.
-7 updates are security updates. +
- +
-New release '18.04.LTS' available.+
 Run 'do-release-upgrade' to upgrade to it. Run 'do-release-upgrade' to upgrade to it.
  
  
-Last login: Tue Feb 11 08:32:56 2020 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
 +
 vagrant@ubuntu-xenial:~$ cat file_hello.pp  vagrant@ubuntu-xenial:~$ cat file_hello.pp 
 file { '/tmp/hello.txt': file { '/tmp/hello.txt':
Ligne 656: 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 756: 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