api git
This commit is contained in:
parent
39deee575f
commit
6e0d00b631
@ -1,2 +1,51 @@
|
|||||||
# Installer l'agent Fusion Inventory NG pour GLPI
|
# Installer l'agent Fusion Inventory NG pour GLPI
|
||||||
|
|
||||||
|
## Dépendances
|
||||||
|
|
||||||
|
### Générales
|
||||||
|
|
||||||
|
```
|
||||||
|
apt install -y dmidecode hwdata ucf hdparm \
|
||||||
|
perl libuniversal-require-perl libwww-perl libparse-edid-perl \
|
||||||
|
libproc-daemon-perl libfile-which-perl libhttp-daemon-perl \
|
||||||
|
libxml-treepp-perl libyaml-perl libnet-cups-perl libnet-ip-perl \
|
||||||
|
libdigest-sha-perl libsocket-getaddrinfo-perl libtext-template-perl \
|
||||||
|
libxml-xpath-perl libyaml-tiny-perl
|
||||||
|
```
|
||||||
|
|
||||||
|
### Modules
|
||||||
|
|
||||||
|
```
|
||||||
|
apt install libnet-snmp-perl libcrypt-des-perl libnet-nbname-perl \
|
||||||
|
libdigest-hmac-perl \
|
||||||
|
libfile-copy-recursive-perl libparallel-forkmanager-perl \
|
||||||
|
libwrite-net-perl
|
||||||
|
```
|
||||||
|
|
||||||
|
## Installation de l'agent
|
||||||
|
|
||||||
|
```
|
||||||
|
curl -s https://api.github.com/repos/fusioninventory/fusioninventory-agent/releases/latest |\
|
||||||
|
grep "browser_download_url.*deb" |\
|
||||||
|
cut -d : -f 2,3 |\
|
||||||
|
tr -d \" |\
|
||||||
|
wget -qi - &&\
|
||||||
|
yes | sudo dpkg -i fusioninventory* &&\
|
||||||
|
sudo apt install -f -y
|
||||||
|
```
|
||||||
|
|
||||||
|
## Configuration de l'agent
|
||||||
|
|
||||||
|
!!! note "`/etc/fusioninventory/agent.cfg` "
|
||||||
|
```
|
||||||
|
server = https://glpi.legaragenumerique.fr/plugins/fusioninventory/
|
||||||
|
```
|
||||||
|
|
||||||
|
### Démarrage de l'agent
|
||||||
|
|
||||||
|
```
|
||||||
|
sudo systemctl restart fusioninventory-agent &&\
|
||||||
|
sudo pkill -USR1 -f -P 1 fusioninventory-agent
|
||||||
|
```
|
||||||
|
|
||||||
|
Les information de votre ordinateur remontent automatiquement sur le serveur GLPI
|
||||||
17
docs/divers/devops/git-api.md
Normal file
17
docs/divers/devops/git-api.md
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
# Utiliser l'API de Gitlab et Github
|
||||||
|
|
||||||
|
Ce guide permet d''utiliser l'API de Gitlab / Gitlab avec Bash pour récupérer la dernière version d'un projet.
|
||||||
|
|
||||||
|
## Récupérer la dernière version d'un projet Github
|
||||||
|
|
||||||
|
```
|
||||||
|
curl -s https://api.github.com/repos/[author]/[repository]/releases/latest |\
|
||||||
|
grep "browser_download_url.*deb" |\
|
||||||
|
cut -d : -f 2,3 |\
|
||||||
|
tr -d \" |\
|
||||||
|
wget -qi -
|
||||||
|
```
|
||||||
|
|
||||||
|
## Récupérer la dernière version d'un projet Gitlab
|
||||||
|
|
||||||
|
```
|
||||||
@ -4,3 +4,4 @@
|
|||||||
- [Keycloak as SSO for Nextcloud](sso/index.md)
|
- [Keycloak as SSO for Nextcloud](sso/index.md)
|
||||||
- [Utiliser Gitpod avec Gitlab](gitpod.md)
|
- [Utiliser Gitpod avec Gitlab](gitpod.md)
|
||||||
- [Utiliser Dokku pour déployer des applis en mode PaaS](dokku.md)
|
- [Utiliser Dokku pour déployer des applis en mode PaaS](dokku.md)
|
||||||
|
- [Utiliser l'API de Gitlab / Github avec Bash](git-api.md)
|
||||||
|
|||||||
@ -89,7 +89,7 @@ nav:
|
|||||||
- "Installer Lug9000 dans Minetest": divers/admin/lug9000.md
|
- "Installer Lug9000 dans Minetest": divers/admin/lug9000.md
|
||||||
- "Installer Arch Linux avec Gnome": divers/admin/arch-install.md
|
- "Installer Arch Linux avec Gnome": divers/admin/arch-install.md
|
||||||
- "Installer Kodi": divers/admin/kodi.md
|
- "Installer Kodi": divers/admin/kodi.md
|
||||||
- "Fusion Inventory": divers/admin/fusion
|
- "Fusion Inventory": divers/admin/fusion/
|
||||||
- "Servers":
|
- "Servers":
|
||||||
- divers/server/index.md
|
- divers/server/index.md
|
||||||
- divers/server/install_pxe.md
|
- divers/server/install_pxe.md
|
||||||
@ -117,6 +117,7 @@ nav:
|
|||||||
- divers/devops/sso/sso-wordpress.md
|
- divers/devops/sso/sso-wordpress.md
|
||||||
- "Gitpod": divers/devops/gitpod.md
|
- "Gitpod": divers/devops/gitpod.md
|
||||||
- "Dokku": divers/devops/dokku.md
|
- "Dokku": divers/devops/dokku.md
|
||||||
|
- "Gitlab / Github API": divers/devops/git-api.txt
|
||||||
- "Interne":
|
- "Interne":
|
||||||
- "Index": divers/internal/index.md
|
- "Index": divers/internal/index.md
|
||||||
- "Imprimantes": divers/internal/install-printers.md
|
- "Imprimantes": divers/internal/install-printers.md
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user