Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Restore pending control-plane helpers

rcourtmanb80242a57186
diff --git a/scripts/install-sensor-proxy.sh b/scripts/install-sensor-proxy.sh
index 85edb40f58..4f8a0468c2 100755
--- a/scripts/install-sensor-proxy.sh
+++ b/scripts/install-sensor-proxy.sh
@@ -107,6 +107,26 @@ determine_allowlist_mode() {
print_warn "pulse-sensor-proxy ${INSTALLED_PROXY_VERSION} does not support allowed_nodes_file; using inline allow list updates"
}
+record_pending_control_plane() {
+ local mode="$1"
+ if [[ -z "$PULSE_SERVER" ]]; then
+ return
+ fi
+
+ cat > "$PENDING_CONTROL_PLANE_FILE" <<EOF
+PENDING_PULSE_SERVER="${PULSE_SERVER}"
+PENDING_MODE="${mode}"
+PENDING_STANDALONE="${STANDALONE}"
+PENDING_HTTP_MODE="${HTTP_MODE}"
+PENDING_HTTP_ADDR="${HTTP_ADDR}"
+EOF
+ chmod 0600 "$PENDING_CONTROL_PLANE_FILE" 2>/dev/null || true
+}
+
+clear_pending_control_plane() {
+ rm -f "$PENDING_CONTROL_PLANE_FILE" 2>/dev/null || true
+}
+
configure_local_authorized_key() {
local auth_line=$1