docs: mise a jour inventaire + docs agents pour Authentik CT203

This commit is contained in:
2026-07-21 01:51:33 +02:00
parent 3d74f1576c
commit 73224bc4b4
4 changed files with 28 additions and 11 deletions
+9 -9
View File
@@ -61,8 +61,8 @@ pct create <CTID> <TEMPLATE> \
| `--password` | Mot de passe root | `secrettemp123` (temporaire) |
| `--unprivileged` | Container non privilégié | `0` (privilégié) ou `1` (non-privilégié) |
| `--onboot` | Démarrage automatique | `1` (oui) ou `0` (non) |
| `--nameserver` | Serveur DNS | `192.168.0.5` (AdGuard) ou `8.8.8.8` |
| `--net0` | Configuration réseau | `name=eth0,bridge=vmbr0,ip=192.168.0.X/24,gw=192.168.0.1` |
| `--nameserver` | Serveur DNS | `192.168.0.92` (AdGuard) ou `8.8.8.8` |
| `--net0` | Configuration réseau | `name=eth0,bridge=vmbr0,ip=192.168.0.X/24,gw=192.168.0.254` |
| `--start` | Démarrer après création | `1` (oui) |
---
@@ -76,13 +76,13 @@ pct create <CTID> <TEMPLATE> \
| `name` | Nom de l'interface | `eth0` |
| `bridge` | Bridge Proxmox | `vmbr0` |
| `ip` | Adresse IP | `192.168.0.201/24` |
| `gw` | Passerelle | `192.168.0.1` |
| `gw` | Passerelle | `192.168.0.254` |
| `hwaddr` | Adresse MAC | `BC:24:11:XX:XX:XX` (auto-générée) |
| `firewall` | Pare-feu activé | `1` (oui) ou `0` (non) |
### Exemple de configuration réseau complète
```bash
--net0 name=eth0,bridge=vmbr0,ip=192.168.0.201/24,gw=192.168.0.1,firewall=0
--net0 name=eth0,bridge=vmbr0,ip=192.168.0.201/24,gw=192.168.0.254,firewall=0
```
---
@@ -175,7 +175,7 @@ ping 192.168.0.<CTID_IP>
| Action | Commande |
|--------|----------|
| Ajouter une IP | `pct set <CTID> --net0 name=eth0,bridge=vmbr0,ip=192.168.0.X/24,gw=192.168.0.1` |
| Ajouter une IP | `pct set <CTID> --net0 name=eth0,bridge=vmbr0,ip=192.168.0.X/24,gw=192.168.0.254` |
| Voir la config | `pct config <CTID>` |
---
@@ -196,8 +196,8 @@ pct create 201 \
--password secrettemp123 \
--unprivileged 0 \
--onboot 1 \
--nameserver 192.168.0.5 \
--net0 name=eth0,bridge=vmbr0,ip=192.168.0.201/24,gw=192.168.0.1 \
--nameserver 192.168.0.92 \
--net0 name=eth0,bridge=vmbr0,ip=192.168.0.201/24,gw=192.168.0.254 \
--start 1
```
@@ -228,7 +228,7 @@ pct create 201 \
ssh root@192.168.0.201 "apt-get update && apt-get install -y python3 curl git"
```
> **Note** : Si le DNS ne fonctionne pas avec `192.168.0.5` (AdGuard), utiliser `8.8.8.8` :
> **Note** : Si le DNS ne fonctionne pas avec `192.168.0.92` (AdGuard), utiliser `8.8.8.8` :
> ```bash
> ssh root@192.168.0.201 "echo 'nameserver 8.8.8.8' > /etc/resolv.conf"
> ```
@@ -302,7 +302,7 @@ pveam download local debian-13-standard_13.6-1_amd64.tar.zst
```bash
# Création
pct create 201 local:vztmpl/debian-13-standard_13.6-1_amd64.tar.zst --rootfs vm-zfs:2 --ostype debian --hostname status-monitor --password secrettemp123 --unprivileged 0 --onboot 1 --nameserver 192.168.0.5 --net0 name=eth0,bridge=vmbr0,ip=192.168.0.201/24,gw=192.168.0.1 --start 1
pct create 201 local:vztmpl/debian-13-standard_13.6-1_amd64.tar.zst --rootfs vm-zfs:2 --ostype debian --hostname status-monitor --password secrettemp123 --unprivileged 0 --onboot 1 --nameserver 192.168.0.92 --net0 name=eth0,bridge=vmbr0,ip=192.168.0.201/24,gw=192.168.0.254 --start 1
# Ajout clé SSH
pct exec 201 -- mkdir -p /root/.ssh && chmod 700 /root/.ssh
+3 -2
View File
@@ -264,9 +264,10 @@ Ces services sont définis directement dans le fichier de configuration dynamiqu
| homeassistant | `ha.peis.fr` | `http://192.168.0.43:8123` | Externe (CT 103) | Let's Encrypt |
| traefik-public | `traefik.peis.fr` | `api@internal` | Interne | Let's Encrypt |
| status-monitor | `status.peis.fr` | `http://192.168.0.201:80` | Externe (CT 201) | Let's Encrypt |
| **git-server** | **`git.peis.fr`** | **`http://192.168.0.202:3000`** | **Externe (CT 202)** | **Let's Encrypt** ⭐ |
| auth-server | `auth.peis.fr` | `http://192.168.0.203:9000` | Externe (CT 203) | Let's Encrypt |
| **git-server** | **`git.peis.fr`** | **`http://192.168.0.202:3000`** | **Externe (CT 202)** | **Let's Encrypt** |
> ⭐ **Nouveau** : git-server a été ajouté récemment pour pointer vers Gitea sur CT 202
> ⭐ **Nouveau** : auth-server (Authentik CT203) ajouté pour l'authentification centralisée
### 2. Services Docker (configurés via labels)
+5
View File
@@ -44,6 +44,11 @@ homelab-config/
│ ├── deploy.sh ← Script de déploiement
│ └── dynamic_traefik.yml ← Configuration Traefik
├── traefik-config/ ← Configurations Traefik
├── projet-authent/ ← Déploiement Authentik (CT203)
│ ├── docker-compose.yml ← Stack Authentik
│ ├── .env ← Variables d'environnement
│ ├── authentik-secrets.md ← Secrets
│ └── readme.md ← Résumé du déploiement
└── procedure-*.md ← Documentations
```
+11
View File
@@ -53,6 +53,16 @@
| 200 | traefik-proxy | 192.168.0.100 | vm-zfs (subvol-200-disk-0, 10G) | ✅ Oui | running | 80, 443 |
| 201 | status-monitor | 192.168.0.201 | vm-zfs (subvol-201-disk-0, 2G) | ✅ Oui | running | 80 |
| 202 | gitea | 192.168.0.202 | vm-zfs (subvol-202-disk-0, 10G) | ✅ Oui | running | 3000, 2222 |
| 203 | Authentik | 192.168.0.203 | vm-zfs (subvol-203-disk-0, 10G) | ✅ Oui | running | 9000 |
##### Authentik (CT203)
**IP**: 192.168.0.203 | **URL**: https://auth.peis.fr | **Logiciel**: Authentik 2024.8.3
- **Description**: Serveur d'authentification centralisée (SSO, 2FA) pour les services du homelab
- **Services internes**: PostgreSQL, Redis, server, worker
- **Ports**: 9000 (web Authentik)
- **Stockage**: 10Go sur vm-zfs
- **Accès**: https://auth.peis.fr (admin: akadmin)
- **État**: Déployé, forwardAuth status.peis.fr à finaliser
##### Status Monitor (CT201)
**IP**: 192.168.0.201 | **URL**: https://status.peis.fr | **Version**: v1.1.0
@@ -92,6 +102,7 @@
| `ha.peis.fr` | Home Assistant (VM100) | HTTP | ✅ TLS | Let's Encrypt PROD | ✅ Running |
| `traefik.peis.fr` | Dashboard Traefik | Internal API | ✅ TLS | Let's Encrypt PROD | ✅ Running |
| `test.peis.fr` | Whoami (test) | HTTP | ✅ TLS | Let's Encrypt PROD | ✅ Running |
| `auth.peis.fr` | Authentik (CT203) | HTTP | ✅ TLS | Let's Encrypt PROD | ✅ Running |
| `status.peis.fr` | Status Monitor (CT201) | HTTP | ✅ TLS | Let's Encrypt PROD | ✅ Running |
| `git.peis.fr` | Gitea (CT202) | HTTP | ✅ TLS | Let's Encrypt PROD | ✅ Running |