WIP: ap v02 #592

Draft
mdebray wants to merge 31 commits from mdebray/ap-dev into main
Owner
No description provided.
Put DHCPv4 on the default VLAN now.

Signed-off-by: Ryan Lahfa <ryan@dgnum.eu>
We should use the right DHCPv4.

Signed-off-by: Ryan Lahfa <ryan@dgnum.eu>
This makes the experience nicer.

Signed-off-by: Ryan Lahfa <ryan@dgnum.eu>
This is useful when reflashing the system from scratch in the levitation
mode.

Note that doing this will reset the UBI counter to zero, this is bad for
wear leveling.

Signed-off-by: Ryan Lahfa <ryan@dgnum.eu>
This script requires manual efforts on the operator end not to fuck up
too hard.

This adds min-copy-closure and min-garbage-collect to the development
shell.

Signed-off-by: Ryan Lahfa <ryan@dgnum.eu>
This is useful to reconfigure A/B in memory.

Signed-off-by: Ryan Lahfa <ryan@dgnum.eu>
This is a hack, please fix it in the next iteration of the project
Else we would need to change the switch config when rebuilding the AP
TODO: rewrite history to include these changes at the right place
fix(liminix/hostapd): More verbose logging
All checks were successful
Run pre-commit on all files / pre-commit (push) Successful in 24s
c5c8ec9879
feat(ap-v01): upgrade image and deploy on more aps
Some checks failed
Check meta / check_dns (pull_request) Successful in 16s
Check meta / check_meta (pull_request) Failing after 19s
Check workflows / check_workflows (pull_request) Failing after 21s
Build all the nodes / ap01 (pull_request) Failing after 21s
Build all the nodes / Jaccess01 (pull_request) Successful in 24s
Build all the nodes / Jaccess04 (pull_request) Successful in 28s
Run pre-commit on all files / pre-commit (pull_request) Successful in 33s
Build all the nodes / netcore02 (pull_request) Successful in 23s
Build all the nodes / netcore01 (pull_request) Successful in 26s
Build all the nodes / bridge01 (pull_request) Successful in 47s
Build all the nodes / cof02 (pull_request) Successful in 56s
Build all the nodes / geo01 (pull_request) Successful in 57s
Build all the nodes / hypervisor01 (pull_request) Successful in 57s
Build all the nodes / hypervisor03 (pull_request) Successful in 1m0s
Build all the nodes / hypervisor02 (pull_request) Successful in 1m1s
Build all the nodes / geo02 (pull_request) Successful in 1m2s
Build all the nodes / build01 (pull_request) Successful in 1m3s
Build all the nodes / iso (pull_request) Successful in 1m4s
Build all the nodes / lab-router01 (pull_request) Successful in 53s
Build all the nodes / compute01 (pull_request) Successful in 1m24s
Build all the nodes / storage01 (pull_request) Successful in 1m2s
Build all the nodes / tower01 (pull_request) Successful in 59s
Build all the nodes / krz01 (pull_request) Successful in 1m27s
Build all the nodes / rescue01 (pull_request) Successful in 1m7s
Build the shell / build-shell (pull_request) Successful in 30s
Build all the nodes / web02 (pull_request) Successful in 49s
Build all the nodes / vault01 (pull_request) Successful in 58s
Build all the nodes / zulip01 (pull_request) Successful in 53s
Build all the nodes / web01 (pull_request) Successful in 1m7s
Build all the nodes / web03 (pull_request) Successful in 56s
91d0e9dbaf
Owner

Faudrait essayer de le rendre mergeable à terme pour éviter d'avoir "2 branches main".

