update
This commit is contained in:
+11
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user