From 6b5cbe928dccf888b813a0841fa06e478a904763 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 25 Jul 2026 22:45:52 -0500 Subject: [PATCH] update --- defaults.inc | 2 +- inc/deploy-pulse-lxc.sh | 15 +++++++++++---- tests/test-pulse.sh | 4 ++-- 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/defaults.inc b/defaults.inc index a4b2310..7e679b3 100755 --- a/defaults.inc +++ b/defaults.inc @@ -3,7 +3,7 @@ action="${1:-}" FOLDER='/opt/idssys/ta-proxmenu' -VERS='2026.7.25-57' +VERS='2026.7.25-58' noupdate=' ' diff --git a/inc/deploy-pulse-lxc.sh b/inc/deploy-pulse-lxc.sh index 8bacd18..68906f8 100644 --- a/inc/deploy-pulse-lxc.sh +++ b/inc/deploy-pulse-lxc.sh @@ -117,7 +117,7 @@ if not isinstance(agent, dict) or not str(agent.get("id", "")).strip(): } TAPM_PULSE_AGENT_TOKEN_REQUEST_JSON() { - printf '%s\n' '{"type":"host","enableCommands":false}' + printf '%s\n' '{"type":"pve","enableCommands":true}' } TAPM_PULSE_ONLINE_NODES_FROM_JSON() { @@ -756,7 +756,10 @@ print(urllib.parse.quote(os.environ["TAPM_PULSE_NODE_NAME"], safe="")) ' )" || return 1 - for (( attempt = 1; attempt <= 20; attempt++ )); do + # Pulse v6.1.1 completes its Proxmox setup before sending the first host + # report. Its built-in registration retries can span at least 135 seconds, + # so allow up to four minutes before treating the active agent as unconfirmed. + for (( attempt = 1; attempt <= 80; attempt++ )); do response="$( curl --fail --silent --show-error \ --connect-timeout 3 --max-time 5 \ @@ -855,7 +858,9 @@ TAPM_PULSE_INSTALL_AGENT_LOCAL() { --token-file "$token_file" \ --hostname "$node" \ --enable-host \ - --disable-proxmox \ + --enable-proxmox \ + --proxmox-type pve \ + --enable-commands \ --non-interactive \ --insecure || status=$? fi @@ -948,7 +953,9 @@ bash "$installer_file" \ --token-file "$token_file" \ --hostname "$node" \ --enable-host \ - --disable-proxmox \ + --enable-proxmox \ + --proxmox-type pve \ + --enable-commands \ --non-interactive \ --insecure systemctl is-active --quiet pulse-agent diff --git a/tests/test-pulse.sh b/tests/test-pulse.sh index f524940..f8dbb03 100644 --- a/tests/test-pulse.sh +++ b/tests/test-pulse.sh @@ -49,9 +49,9 @@ assert_success "registered Pulse agent response accepted" \ '{"agent":{"id":"agent-123","hostname":"pve1"}}' assert_failure "missing Pulse agent ID rejected" \ TAPM_PULSE_AGENT_REGISTERED_FROM_RESPONSE '{"agent":{"hostname":"pve1"}}' -assert_equal '{"type":"host","enableCommands":false}' \ +assert_equal '{"type":"pve","enableCommands":true}' \ "$(TAPM_PULSE_AGENT_TOKEN_REQUEST_JSON)" \ - "host telemetry enrollment requested with commands disabled" + "Pulse PVE unified-agent enrollment requested with commands enabled" setup_token='0123456789abcdef0123456789abcdef' setup_host='https://pve1.example.test:8006'