services:agir.chapril.org
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 | |||
| services:agir.chapril.org [2026/04/11 17:40] – supprimée - modification externe (Date inconnue) 127.0.0.1 | services:agir.chapril.org [2026/04/11 17:40] (Version actuelle) – ↷ Page déplacée de admin:services:agir.chapril.org à services:agir.chapril.org pitchum | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | ====== Service agir.chapril.org ====== | ||
| + | |||
| + | Redirection vers le projet Chapril dans l’instance [[https:// | ||
| + | |||
| + | ===== Déploiement ===== | ||
| + | |||
| + | ==== DNS ==== | ||
| + | |||
| + | Configuration du fichier DNS : | ||
| + | <code bash> | ||
| + | cd / | ||
| + | git diff | ||
| + | </ | ||
| + | < | ||
| + | diff --git a/ | ||
| + | index a5368c5..cb20fcd 100644 | ||
| + | --- a/ | ||
| + | +++ b/ | ||
| + | @@ -3,7 +3,7 @@ | ||
| + | |||
| + | $TTL 1h | ||
| + | | ||
| + | - | ||
| + | + | ||
| + | 4h ; Refresh | ||
| + | 1h ; Retry | ||
| + | 1w ; Expire | ||
| + | @@ -50,6 +50,10 @@ icinga2 CNAME galanga.april.org. | ||
| + | | ||
| + | | ||
| + | |||
| + | +; redirections | ||
| + | +agir CNAME fip | ||
| + | + | ||
| + | ; XMPP (old) | ||
| + | | ||
| + | | ||
| + | </ | ||
| + | |||
| + | Activation : | ||
| + | <code bash> | ||
| + | rndc reload chapril.org in external | ||
| + | </ | ||
| + | |||
| + | ==== Bastion ==== | ||
| + | |||
| + | Configuration du certificat TLS : | ||
| + | <code bash> | ||
| + | cd /etc/ | ||
| + | git diff dehydrated/ | ||
| + | </ | ||
| + | < | ||
| + | diff --git a/ | ||
| + | index b53ff9c..662eb8a 100644 | ||
| + | --- a/ | ||
| + | +++ b/ | ||
| + | @@ -15,3 +15,5 @@ pad.chapril.org | ||
| + | | ||
| + | | ||
| + | | ||
| + | +agir.chapril.org | ||
| + | </ | ||
| + | |||
| + | Activation : | ||
| + | <code bash> | ||
| + | dehydrated -c | ||
| + | </ | ||
| + | |||
| + | Configuration du serveur web sur la VM bastion : | ||
| + | <code bash> | ||
| + | cd / | ||
| + | cat agir.chapril.org | ||
| + | </ | ||
| + | <code nginx> | ||
| + | server { | ||
| + | listen 80; | ||
| + | listen [::]:80; | ||
| + | | ||
| + | server_name agir.chapril.org; | ||
| + | |||
| + | access_log / | ||
| + | error_log / | ||
| + | |||
| + | # include / | ||
| + | include / | ||
| + | include / | ||
| + | include / | ||
| + | } | ||
| + | |||
| + | |||
| + | server { | ||
| + | listen 443 ssl; | ||
| + | listen [::]:443 ssl; | ||
| + | ssl on; | ||
| + | | ||
| + | server_name agir.chapril.org; | ||
| + | |||
| + | access_log / | ||
| + | error_log / | ||
| + | |||
| + | # include / | ||
| + | ssl_certificate | ||
| + | ssl_certificate_key / | ||
| + | |||
| + | include / | ||
| + | include / | ||
| + | |||
| + | return 301 https:// | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | Création du dossier de logs : | ||
| + | <code bash> | ||
| + | mkdir / | ||
| + | ln -sf / | ||
| + | </ | ||
| + | |||
| + | Activation : | ||
| + | <code bash> | ||
| + | nginx -t | ||
| + | systemctl reload nginx | ||
| + | </ | ||
| + | |||
| + | Création du dossier de logs : | ||
| + | <code bash> | ||
| + | mkdir / | ||
| + | ln -sf / | ||
| + | </ | ||
| + | |||
| + | Activation : | ||
| + | <code bash> | ||
| + | nginx -t | ||
| + | systemctl reload nginx | ||
| + | </ | ||
| + | |||
| + | ==== Supervision ==== | ||
| + | |||
| + | Monitoring ajouté : | ||
| + | <code bash> | ||
| + | cd / | ||
| + | git diff | ||
| + | </ | ||
| + | < | ||
| + | diff --git a/ | ||
| + | index da31c6c..53127e4 100644 | ||
| + | --- a/ | ||
| + | +++ b/ | ||
| + | @@ -25,6 +25,20 @@ object Host " | ||
| + | | ||
| + | } | ||
| + | |||
| + | + vars.http_vhosts[" | ||
| + | + http_vhost = " | ||
| + | + http_ssl = true | ||
| + | + http_uri = "/" | ||
| + | + http_expect = " | ||
| + | + } | ||
| + | |||
| + | /* Define notification mail attributes for notification apply rules in `notifications.conf`. */ | ||
| + | | ||
| + | /* The UserGroup `icingaadmins` is defined in `users.conf`. */ | ||
| + | |||
| + | </ | ||
| + | |||
| + | ===== Compte pour la création de note Redmine ===== | ||
| + | |||
| + | Dans le Redmine : | ||
| + | * Un compte '' | ||
| + | * Un rôle '' | ||
| + | * Le compte '' | ||
| + | * Une clef d'API Redmine a été générée : se connecter sur https:// | ||
| + | |||
| + | Sur les VM, la clef est disponible dans le fichier ''/ | ||
| + | |||
| + | ===== Chagirbot (Redminebot) ===== | ||
| + | |||
| + | Redminebot (// | ||
| + | |||
| + | À l' | ||
| + | |||
| + | Il a été écrit en Python après grosse réécriture du script redmine IRC bot. | ||
| + | |||
| + | Agirbot possède un dépôt Git dans < | ||
| + | |||
| + | ==== Déploiement ==== | ||
| + | |||
| + | Dans le réseau IRC Libera, déclarer (// | ||
| + | |||
| + | < | ||
| + | 08:17 -NickServ(NickServ@services.)- | ||
| + | 08:18 < | ||
| + | 08:18 -NickServ(NickServ@services.)- An email containing nickname activation instructions has been sent to chagirbot@chapril.org. | ||
| + | 08:18 -NickServ(NickServ@services.)- If you do not complete registration within one day, your nickname will expire. | ||
| + | 08:18 -NickServ(NickServ@services.)- chagirbot is now registered to chagirbot@chapril.org, | ||
| + | 08:18 -NickServ(NickServ@services.)- | ||
| + | 08:18 -NickServ(NickServ@services.)- For frequently-asked questions about the network, please see the | ||
| + | 08:18 -NickServ(NickServ@services.)- Knowledge Base page (http:// | ||
| + | 08:18 -NickServ(NickServ@services.)- help you can /join #freenode to find network staff. | ||
| + | </ | ||
| + | |||
| + | Créer un utilisateur '' | ||
| + | <code bash> | ||
| + | adduser --system --group --home / | ||
| + | </ | ||
| + | |||
| + | Installation des dépendances de paquets: | ||
| + | <code bash> | ||
| + | apt-get install python-iso8601 python-twisted python-dateutil python-feedparser | ||
| + | </ | ||
| + | |||
| + | Clonage : | ||
| + | <code bash> | ||
| + | cd / | ||
| + | git clone april@agir.cluster.april.org:/ | ||
| + | </ | ||
| + | |||
| + | Définition de l' | ||
| + | <code bash> | ||
| + | cd / | ||
| + | mkdir bin | ||
| + | cd bin/ | ||
| + | ln -s ../ | ||
| + | </ | ||
| + | |||
| + | Déploiement du fichier de configuration : | ||
| + | <code bash> | ||
| + | cp / | ||
| + | cd / | ||
| + | mkdir conf | ||
| + | cd conf/ | ||
| + | ln -s / | ||
| + | </ | ||
| + | |||
| + | Adapter le fichier ''/ | ||
| + | * Mettre le mot de passe IRC du nickname bot ; | ||
| + | * définir projet '' | ||
| + | |||
| + | Définir le service dans Systemd : | ||
| + | <code bash> | ||
| + | cp / | ||
| + | ln -s / | ||
| + | </ | ||
| + | |||
| + | Adapter le fichier ''/ | ||
| + | * Le bon chemin ; | ||
| + | * Le bon compte ; | ||
| + | * Le bon groupe ; | ||
| + | * Le chemin du fichier de configuration passé en paramètre '' | ||
| + | |||
| + | Configurer le lancement du service à l’amorçage (//boot//) : | ||
| + | <code bash> | ||
| + | cd ~/ | ||
| + | systemctl enable chagirbot | ||
| + | </ | ||
| + | < | ||
| + | Created symlink / | ||
| + | </ | ||
| + | |||
| + | Ajouter une sonde dans Icinga2 (''/ | ||
| + | <code nagios> | ||
| + | vars.process[" | ||
| + | procs_command = " | ||
| + | procs_argument = " | ||
| + | procs_critical = " | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ==== Logs ==== | ||
| + | |||
| + | Des logs sont consultables via Systemd : | ||
| + | <code bash> | ||
| + | journalctl -f -u chagirbot | ||
| + | </ | ||
