From 21d8aed0ca028694516cdb77f572ae4361e98103 Mon Sep 17 00:00:00 2001 From: "courtmanr@gmail.com" Date: Mon, 21 Apr 2025 11:21:19 +0100 Subject: [PATCH] refactor(script): Simplify displayed PVE token commands --- scripts/install-pulse.sh | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/scripts/install-pulse.sh b/scripts/install-pulse.sh index ef4f300af..eda86538d 100644 --- a/scripts/install-pulse.sh +++ b/scripts/install-pulse.sh @@ -220,20 +220,16 @@ configure_environment() { print_info "You need a Proxmox API Token. You can create one via the Proxmox Web UI," print_info "or run the following commands on your Proxmox host shell:" echo "----------------------------------------------------------------------" - echo ' # 1. Choose a username (default: pulse-monitor) and token name (default: pulse)' - echo ' USERNAME="pulse-monitor"' - echo ' TOKEN_NAME="pulse"' + echo ' # 1. Create user 'pulse-monitor' (enter password when prompted):' + echo " pveum useradd pulse-monitor@pam -comment \"API user for Pulse monitoring\"" echo ' ' - echo ' # 2. Create the user (enter password when prompted):' - echo " pveum useradd \${USERNAME}@pam -comment \"API user for Pulse monitoring\"" + echo ' # 2. Create API token 'pulse' for user (COPY THE SECRET VALUE!):' + echo " pveum user token add pulse-monitor@pam pulse --privsep=1" echo ' ' - echo ' # 3. Create the API token (COPY THE SECRET VALUE!):' - echo " pveum user token add \${USERNAME}@pam \${TOKEN_NAME} --privsep=1" - echo ' ' - echo ' # 4. Assign PVEAuditor role:' - echo " pveum acl modify / -user \${USERNAME}@pam -role PVEAuditor" + echo ' # 3. Assign PVEAuditor role to user:' + echo " pveum acl modify / -user pulse-monitor@pam -role PVEAuditor" echo "----------------------------------------------------------------------" - echo "After running the token add command, copy the Token ID and Secret Value" + echo "After running the 'token add' command, copy the Token ID and Secret Value" echo "and paste them below." echo "" # --- End Token Generation Info ---