User Tools

Site Tools


infrastructure:automation-stack

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
infrastructure:automation-stack [2026/02/06 16:19] – Add Checkmk (CT 115) admininfrastructure:automation-stack [2026/02/07 17:21] (current) – Added Forgejo, updated services admin
Line 1: Line 1:
 ====== Automation Stack ====== ====== Automation Stack ======
  
-Deployed2026-02-06+Proxmox hv-04 | Subnet 10.100.161.0/23 | TLS*.home.miskam.xyz (Let's Encrypt)
  
 ===== Services ===== ===== Services =====
  
-^ Service ^ Container ^ IP ^ Port ^ URL +^ CT ^ Service ^ URL ^ Port ^ 
-| PostgreSQL | CT 110 | 10.100.161.110 | 5432 | - +| 110 | PostgreSQL | — | 5432 | 
-n8n | CT 111 | 10.100.161.111 | 5678 | [[https://n8n.srv.internal]] | +| 111 | n8n | [[https://n8n.home.miskam.xyz]] | 5678 
-Vaultwarden | CT 112 | 10.100.161.112 | 8080 | [[https://vault.srv.internal]] | +| 112 | Vaultwarden | [[https://vault.home.miskam.xyz]] | 8080 
-DokuWiki | CT 113 | 10.100.161.113 | 80 | [[https://wiki.srv.internal]] | +| 113 | DokuWiki | [[https://wiki.home.miskam.xyz]] | 80 
-| Uptime Kuma | CT 114 | 10.100.161.114 | 3001 | [[https://status.srv.internal]] | +| 114 | Uptime Kuma | [[https://status.home.miskam.xyz]] | 3001 
-Checkmk | CT 115 | 10.100.161.115 | 80 | [[https://monitoring.srv.internal/monitoring/]] | +| 115 | Grafana | [[https://monitoring.home.miskam.xyz]] | 3000 
- +| 116 | Forgejo | [[https://git.home.miskam.xyz]] | 3000 |
-===== Architecture ===== +
- +
-<code> +
-                    ┌─────────────┐ +
-                    │   Traefik   │ +
-                    │ .161.102:443│ +
-                    └──────┬──────┘ +
-                           │ +
-     ┌──────────┬──────────┼──────────┬──────────┬──────────┐ +
-     ▼          ▼          ▼          ▼          ▼          ▼ +
-┌─────────┐ ┌───────┐ ┌─────────┐ ┌──────┐ ┌──────────┐ ┌───────┐ +
-│   n8n   │ │ Vault │ │  Wiki   │ │Status│ │ Checkmk  │ │  DB   │ +
-│  :5678  │ │ :8080 │ │   :80   │ │:3001 │ │   :80    │ │ :5432 │ +
-└────┬────┘ └───┬───┘ └─────────┘ └──────┘ └──────────┘ └───┬───┘ +
-     │          │                                           │ +
-     └──────────┴───────────────────────────────────────────┘ +
-                         PostgreSQL +
-</code> +
- +
-  * **Database:** PostgreSQL 15 (shared for n8n + Vaultwarden) +
-  * **Monitoring:** Checkmk 2.3.0 (OMD, site: 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 **"Automation Stack"** folder. +
- +
-===== Database ===== +
- +
-==== PostgreSQL ==== +
- +
-  * **Host:** 10.100.161.110:5432 +
-  * **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 +
-</code>+
  
 ===== Monitoring ===== ===== Monitoring =====
  
-==== Checkmk ====+Prometheus (CT 115:9090) scrapes node_exporter (:9100) on all hosts.
  
-  * **URL:** [[https://monitoring.srv.internal/monitoring/]] +Targetsprometheus, openclaw, n8n, vaultwarden, postgres, dokuwiki, uptime-kuma, traefik, hv-04
-  * **Site:** monitoring +
-  * **Admin:** cmkadmin +
-  * **Version:** 2.3.0p37 (OMD)+
  
-<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/check_mk/agents+  * **Control Node:** openclaw (10.100.160.249) 
-</code>+  * **Ansible:** 2.20.2
  
-===== 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" +
-</code> +
- +
-===== Configuration Files ===== +
- +
-^ Service ^ Config Location ^ +
-| n8n | /etc/systemd/system/n8n.service | +
-| Vaultwarden | /etc/systemd/system/vaultwarden.service | +
-| DokuWiki | /var/www/dokuwiki/conf/+
-| Uptime Kuma | /opt/uptime-kuma/+
-| Checkmk | /omd/sites/monitoring/etc/+
-| PostgreSQL | /etc/postgresql/15/main/+
-| Traefik | /etc/traefik/conf.d/automation.yml | +
- +
-===== 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: ''/var/lib/vz/dump/'' 
infrastructure/automation-stack.1770394782.txt.gz · Last modified: by admin