- Add scripts/it-ops (Proxmox collector, IPAM drift, export orchestrator) - Add sankofa-it-read-api stub with optional CORS and refresh - Add systemd examples for read API, weekly inventory export, timer - Add live-inventory-drift GitHub workflow (dispatch + weekly) - Add IT controller spec, runbooks, Keycloak ensure-it-admin-role script - Note IT_READ_API env on portal sync completion output Made-with: Cursor
25 lines
877 B
Plaintext
25 lines
877 B
Plaintext
# Example systemd unit — IT inventory read API (Phase 0 stub).
|
|
# Copy to /etc/systemd/system/sankofa-it-read-api.service, adjust paths and User=.
|
|
#
|
|
# sudo cp config/systemd/sankofa-it-read-api.service.example /etc/systemd/system/sankofa-it-read-api.service
|
|
# sudo systemctl daemon-reload && sudo systemctl enable --now sankofa-it-read-api
|
|
#
|
|
[Unit]
|
|
Description=Sankofa IT read API (live inventory JSON)
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=root
|
|
WorkingDirectory=/opt/proxmox
|
|
Environment=IT_READ_API_HOST=127.0.0.1
|
|
Environment=IT_READ_API_PORT=8787
|
|
# Environment=IT_READ_API_KEY=change-me
|
|
# Optional browser CORS (prefer portal /api/it/* proxy): Environment=IT_READ_API_CORS_ORIGINS=https://portal.sankofa.nexus
|
|
ExecStart=/usr/bin/python3 /opt/proxmox/services/sankofa-it-read-api/server.py
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|