Establish clean homelab infrastructure baseline
lint / yaml (push) Has been cancelled
lint / ansible (push) Has been cancelled
lint / terraform (push) Has been cancelled

Reorganize the brownfield repository, remove retired and generated artifacts, harden ignore rules, and record the GitOps/IaC redesign.
This commit is contained in:
2026-09-09 16:47:20 +00:00
commit 88a02ababa
418 changed files with 50579 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
#!/usr/bin/env bash
# Load every *.json in this folder into Grafana as a sidecar dashboard ConfigMap.
# The Grafana chart's dashboard sidecar (sidecar.dashboards.enabled) watches for
# ConfigMaps labeled grafana_dashboard=1 in the monitoring namespace and imports them.
# Idempotent — re-run after adding/updating a dashboard JSON.
#
# The VictoriaMetrics board uses a `$ds` datasource variable that resolves to the
# default datasource (VictoriaMetrics), so no per-panel rewiring is needed.
set -euo pipefail
cd "$(dirname "$0")"
NS=monitoring
for f in *.json; do
[ -e "$f" ] || continue
name="grafana-dashboard-$(basename "$f" .json)"
echo "applying $name from $f"
kubectl create configmap "$name" \
--namespace "$NS" \
--from-file="$f" \
--dry-run=client -o yaml \
| kubectl label --local -f - grafana_dashboard=1 --dry-run=client -o yaml \
| kubectl apply -f -
done
File diff suppressed because it is too large Load Diff