Hub / skills / tailnet-homelab

Skill · DevOps & Homelab

Tailnet & Homelab Operations

Deploy, secure, pair, and diagnose always-on Prometheus + Beacon installations over localhost, home LAN, and Tailscale.

Core Markdown only · quarantined draft Local 7B+ MIT tailscalehomelabsystemdlaunchdtlsbeacon

How to use

Pure Markdown procedure — zero executable code bundled. Inspect the full source below, then drop it into your Prometheus skills directory (or promote it from SkillDraftStore once oara hub install ships).

Install
# Copy-in path on your Prometheus host:
mkdir -p ~/.prometheus/skills/tailnet-homelab
# Save the raw SKILL.md below as ~/.prometheus/skills/tailnet-homelab/SKILL.md

# Upcoming CLI command:
oara hub install skills/tailnet-homelab

Honest disclosures

  • First-party OAra runbook — pure Markdown, zero bundled code.
  • Explicitly avoids storing real tailnet IPs or hostnames in persisted files.
Inspect raw source (skills/tailnet-homelab/SKILL.md)
---
name: tailnet-homelab
description: Deploy and troubleshoot Prometheus + Beacon over localhost, home LAN, or Tailscale (web.bind, home-network TLS, mDNS discovery, systemd/LaunchAgent, and oara doctor).
license: MIT
tier: tool_search
---
<!-- Provenance: https://github.com/OAraLabs/hub | skills/tailnet-homelab/SKILL.md | MIT -->

# Tailnet & Homelab Deployment for Prometheus + Beacon

Use this runbook when running Prometheus as an always-on service on a home server or Mac mini and pairing Beacon (desktop or iOS) across your LAN or tailnet.

## 1. Install as a Persistent Service

- **Linux (systemd user unit):**
  ```bash
  oara install-service
  systemctl --user start prometheus
  journalctl --user -u prometheus -f
  ```
- **macOS (LaunchAgent):**
  ```bash
  oara install-service --now
  ```

## 2. Network Binding & TLS Posture

- Fresh installs write `web.bind: 127.0.0.1` (loopback only).
- To reach Prometheus from another computer or Beacon iOS:
  1. Switch network mode via Beacon (`PUT /api/network` → `home_network`) or set `web.bind` to your LAN/tailnet interface address.
  2. Never hardcode real tailnet CGNAT IPs or `*.ts.net` hostnames in committed configs, docs, or reports—resolve at runtime with `tailscale status`.
  3. Prefer TLS ports (`:8006` REST / `:8011` WS) with SPKI pinning + Ed25519 identity challenges (`POST /api/identity/challenge` v2).

## 3. Pairing Another Computer as Owner vs. Scoped Device

- **Scoped device (phone / secondary client):** Request join from Beacon → verify 4-digit match code → approve on an existing owner device.
- **Owner device (your own laptop over Tailscale):** Run `oara pair --owner` on the daemon host terminal to mint a 5-minute 8-digit one-time code, then redeem in Beacon. Never copy the global `PROMETHEUS_API_TOKEN` onto remote laptops.

## 4. Health & Drift Verification

Always run `oara doctor` after config or service changes and inspect `/api/status`:
- Confirm `stale` is false on both axes (running SHA vs checkout HEAD, checkout HEAD vs `origin/main`).
- On Linux, verify the AppArmor read floor and bubblewrap write floor report healthy rather than `dark`.