feat: Add heartbeat phone-home script and norn SSH key

- parahub-heartbeat: cURL heartbeat to cloud API every 5min via cron
- authorized_keys: add norn@parahub-ng for WiFi password SSH retrieval
- 99-parahub-mesh: section 12 enables cron + heartbeat on first boot

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-05 18:30:20 +00:00
parent db3cf36443
commit dde37c7a7b
3 changed files with 43 additions and 1 deletions

View File

@@ -1 +1,2 @@
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILcethx5tVJWXTj4GjG7h75Fr3IKrwdkpBRc8sN6uRrA andrey.perliev@gmail.com
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBjS7Ii3+TQcZcUkzw4kHMqZ0omyBHPl6uD9y4c4ZWBM norn@parahub-ng

View File

@@ -482,7 +482,17 @@ YGG_ADDR=$(yggdrasil -address -useconffile /etc/yggdrasil.conf 2>/dev/null || ec
echo "YGGDRASIL_ADDRESS=${YGG_ADDR}" >> /etc/parahub/keys
# ============================================================================
# 12. FINAL
# 12. HEARTBEAT (phone-home to Parahub cloud)
# ============================================================================
chmod +x /usr/bin/parahub-heartbeat
# Cron: every 5 minutes
echo "*/5 * * * * /usr/bin/parahub-heartbeat" >> /etc/crontabs/root
/etc/init.d/cron enable
# ============================================================================
# 13. FINAL
# ============================================================================
# Log completion