infrastructure:automation-stack
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| infrastructure:automation-stack [2026/02/06 16:19] – Add Checkmk (CT 115) admin | infrastructure:automation-stack [2026/02/07 17:21] (current) – Added Forgejo, updated services admin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Automation Stack ====== | ====== Automation Stack ====== | ||
| - | Deployed: 2026-02-06 | + | Proxmox hv-04 | Subnet 10.100.161.0/ |
| ===== Services ===== | ===== Services ===== | ||
| - | ^ Service ^ Container ^ IP ^ Port ^ URL ^ | + | ^ CT ^ Service ^ URL ^ Port ^ |
| - | | PostgreSQL | CT 110 | 10.100.161.110 | + | | 110 | PostgreSQL | — | 5432 | |
| - | | n8n | CT 111 | 10.100.161.111 | 5678 | [[https:// | + | | 111 | n8n | [[https:// |
| - | | Vaultwarden | CT 112 | 10.100.161.112 | 8080 | [[https:// | + | | 112 | Vaultwarden |
| - | | DokuWiki | CT 113 | 10.100.161.113 | 80 | [[https:// | + | | 113 | DokuWiki |
| - | | Uptime Kuma | CT 114 | 10.100.161.114 | 3001 | [[https:// | + | | 114 | Uptime Kuma | [[https:// |
| - | | Checkmk | CT 115 | 10.100.161.115 | 80 | [[https:// | + | | 115 | Grafana |
| - | + | | 116 | Forgejo | [[https://git.home.miskam.xyz]] | 3000 | | |
| - | ===== Architecture ===== | + | |
| - | + | ||
| - | < | + | |
| - | ┌─────────────┐ | + | |
| - | │ | + | |
| - | │ .161.102:443│ | + | |
| - | └──────┬──────┘ | + | |
| - | │ | + | |
| - | | + | |
| - | | + | |
| - | ┌─────────┐ ┌───────┐ ┌─────────┐ ┌──────┐ ┌──────────┐ ┌───────┐ | + | |
| - | │ | + | |
| - | │ :5678 │ │ :8080 │ │ : | + | |
| - | └────┬────┘ └───┬───┘ └─────────┘ └──────┘ └──────────┘ └───┬───┘ | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | </code> | + | |
| - | + | ||
| - | * **Database: | + | |
| - | * **Monitoring: | + | |
| - | * **Reverse Proxy:** Traefik (CT 102, 10.100.161.102) | + | |
| - | * **DNS:** UniFi (*.srv.internal → Traefik) | + | |
| - | * **TLS:** Lets Encrypt via Traefik | + | |
| - | + | ||
| - | ===== Credentials ===== | + | |
| - | + | ||
| - | All credentials stored in Vaultwarden under **" | + | |
| - | + | ||
| - | ===== Database ===== | + | |
| - | + | ||
| - | ==== PostgreSQL ==== | + | |
| - | + | ||
| - | * **Host:** 10.100.161.110: | + | |
| - | * **Admin:** pgadmin (superuser) | + | |
| - | * **App Users:** n8n, vaultwarden | + | |
| - | + | ||
| - | <code bash> | + | |
| - | # Connect as admin | + | |
| - | psql -h 10.100.161.110 -U pgadmin -d postgres | + | |
| - | + | ||
| - | # List databases | + | |
| - | \l | + | |
| - | + | ||
| - | # Connect to specific DB | + | |
| - | psql -h 10.100.161.110 -U pgadmin -d n8n | + | |
| - | </ | + | |
| ===== Monitoring ===== | ===== Monitoring ===== | ||
| - | ==== Checkmk ==== | + | Prometheus (CT 115:9090) scrapes node_exporter (:9100) on all hosts. |
| - | * **URL:** [[https:// | + | Targets: prometheus, openclaw, n8n, vaultwarden, |
| - | * **Site:** monitoring | + | |
| - | * **Admin:** cmkadmin | + | |
| - | * **Version: | + | |
| - | <code bash> | + | ===== Git / Ansible ===== |
| - | # Site management | + | |
| - | pct exec 115 -- omd status monitoring | + | |
| - | pct exec 115 -- omd start monitoring | + | |
| - | pct exec 115 -- omd stop monitoring | + | |
| - | # Agent deployment | + | * **Repo:** [[https://git.home.miskam.xyz/mxm-bot/automation-stack]] |
| - | # Download agent from: https://monitoring.srv.internal/monitoring/ | + | * **Control Node:** openclaw (10.100.160.249) |
| - | </ | + | * **Ansible: |
| - | ===== Service Management ===== | + | ===== Credentials |
| - | + | ||
| - | <code bash> | + | |
| - | # n8n | + | |
| - | pct exec 111 -- systemctl status n8n | + | |
| - | pct exec 111 -- journalctl -u n8n -f | + | |
| - | + | ||
| - | # Vaultwarden | + | |
| - | pct exec 112 -- systemctl status vaultwarden | + | |
| - | pct exec 112 -- journalctl -u vaultwarden -f | + | |
| - | + | ||
| - | # DokuWiki (nginx + php-fpm) | + | |
| - | pct exec 113 -- systemctl status nginx | + | |
| - | pct exec 113 -- systemctl status php8.2-fpm | + | |
| - | + | ||
| - | # Uptime Kuma | + | |
| - | pct exec 114 -- systemctl status uptime-kuma | + | |
| - | + | ||
| - | # Checkmk | + | |
| - | pct exec 115 -- omd status monitoring | + | |
| - | + | ||
| - | # PostgreSQL | + | |
| - | pct exec 110 -- systemctl status postgresql | + | |
| - | pct exec 110 -- su - postgres -c "psql -l" | + | |
| - | </ | + | |
| - | + | ||
| - | ===== Configuration Files ===== | + | |
| - | + | ||
| - | ^ Service ^ Config Location ^ | + | |
| - | | n8n | / | + | |
| - | | Vaultwarden | / | + | |
| - | | DokuWiki | / | + | |
| - | | Uptime Kuma | / | + | |
| - | | Checkmk | / | + | |
| - | | PostgreSQL | / | + | |
| - | | Traefik | / | + | |
| - | + | ||
| - | ===== Backup | + | |
| - | **Configured: | + | Vaultwarden → mxmlabs org → Network Automation collection |
| - | * **Daily 03:00:** CT 110 (PostgreSQL) — critical data | + | |
| - | * **Weekly Sunday 04:00:** CT 111-115 — apps | + | |
| - | Backup location: ''/ | ||
infrastructure/automation-stack.1770394782.txt.gz · Last modified: by admin