Faudrait essayer de le rendre mergeable à terme pour éviter d'avoir "2 branches main".
@ -0,0 +8,4 @@
in
{
services.prom-exporter = svc.openwrt-prometheus-exporter.build {
httpPorts = [ "192.168.1.148:8888" ];
Owner

L'IP est bonne?

L'IP est bonne?
Author
Owner

ça n'a pas l'air hehe

ça n'a pas l'air hehe
mdebray marked this conversation as resolved
@ -0,0 +8,4 @@
in
{
# Our bridging is a bit complicated, therefore, we need iproute2.
programs.iproute2.enable = true;
Owner

déjà défini autre part

déjà défini autre part
mdebray marked this conversation as resolved
@ -0,0 +11,4 @@
dgn-access-control.enable = true;
users.root = {
# TODO: Change this well-known password
passwd = "$6$Z2MiaMXkpUJRPl2/$fxVE3iD/n208CISM2F6OnWj0Qq0QG2tTQqLCjU80PFJJGIwNLLyOp6SeYH3dH20OvJX1loZRETrThZfIPw.rb/";
Owner

On a besoin du mot de passe si tout le monde a accès avec clés SSH?

On a besoin du mot de passe si tout le monde a accès avec clés SSH?
Author
Owner

Oui ok mais ducoup ça veut dire qu'on pourra plus se ssh depuis les vault

Oui ok mais ducoup ça veut dire qu'on pourra plus se ssh depuis les vault
Owner

En proxy jumpant? mais au pire laisse

En proxy jumpant? mais au pire laisse
Author
Owner

Je vais mettre un mdp un peu plus sûr et on pourra le copier coller

Je vais mettre un mdp un peu plus sûr et on pourra le copier coller
mdebray marked this conversation as resolved
@ -0,0 +20,4 @@
hex = x: lib.fixedWidthString 2 "0" (lib.toHexString x);
mac-1 = "02:5B:6A:00:00:${hex apIndex}";
Owner

On a bien moins que 256 APs?

On a bien moins que 256 APs?
Author
Owner

oui, 102 ou un truc comme ça

oui, 102 ou un truc comme ça
mdebray marked this conversation as resolved
mdebray force-pushed mdebray/ap-dev from 91d0e9dbaf to 079298aa6e 2025-08-18 23:46:35 +02:00 Compare
chore(ap-v02): Rotate password
Some checks failed
Check meta / check_dns (pull_request) Successful in 19s
Build all the nodes / ap01 (pull_request) Failing after 21s
Check workflows / check_workflows (pull_request) Failing after 24s
Build all the nodes / Jaccess01 (pull_request) Successful in 24s
Build all the nodes / Jaccess04 (pull_request) Successful in 26s
Run pre-commit on all files / pre-commit (push) Successful in 31s
Run pre-commit on all files / pre-commit (pull_request) Successful in 34s
Build all the nodes / bridge01 (pull_request) Successful in 45s
Build all the nodes / build01 (pull_request) Successful in 52s
Build all the nodes / cof02 (pull_request) Successful in 49s
Build all the nodes / hypervisor01 (pull_request) Successful in 47s
Build all the nodes / geo01 (pull_request) Successful in 56s
Build all the nodes / geo02 (pull_request) Successful in 58s
Build all the nodes / hypervisor03 (pull_request) Successful in 53s
Build all the nodes / compute01 (pull_request) Successful in 1m8s
Build all the nodes / hypervisor02 (pull_request) Successful in 59s
Build all the nodes / netcore01 (pull_request) Successful in 21s
Build all the nodes / netcore02 (pull_request) Successful in 21s
Build all the nodes / iso (pull_request) Successful in 54s
Build all the nodes / lab-router01 (pull_request) Successful in 44s
Build all the nodes / krz01 (pull_request) Successful in 1m9s
Build all the nodes / storage01 (pull_request) Successful in 50s
Build all the nodes / tower01 (pull_request) Successful in 52s
Build all the nodes / vault01 (pull_request) Successful in 56s
Build all the nodes / rescue01 (pull_request) Successful in 1m2s
Build all the nodes / web02 (pull_request) Successful in 45s
Build all the nodes / web01 (pull_request) Successful in 1m5s
Build the shell / build-shell (pull_request) Successful in 26s
Build all the nodes / web03 (pull_request) Successful in 52s
Build all the nodes / zulip01 (pull_request) Successful in 42s
ca9b2c208c
Author
Owner

@ecoppens wrote in #592 (comment):

Faudrait essayer de le rendre mergeable à terme pour éviter d'avoir "2 branches main".

Ouais, j'ai déjà rebase là mais il y a pas mal de taf. En particulier je pense il faut arriver à upgrade nixpkgs et proprifier tous les hacks qu'on a ici et là (vraiment il y en a plein). C'est out of scope pour le déploiement là (en tout cas je le ferai pas)

@ecoppens wrote in https://git.dgnum.eu/DGNum/infrastructure/pulls/592#issuecomment-17269: > Faudrait essayer de le rendre mergeable à terme pour éviter d'avoir "2 branches main". Ouais, j'ai déjà rebase là mais il y a pas mal de taf. En particulier je pense il faut arriver à upgrade nixpkgs et proprifier tous les hacks qu'on a ici et là (vraiment il y en a plein). C'est out of scope pour le déploiement là (en tout cas je le ferai pas)
@ -0,0 +122,4 @@
baseParams // clientRadius // externalRadius // radiusKeyMgmt
) config.hardware.networkInterfaces.wlan0 secrets-1
);
hostap-1-ready = lib.mkIf (!is5GOnly) svc.hostapd-ready.build {
Owner

Erreur: il y a 3 arguments à mkIf

Erreur: il y a 3 arguments à mkIf
@ -21,0 +157,4 @@
ap-range = mkRange 0 3;
}
# Tour B
// (mkDualAp "AP-MB705" self."AP-MB716".channelIndex)
Owner

Il manque un tiret.

Il manque un tiret.
Owner

et MB716 n'existe pas

et MB716 n'existe pas
feat(ap-v01): add Jourdan APs
Some checks failed
Build all the nodes / ap01 (pull_request) Failing after 18s
Check meta / check_dns (pull_request) Successful in 19s
Check workflows / check_workflows (pull_request) Failing after 21s
Build all the nodes / Jaccess01 (pull_request) Successful in 21s
Run pre-commit on all files / pre-commit (push) Successful in 26s
Build all the nodes / Jaccess04 (pull_request) Successful in 26s
Run pre-commit on all files / pre-commit (pull_request) Successful in 32s
Build all the nodes / netcore01 (pull_request) Successful in 23s
Build all the nodes / netcore02 (pull_request) Successful in 25s
Build all the nodes / geo01 (pull_request) Successful in 52s
Build all the nodes / build01 (pull_request) Successful in 54s
Build all the nodes / geo02 (pull_request) Successful in 55s
Build all the nodes / hypervisor01 (pull_request) Successful in 55s
Build all the nodes / cof02 (pull_request) Successful in 57s
Build all the nodes / bridge01 (pull_request) Successful in 58s
Build all the nodes / compute01 (pull_request) Successful in 1m11s
Build all the nodes / hypervisor02 (pull_request) Successful in 58s
Build all the nodes / hypervisor03 (pull_request) Successful in 57s
Build all the nodes / lab-router01 (pull_request) Successful in 53s
Build all the nodes / iso (pull_request) Successful in 57s
Build all the nodes / krz01 (pull_request) Successful in 1m15s
Build the shell / build-shell (pull_request) Successful in 25s
Build all the nodes / tower01 (pull_request) Successful in 45s
Build all the nodes / storage01 (pull_request) Successful in 52s
Build all the nodes / rescue01 (pull_request) Successful in 1m4s
Build all the nodes / web02 (pull_request) Successful in 56s
Build all the nodes / zulip01 (pull_request) Successful in 1m2s
Build all the nodes / vault01 (pull_request) Successful in 1m5s
Build all the nodes / web03 (pull_request) Successful in 1m4s
Build all the nodes / web01 (pull_request) Successful in 1m8s
a72aa89e5c
@ -21,0 +191,4 @@
# Jourdan
#
# Hypnos-1
// alignedFloors {
Owner

il faut bien set les channel index pour hypnos (cc @mdebray)

il faut bien set les channel index pour hypnos (cc @mdebray)
Some checks failed
Check meta / check_meta (pull_request) Successful in 15s
Required
Details
Build all the nodes / ap01 (pull_request) Failing after 18s
Required
Details
Check meta / check_dns (pull_request) Successful in 19s
Required
Details
Check workflows / check_workflows (pull_request) Failing after 21s
Required
Details
Build all the nodes / Jaccess01 (pull_request) Successful in 21s
Required
Details
Run pre-commit on all files / pre-commit (push) Successful in 26s
Required
Details
Build all the nodes / Jaccess04 (pull_request) Successful in 26s
Required
Details
Run pre-commit on all files / pre-commit (pull_request) Successful in 32s
Required
Details
Build all the nodes / netcore01 (pull_request) Successful in 23s
Required
Details
Build all the nodes / netcore02 (pull_request) Successful in 25s
Required
Details
Build all the nodes / geo01 (pull_request) Successful in 52s
Required
Details
Build all the nodes / build01 (pull_request) Successful in 54s
Required
Details
Build all the nodes / geo02 (pull_request) Successful in 55s
Required
Details
Build all the nodes / hypervisor01 (pull_request) Successful in 55s
Required
Details
Build all the nodes / cof02 (pull_request) Successful in 57s
Required
Details
Build all the nodes / bridge01 (pull_request) Successful in 58s
Required
Details
Build all the nodes / compute01 (pull_request) Successful in 1m11s
Required
Details
Build all the nodes / hypervisor02 (pull_request) Successful in 58s
Required
Details
Build all the nodes / hypervisor03 (pull_request) Successful in 57s
Required
Details
Build all the nodes / lab-router01 (pull_request) Successful in 53s
Required
Details
Build all the nodes / iso (pull_request) Successful in 57s
Required
Details
Build all the nodes / krz01 (pull_request) Successful in 1m15s
Required
Details
Build the shell / build-shell (pull_request) Successful in 25s
Required
Details
Build all the nodes / tower01 (pull_request) Successful in 45s
Required
Details
Build all the nodes / storage01 (pull_request) Successful in 52s
Required
Details
Build all the nodes / rescue01 (pull_request) Successful in 1m4s
Required
Details
Build all the nodes / web02 (pull_request) Successful in 56s
Required
Details
Build all the nodes / zulip01 (pull_request) Successful in 1m2s
Required
Details
Build all the nodes / vault01 (pull_request) Successful in 1m5s
Required
Details
Build all the nodes / web03 (pull_request) Successful in 1m4s
Required
Details
Build all the nodes / web01 (pull_request) Successful in 1m8s
Required
Details
This pull request has changes conflicting with the target branch.
  • hive.nix
  • meta/options.nix
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin mdebray/ap-dev:mdebray/ap-dev
git switch mdebray/ap-dev
Sign in to join this conversation.
No description provided.