Generate a token for use by a service
If you need to generate a token that a Puppet Enterprise (PE) service can use, and the token doesn't need to
be saved, use the --print
option with the puppet-access
command.
To generate a token for a service, run:
sudo puppet-access login [username] --print
This command generates a token, and then displays the token content as stdout (standard output) rather than saving it to disk.
When generating a token
for a service, consider specifying a longer token lifetime so that you
don't have to regenerate the token too frequently.
For information about modifying commands for Windows and privilege escalation, refer to Using example commands and Commands with elevated privileges.