CR-2026-02-25 - Convert Hardcoded Values to AsciiDoc Attributes
Change Request Summary
| Field | Value |
|---|---|
CR ID |
CR-2026-02-25-001 |
Status |
Approved |
Priority |
P2 |
Requester |
evanusmodestus |
Date |
2026-02-25 |
Description
Convert hardcoded mutable values (IP addresses, hostnames, domain names) to AsciiDoc attributes in 20 runbook files within domus-infra-ops.
Current State: Runbooks contain literal IP addresses like 10.50.1.60 and hostnames like vault-01.inside.domusdigitalis.dev.
Target State: Runbooks use attributes like 10.50.1.60 and vault-01.inside.domusdigitalis.dev.inside.domusdigitalis.dev that resolve from antora.yml.
Justification
-
Maintainability - Single source of truth for infrastructure values
-
Consistency - Aligns with AsciiDoc standards documented in CLAUDE.md
-
Accuracy - Prevents drift between docs and reality when IPs change
-
Technical debt - Identified during Antora build warning cleanup session
Scope
Affected Files
Priority 1 (Security-Critical)
| File | Patterns | Status |
|---|---|---|
k3s-deployment.adoc |
vault-ip, bind-ip, pfsense-ip |
[ ] |
vault-ssh-ca.adoc |
vault-01-ip, domain |
[ ] |
vault-tls-external.adoc |
vault-01-ip, domain |
[ ] |
vault-pki-cert-issuance.adoc |
vault-01-ip, domain |
[ ] |
Priority 2 (Operational)
| File | Patterns | Status |
|---|---|---|
bind-dns-deployment.adoc |
bind-ip, pfsense-ip, domain |
[ ] |
dns-operations.adoc |
bind-ip, domain |
[ ] |
k3s-wazuh.adoc |
wazuh-*-vip, domain |
[ ] |
k3s-prometheus-grafana.adoc |
grafana-vip, prometheus-vip |
[ ] |
k3s-metallb.adoc |
IP ranges |
[ ] |
k3s-operations.adoc |
k3s-master-ip |
[ ] |
Priority 3 (Setup/Deployment)
| File | Patterns | Status |
|---|---|---|
ise-34-deployment.adoc |
ise-01-ip, domain |
[ ] |
freeipa-deployment.adoc |
ipa-ip, domain |
[ ] |
kvm-ha-shared-storage.adoc |
nas-ip, kvm-ip |
[ ] |
kvm-network-discovery.adoc |
Various IPs |
[ ] |
nas-share-management.adoc |
nas-ip |
[ ] |
network-infrastructure-discovery.adoc |
Various IPs |
[ ] |
server-rename-vault-01.adoc |
vault-01-ip, domain |
[ ] |
terraform-iac.adoc |
Various IPs |
[ ] |
diagram-validation.adoc |
Various IPs |
[ ] |
documentation-hub-setup.adoc |
Various IPs |
[ ] |
Implementation Plan
Phase 1: P1 Files (Security-Critical)
-
Review each file for hardcoded values
-
Verify attributes exist in
antora.yml(add if missing) -
Convert prose text to use attributes
-
Add
subs=attributes+to code blocks where needed -
Escape shell variables:
${VAR}→$\\{VAR\\} -
Run
maketo verify 0 warnings -
Commit with descriptive message
Testing
After each file conversion:
cd /home/evanusmodestus/atelier/_bibliotheca/domus-infra-ops
make 2>&1 | grep -c '"level":"warn"'
# Expected: 0
Conversion Rules
Convert to Attributes
-
Prose text:
The server at 10.50.1.60→The server at 10.50.1.60 -
Inline code:
\`vault-01.inside.domusdigitalis.dev`→\vault-01.inside.domusdigitalis.dev\`` -
Code commands: Add
subs=attributes+and use attributes
Related
-
RCA-2026-02-24 Include/Tag Mismatch - Pattern 4: Missing Attributes
-
Antora Documentation System - Attribute standards