From 88c30603ddbbf5962a3008c5d1a381773027ac5d Mon Sep 17 00:00:00 2001 From: l-nmch Date: Wed, 28 Oct 2026 23:35:42 +0100 Subject: [PATCH] docs: fix the Vale style warnings Closes #25 --- docs/README.md | 4 ++-- docs/decisions/0001-three-configuration-layers.md | 6 +++--- docs/decisions/0003-state-and-certificates-not-committed.md | 2 +- docs/explanation/architecture.md | 4 ++-- docs/how-to/reset-and-bootstrap-the-router.md | 2 +- docs/reference/network-plan.md | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/README.md b/docs/README.md index 8e316dc..d4be42b 100644 --- a/docs/README.md +++ b/docs/README.md @@ -8,14 +8,14 @@ Pages are grouped by what the reader wants, following [the organization's docume | --- | --- | | [Reset and bootstrap the router](how-to/reset-and-bootstrap-the-router.md) | Rebuild the router from scratch and bring it back under OpenTofu | | [Reload the HAProxy configuration](how-to/reload-the-haproxy-configuration.md) | Change a public route | -| [Change the network](how-to/change-the-network.md) | Add a VLAN, a flow or a public hostname | +| [Change the network](how-to/change-the-network.md) | Add a VLAN, a flow, or a public hostname | | [Remove factory rules from the state](how-to/remove-factory-rules-from-the-state.md) | Clear a plan that wants to delete the factory firewall rules | ## Reference | Page | Content | | --- | --- | -| [Network plan](reference/network-plan.md) | Addresses, VLANs, wiring, hosts, public services and traffic flows | +| [Network plan](reference/network-plan.md) | Addresses, VLANs, wiring, hosts, public services, and traffic flows | ## Explanation diff --git a/docs/decisions/0001-three-configuration-layers.md b/docs/decisions/0001-three-configuration-layers.md index 409df49..3c2ab50 100644 --- a/docs/decisions/0001-three-configuration-layers.md +++ b/docs/decisions/0001-three-configuration-layers.md @@ -18,15 +18,15 @@ The router was reset and rebuilt by hand once. Drift between the bootstrap scrip ## Considered options * Three layers: factory configuration, the maintainer's bootstrap script, OpenTofu for the rest. -* OpenTofu for everything, including Ethernet ports and DNS settings. +* OpenTofu for everything, including Ethernet ports, and DNS settings. ## Decision outcome Chosen option: "three layers". * `defaults/default_configuration.rsc` is the MikroTik factory configuration. Never edit it. -* `defaults/base_configuration.rsc` is the maintainer's script that pre-provisions the router after a reset: DNS servers, hardening, certificates, services, Ethernet port MTU and L2MTU, which ports are disabled, the management LAN and base users. -* OpenTofu owns VLANs, addresses, DHCP, DNS records, the firewall, NAT, containers and the HAProxy configuration. +* `defaults/base_configuration.rsc` is the maintainer's script that pre-provisions the router after a reset: DNS servers, hardening, certificates, services, Ethernet port MTU and L2MTU, which ports are disabled, the management LAN, and base users. +* OpenTofu owns VLANs, addresses, DHCP, DNS records, the firewall, NAT, containers, and the HAProxy configuration. ### Consequences diff --git a/docs/decisions/0003-state-and-certificates-not-committed.md b/docs/decisions/0003-state-and-certificates-not-committed.md index e29efaa..f39b504 100644 --- a/docs/decisions/0003-state-and-certificates-not-committed.md +++ b/docs/decisions/0003-state-and-certificates-not-committed.md @@ -34,4 +34,4 @@ Chosen option: "commit neither". The state is not committed, even encrypted; `ce ### Commit the state encrypted * Good, because a backup in Git. -* Bad, because permanent history, churn and no locking. +* Bad, because permanent history, churn, and no locking. diff --git a/docs/explanation/architecture.md b/docs/explanation/architecture.md index 4479399..0fd122a 100644 --- a/docs/explanation/architecture.md +++ b/docs/explanation/architecture.md @@ -16,7 +16,7 @@ The facts (addresses, VLANs, hosts, flows) are in [the network plan](../referenc |---|---|---| | **Network** (this one) | The edge router: VLANs, addressing, DHCP, DNS, firewall, NAT, and the HAProxy container that publishes services | OpenTofu, RouterOS scripts | | **FrontPlane** | The three k0s Kubernetes clusters `control`, `core` and `svc` and everything that runs in them | FluxCD, SOPS + age, k0sctl, Cilium | -| **Ansible** | Everything that is not Kubernetes: the storage node, the HPC nodes, the Incus compute nodes, SSH hardening and the host firewalls | Ansible, Vault | +| **Ansible** | Everything that is not Kubernetes: the storage node, the HPC nodes, the Incus compute nodes, SSH hardening, and the host firewalls | Ansible, Vault | A flow between two VLANs has to be allowed in up to three places: the router (`firewall_rules` in [terraform.tfvars](../../terraform.tfvars)), the host firewall (`firewall_allowed_ports` in the Ansible inventory) and, for pod traffic, a NetworkPolicy in FrontPlane. See the [checklists](../how-to/change-the-network.md). @@ -45,7 +45,7 @@ flowchart TB - The VLAN interfaces use MTU 8152, so the bridge and every physical port under it need an L2MTU of at least 8156 (the bridge L2MTU is the lowest of its ports). [base_configuration.rsc](../../defaults/base_configuration.rsc) sets `l2mtu=8156` and `mtu=8156` on every Ethernet port. - The RB3011 has two switch chips (`ether1` to `ether5` on `switch1`, `ether6` to `ether10` on `switch2`). Traffic between the two groups is bridged by the CPU. -## DNS, TLS and secrets +## DNS, TLS, and secrets **DNS.** The router is the resolver of every VLAN (DHCP hands out `x.0.254`). It forwards to 1.1.1.1 and to the ISP box learned by DHCP. Static records for the nodes (`*.phorge`) and the three `*.core.phorge` aliases live in `dns_records`. Public `phorge.fr` names are on Cloudflare. diff --git a/docs/how-to/reset-and-bootstrap-the-router.md b/docs/how-to/reset-and-bootstrap-the-router.md index 420abeb..dd4565b 100644 --- a/docs/how-to/reset-and-bootstrap-the-router.md +++ b/docs/how-to/reset-and-bootstrap-the-router.md @@ -99,7 +99,7 @@ A reset router has none of the objects that the state remembers, and RouterOS id - Objects that the plan wants to create and that the router already has (an ID that changed): adopt them with `tofu import '
' ''`, or drop the stale entry with `tofu state rm '
'` and let the plan create it. The uploaded `haproxy.cfg` is the exception: an `import` block in `containers.tf` adopts it whenever it already exists on the router. - Objects that no longer exist: the plan recreates them, which is the goal. -`tofu apply` needs an explicit go-ahead from whoever owns the router. It creates the VLANs, addresses, DHCP, DNS, firewall, NAT, the veth and bridge for containers, the HAProxy configuration file and the container. +`tofu apply` needs an explicit go-ahead from whoever owns the router. It creates the VLANs, addresses, DHCP, DNS, firewall, NAT, the veth and bridge for containers, the HAProxy configuration file, and the container. ### Firewall rule order diff --git a/docs/reference/network-plan.md b/docs/reference/network-plan.md index d4f9984..eab8238 100644 --- a/docs/reference/network-plan.md +++ b/docs/reference/network-plan.md @@ -53,7 +53,7 @@ Observed on 2026-09-20 from the link state and the bridge host table. Check it a | Port | Chip | State | What sits behind it | |---|---|---|---| | `ether1` | switch1 | 1 Gbps | ISP box 192.168.1.1 (WAN) | -| `ether2` | switch1 | 1 Gbps | A switch carrying the control and core nodes, one Incus node and the GPU host | +| `ether2` | switch1 | 1 Gbps | A switch carrying the control and core nodes, one Incus node, and the GPU host | | `ether3` | switch1 | 1 Gbps | Admin workstation | | `ether4` | switch1 | no link | Spare | | `ether5` | switch1 | 1 Gbps | Switch `main-sw-1` (192.168.2.252) with the storage node and the svc nodes behind it |